Python binding to typst
Project description
typst-py
Python binding to typst, a new markup-based typesetting system that is powerful and easy to learn.
Installation
pip install typst
Usage
import typst
compiler = typst.Compiler(".")
# Compile `hello.typ` to PDF and save as `hello.pdf`
compiler.compile("hello.typ", output="hello.pdf")
# Or use the shortcut `compile` function
# and return PDF content as bytes
pdf_bytes = typst.compile("hello.typ")
License
This work is released under the Apache-2.0 license. A copy of the license is provided in the LICENSE file.
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
typst-0.2.1b1.tar.gz
(5.2 MB
view hashes)
Built Distributions
typst-0.2.1b1-cp37-abi3-win32.whl
(10.2 MB
view hashes)
Close
Hashes for typst-0.2.1b1-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0dbae411d5c129dc02567270ee6721292d77d7b30f329b3a7ef2423646541d2b |
|
MD5 | c5942ab71a91c3313ced4f328f741866 |
|
BLAKE2b-256 | 00bb111ca83e00685fc529f6fffb886521c6acd8b6ad90de862edc3ba4579de8 |
Close
Hashes for typst-0.2.1b1-cp37-abi3-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee14180cdff7e648ef5dcbcb86e80c17d8de51e5cf4caad1e2ff90325f31a85e |
|
MD5 | 169358ba5a885a8f31f8e5ce02d24b88 |
|
BLAKE2b-256 | 3c095cbbbf83cb4ed8a49558dabdf233902890b6f80fa2fd55f03fec5e900f22 |
Close
Hashes for typst-0.2.1b1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bcd75851569069b6bd21d84f26107c04b68f90dc93e84ee55d54d2c36bfbcb8 |
|
MD5 | 9673edc4007ecffcaa05e02552c74547 |
|
BLAKE2b-256 | b64cb560cc5ee52f7cca082a7dc49311dddf23289c2cc5f5d902145b30cc59c8 |
Close
Hashes for typst-0.2.1b1-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1dcdeeafa77da8a1eff2f7a673d6032674484304f9214b4cab5bbb188c41722a |
|
MD5 | 7bf7be5a9a2bd430962c95475c7adc11 |
|
BLAKE2b-256 | bfcef85091bdfc523ba1cb37e7d1e4ae5939171c3d2dcad56d35b3d7a0b3240d |
Close
Hashes for typst-0.2.1b1-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25832c9317e91a24b2b23543059e120bcfb88cfb5d9c1f067384aafdb3e74953 |
|
MD5 | 637181621bfc8459d93eba0fe2a53771 |
|
BLAKE2b-256 | 078e8baa35e73163e3d85689d23891e4385a676163fe5a8a2282bb52868f2112 |
Close
Hashes for typst-0.2.1b1-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 288e52940e3d0d6078c46373311d5448d3126993803b457942461190920adb3e |
|
MD5 | 5d33a76d988284c2ae532a040893b229 |
|
BLAKE2b-256 | fd01b91547697a34f356d8d69cebacfb0089249c7cafc75aec2b24c8dd934428 |
Close
Hashes for typst-0.2.1b1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7644b57606d9d022c1227218425475111c8fa20a9754eaddd9b810f9651731c |
|
MD5 | 5f882c6a15632b2588f5d60e85053d52 |
|
BLAKE2b-256 | 2e642d1bf5cb8f8d166767fe20bc0fbbe4f2613a0f2f959a47ec6f2fcf9ba800 |
Close
Hashes for typst-0.2.1b1-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 315e8f787941a428e3bfe6abb9ab00d847c9020800cfb2aa95947dfcf0ef487b |
|
MD5 | 64dfbc9d349503c9aefd9c0364bd659f |
|
BLAKE2b-256 | 403ce588330a8942c5ab5aee95cf8766b27eccffeb0a88b698afc292e2d26784 |
Close
Hashes for typst-0.2.1b1-cp37-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c648ef5a0881d7532ebc4e3559880838e9f4c3d300f030c1891bde0d1a62a8f6 |
|
MD5 | cc47751c78ad7831a8207dcfbc01f875 |
|
BLAKE2b-256 | ac50dab6d5e12ab39fdbe55b6aca1bd2d1df41534162fd9eb1ff85f4fd873249 |
Close
Hashes for typst-0.2.1b1-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb329dec289d8339a94c5827125322cb10702cc08fcbd504b3d9e39bbd9a9a14 |
|
MD5 | a71ee6e2a925484114c1104e58d6499f |
|
BLAKE2b-256 | 0d623a460252c5c6dcb695d546f6161c93d9ea1983c44f9c436e0fa0d71f7b04 |