Python interface to generate Typst code.
Project description
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file typstpy-0.1.0.tar.gz
.
File metadata
- Download URL: typstpy-0.1.0.tar.gz
- Upload date:
- Size: 29.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.5 Windows/11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3347f88038b3def1c9878e19c61bef5c89699f1dd863e6ffc0abbb956294983c |
|
MD5 | 74d2200e5cf12bf93412c511836011cc |
|
BLAKE2b-256 | f75f9e6db4866e1c537f1b00ef3311d4fdb6d8e508e83be27cc6ade1c147ac48 |
File details
Details for the file typstpy-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: typstpy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.5 Windows/11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 702d83113c74d876149f05c7cfc156c81e9bd5bf947b91599cde0bb4da8949cb |
|
MD5 | 6e1877d66a91e683fd9241fd05505117 |
|
BLAKE2b-256 | 112cf992eb581b89878bfaa3ef239d94e908b79731fc7d843a7df2774289451f |