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.1.2.tar.gz
(4.0 MB
view hashes)
Built Distributions
Close
Hashes for typst-0.1.2-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bafd847a34081bf96c69dab774fde93b71b1ee0691622f19065f6043ce2f137 |
|
MD5 | 3ccb59e448ce822e1e9ce6a844b62c4d |
|
BLAKE2b-256 | bc15548c34801b7ca4b002dafb8b0c18e56ee3af2336aa988f81c006c313825a |
Close
Hashes for typst-0.1.2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcbc6257b5ea84898fa7f5463f27f8e5b31072aa4e1aef5573002a9a2b92d2a7 |
|
MD5 | 678eaf1eac2b67962272713f324c19df |
|
BLAKE2b-256 | 133ee725d374f3f4a2ccccb102e8f2e0b011908179ee03f0bdc8b6da226c50fb |
Close
Hashes for typst-0.1.2-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0dd45e4b8c450deb1fe595462603f5dc17387d098d050ff7257becf9f851493b |
|
MD5 | 382d24bc602ddd9084cfc2a2cb6b7937 |
|
BLAKE2b-256 | 82f4239593a980861e8990d53413be4dce90862f995214455a6d30512dad20ea |
Close
Hashes for typst-0.1.2-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e8fa432f26cd0c378fbdc9c356c477e6844ab6079e394bd4ec22ef035766d31 |
|
MD5 | 0467d77e10628d92245b3c6335f26989 |
|
BLAKE2b-256 | 924bc07af0071d5b60eab23a3b57b42c6cada7c744e32e50add9876514ce0130 |
Close
Hashes for typst-0.1.2-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1f98a683e8a3dcb9a0f34b4710c986dfe7b2ba210941095913c042271cbcccf |
|
MD5 | c5bbd4ba0b21b33bfa6ca9e118590866 |
|
BLAKE2b-256 | 9fe47ed93107ec966479fc4e25a354244ebd862be1f753edfc61c78a8114c08f |
Close
Hashes for typst-0.1.2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdbf5badae30fa4d17bb2cdd4a6a1d218b1277b036ff0a33940dd390edea5f04 |
|
MD5 | 4d455210eb8526458798b649d6502013 |
|
BLAKE2b-256 | c1e4f78bc5c700e042dbee8ca33aa365bca70f422c1ed0b9eb8c952a7eecd7fc |
Close
Hashes for typst-0.1.2-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a89220b43867905ad6cd9b7b28f00503679ecbdff8d31a0766ef2109f6b332f |
|
MD5 | d1b431a24ecb8612b02160b1687b8968 |
|
BLAKE2b-256 | 1e017d98d0292e9295104284915819d403fb20d9cd0a898d7097af391f811b76 |
Close
Hashes for typst-0.1.2-cp37-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f174fb4aca10474a6475c7f7345027b30a3a853eb53c291a429923d5ddad0bf9 |
|
MD5 | 0a021a9527d814542dd8cf8a45d82582 |
|
BLAKE2b-256 | 17e236e8fd815ad59ebc9b25a98c7f56ed6be7e21932ac5ea22a2edfbcbc077c |
Close
Hashes for typst-0.1.2-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb8e8bc7ff4ede112204a28d0d449b56afbb98425afb1615da574b5eb27511e1 |
|
MD5 | cd1c7d8fc8510a29f59e3ee9f2b8805a |
|
BLAKE2b-256 | eb0c6041a346fa77d9fdd1c595017c6c7d9ae5c56a29181dd6b720e296e4a667 |