python-typst

Python interface to generate Typst code.

MIT License

Downloads
402
Stars
0
Committers
1

python-typst

python-typst is a library for generating executable typst code (See typst repository and typst documentation for more information). It is written primarily in functional programming paradigm with some OOP content. Each module has greater than 90% unit test coverage.

This package provides the interfaces in a way that is as close as possible to typst's native functions. Through python-typst and other data processing packages, you can generate data reports quickly.

Repository on GitHub: python-typst. Homepage on PyPI: python-typst. Contributions are welcome.

Installation

pip install typstpy

Current Support

Is Standard Function Name Original Name Documentation
True _color_hsl color.hsl color.hsl
True _color_linear_rgb color.linear-rgb color.linear-rgb
True _figure_caption figure.caption figure.caption
True bibliography bibliography bibliography
True cite cite cite
True cmyk cmyk cmyk
False color None None
True emph emph emph
True figure figure figure
True footnote footnote footnote
True heading heading heading
True image image image
True link link link
True lorem lorem lorem
True luma luma luma
True pagebreak pagebreak pagebreak
True par par par
True ref ref ref
True rgb rgb rgb
True strong strong strong
True text text text

Examples

To be continued.