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.3.0.tar.gz
(5.2 MB
view hashes)
Built Distributions
typst-0.3.0-cp37-abi3-win32.whl
(10.5 MB
view hashes)
Close
Hashes for typst-0.3.0-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1b6aa52aa757e633ea3d60af8c732b06e945752a2a0de0ebb8e95f3401b7e18 |
|
MD5 | fac2ae064b7b1008ac80b509e7ae91e1 |
|
BLAKE2b-256 | 71c2c32585416604e5ed6b69f2766e1bede49e7feb42dbd2da07413be034d6f5 |
Close
Hashes for typst-0.3.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b71ba8e1c1ce9f14c0fa685163927b793286bcc785954c4c845d1a80d6e6ad04 |
|
MD5 | 97e7923799725d701b3e801f0651918f |
|
BLAKE2b-256 | 40d4e903021263395d86b1a228b8764d5ba0f864f8389270185ebab1b27e183f |
Close
Hashes for typst-0.3.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45056fd052786d5e09079eba8bdca58eed52c13c66d14584c309144509dbfbe7 |
|
MD5 | 87d11f5cbaec6ff3b87588447540dbab |
|
BLAKE2b-256 | 70513fa3b64e550bada7c035cf2f6102cfb5dd472b96b13657326e620c2cebd8 |
Close
Hashes for typst-0.3.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8599f5b40ed96846f9052e969e96ae95bc7893dfa716a6a963ec555a940f37b |
|
MD5 | 2769df553dc8705ed33502b3f37e176d |
|
BLAKE2b-256 | a291c78e906c2c42f32f9c609ad2e16c8194278bbb3384a40bd0d08499b8bb3b |
Close
Hashes for typst-0.3.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bba95c91c8e182816ab920b95ba80d29b1e28d5b5c5ece5d34fd5b5c65f626d4 |
|
MD5 | 5d28c8e7a6d993adbce043146a834cad |
|
BLAKE2b-256 | 6c2755ec7f21cacadad092dc5b3915009d604418228617f0cb89629d9e267139 |
Close
Hashes for typst-0.3.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bbe69c02afcb584627494a6c7108caedf04e757f47a5a2f9d2a5b888df3d35d |
|
MD5 | c29ae9b00a22cadf6c8637080d42b4f9 |
|
BLAKE2b-256 | 21747cf36f6126b5ecd1e4c8406cb09e793c9e478a05b8505f6638ce7f1f0db6 |
Close
Hashes for typst-0.3.0-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a43677dfc4b2f8cd93efac730d93dec4736c9d8b848e294a014414cf88b761fe |
|
MD5 | 97f09e929bfb1cc6e656dbef2d92d2a8 |
|
BLAKE2b-256 | 45f12bddd3d692b7ecb503c8091ea9681add9b90c2900329a12759fd9bfe8e63 |
Close
Hashes for typst-0.3.0-cp37-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db4f3de2d89b8775e7a825528009df442f74ba977f08c81717ddd54d60eb3c2a |
|
MD5 | 2e3182ffe4ead795ab1ae8970ff78a04 |
|
BLAKE2b-256 | 3c563aa8958b141b467415fe0222bd024b2c9804fb303230ef76be80d36b2580 |
Close
Hashes for typst-0.3.0-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba9b82b23aa0fa272d70305b1d392d014905c3c726cd1d5057e2106b886972c0 |
|
MD5 | 456f6442b154c4b3c95625593fc332f2 |
|
BLAKE2b-256 | ccd5d596bfcdbb78ce0d56981eacf6dbb0e890b96613aa5a9729cee9a81b3983 |