Python binding to typst, a new markup-based typesetting system that is powerful and easy to learn.
pip install typst
import typst
# Compile `hello.typ` to PDF and save as `hello.pdf`
typst.compile("hello.typ", output="hello.pdf")
# Or return PDF content as bytes
pdf_bytes = typst.compile("hello.typ")
This work is released under the Apache-2.0 license. A copy of the license is provided in the LICENSE file.