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
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file typstpy-0.1.1.tar.gz.
File metadata
- Download URL: typstpy-0.1.1.tar.gz
- Upload date:
- Size: 17.1 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 |
a0ef4112e42920c07f0ead9d903715490b50f303b017ab9a6803d27d02a7d96e
|
|
| MD5 |
36a70d3b153a0944b2668635c824453e
|
|
| BLAKE2b-256 |
fe7f68f41053eaa967875b297eebc70888bcb1832c267c6a56d4726d022aacff
|
File details
Details for the file typstpy-0.1.1-py3-none-any.whl.
File metadata
- Download URL: typstpy-0.1.1-py3-none-any.whl
- Upload date:
- Size: 19.0 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 |
2d429b7429cdcf858cddaed7849eab2cc046651d4c10b468af2c069695b99b71
|
|
| MD5 |
925a96dc0232252ef0554f27789ea3aa
|
|
| BLAKE2b-256 |
5d50912eacabc7282041579d58f9c9164d64bc0e3bdab80f06a38402f2395483
|