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
# Compile `hello.typ` to PDF and save as `hello.pdf`
typst.compile("hello.typ", output="hello.pdf")
# Or 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.8.0.tar.gz
(5.2 MB
view hashes)
Built Distributions
typst-0.8.0-cp37-abi3-win32.whl
(13.7 MB
view hashes)
Close
Hashes for typst-0.8.0-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 429d2a115180dbbe80ebeafa7569922f6144e6c8b58598dd3fb642f6e8ad7423 |
|
MD5 | f7601e58832fcb1f28da60c670b148bb |
|
BLAKE2b-256 | eed2535bd70e8deb8bd17774a23ecc4b045e91fc9bc31224fe0c1e09f25d68bd |
Close
Hashes for typst-0.8.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da71d9011fc5e70b9180b162e72db85da28e0d47e13ae76fa4fc304e14d0ea8a |
|
MD5 | 0939cd1ed03f9b27cc8b8117adaf05f5 |
|
BLAKE2b-256 | 337801befb5fc9fdaee02392a11dd5e6351850a6f56d723f1d79fc2a5a6d417f |
Close
Hashes for typst-0.8.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e04d751ee8fa941444d225ea8e35eb3f5073aedbfe3dd4a7cf1e572c5b2f8a3 |
|
MD5 | c364516691ee85a22b2b3de886bd5f81 |
|
BLAKE2b-256 | 455913daa428d68b01fa73adf7bf0497bb4a02f59c299048bd18216964fac529 |
Close
Hashes for typst-0.8.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91033fc54af5160891b15f8e73550bff984fdee539e335c55d6d69275ff5c64d |
|
MD5 | 575eb110c2abf9a0ceac68233acc320e |
|
BLAKE2b-256 | ec2ebde2f36343eddf2cf896cfb82f57114143c5f84a4c886e07cd002fe1e762 |
Close
Hashes for typst-0.8.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71c97d0ad34c6bfe2ac5c1b5c5a81a905f68f74f8df067a5c75effa13556614d |
|
MD5 | efd18393a78e366bfd7bc8c84221567d |
|
BLAKE2b-256 | 5252aea35c307fc5914f2d8e333c9149122566b30841508c990b19b8ea86edc8 |
Close
Hashes for typst-0.8.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 284b205fa6ae160aa85e20737d87c4b1b6d0ebfdeabb6895a3bb333d1c53ee18 |
|
MD5 | dd8f7ab2c77e1e432b5ec9a27a855aac |
|
BLAKE2b-256 | 741c0ab99ecd0b5ee0c2f905e98b07e33d097eec37181e94886f4340da17ba3c |
Close
Hashes for typst-0.8.0-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ffff086fe48ebe93daacdcbcbb4d3f185388866e77e07570114884c237c8f44 |
|
MD5 | 57c37e0a7a1672ea4bd6327f006a6675 |
|
BLAKE2b-256 | a66ef536d134b0cd325ea073a214b6fcc147e5a661b169fea2acaf8f16afa4df |
Close
Hashes for typst-0.8.0-cp37-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b023a72ecd7be2dc73c636b55a323dcc8bd922c4983d8eec5202248ffcdef828 |
|
MD5 | 02a486c17cde397c33a90e567c90591a |
|
BLAKE2b-256 | 227ea10c80fc6fcb45a1b95a4b6af8e80662ca2bb62215c02b6f7fc08b04c194 |
Close
Hashes for typst-0.8.0-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b50c994e7b819c39f8adc3d82b593d1780ea76604b8f30043375be5efe393aa |
|
MD5 | c709b906e9d52ed16831b073a81b289e |
|
BLAKE2b-256 | 456634804d3b4cbd7d665ebf1faa9548645cdda8a90c2bc85cd1cbf5a02a34d5 |