Python Authoring Mode Tutorial

Tutorials

Todo

Tutorial is coming soon.

API Reference

The following class implements a standard parser which comes with Paxter package library.

class paxter.renderers.python.RenderContext(input_text: str, env: dict, tree: paxter.core.data.FragmentList)[source]

A suite of Paxter document tree renderer.

Users of this renderer may embed and run python code directly from within the Paxter document source file.

env: dict

Python execution environment data

input_text: str

Document source text

render() → str[source]

Transforms the already provided input source text, the initial python execution environment data, and the parsed document tree, into the final output.

tree: FragmentList

Parsed document tree