Important
This project is under active development. While basic functionality works, most features are missing, no documentation exists, and anything may (and will) change anytime! Feedback is welcome π
An experiment on typst metaprogramming within python for heavy templating.
from typenaut import Document, Rectangle, Text
class Minimal(Document):
def build(self):
with Rectangle(self) as rect:
Text(rect, value="Hi, I'm inside the rectangle")
# Automated usage!
document = Minimal()
document.build()
document.pdf(output="output.pdf")Use
pip install git+https://github.com/BrokenSource/Typenautuntil further PyPI releases are made.
Your best chance is on exploring the examples directory likely for a good while.
- Upstream typst documentation is always a valuable resource!
Note: I really do not have the time to write structured documentation, but the code contains quality type hints and docstrings.
Still deciding, currently source available.
Likely same as Typst, still studying libraries compliances.
