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.4.0.tar.gz
(5.2 MB
view hashes)
Built Distributions
typst-0.4.0-cp37-abi3-win32.whl
(10.7 MB
view hashes)
Close
Hashes for typst-0.4.0-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f137a248f27cb9f97575357cfdfcce73186228ebfb570be86c0d3690154e5f44 |
|
MD5 | 2f065c39970b2ad9a579fc4c224e2b02 |
|
BLAKE2b-256 | 291a011187a17b41ad10869774612d99bf9c75e50828ea5ae51476dc4d22944f |
Close
Hashes for typst-0.4.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87b7bb1e30cf8f293dc453c3249b2789725cb23d24dbae3beda191dfd2aae654 |
|
MD5 | 85cd7e0f6feae09653407db96590a39a |
|
BLAKE2b-256 | 30195bbd454ed1aef8abd116fbbdfa642b3d1e205efdb391f8f3520d99a02786 |
Close
Hashes for typst-0.4.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2430e96077bc6cb2c80de6fa1de0418cb5a058ac8f6423bceb1c0a9c742db15 |
|
MD5 | d5fcd59ceab157049ec8871ae92f4ac6 |
|
BLAKE2b-256 | 44938a20181b1f77cc7a6a2b7200a42bcd650460ab6e04f39c3c0360839c95dd |
Close
Hashes for typst-0.4.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8c99bfaeee27d8e187bfee9acb1ea01479c04aaea1dfb2c06cfa69d0f62d99b |
|
MD5 | 1be8cc3c2528c0d13929c721e17efebe |
|
BLAKE2b-256 | 639d9cb1884cc5382c02b5a8ce4ea19917aa672d22742100c1c49a2b416b38ca |
Close
Hashes for typst-0.4.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36ed7c2055eb3c8ec858ae62afb65ec3e917c29c20d2d09767626d8dd9d463e6 |
|
MD5 | 5d47a018507022e2abf43cf118e160ec |
|
BLAKE2b-256 | 55a7bf91b38a8e5342d8ebddac392d932965fd985823b9b86f21ea82a4c2841b |
Close
Hashes for typst-0.4.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d118271a7b28431e69a30ad40bf6eaba1ab116e618875ad8b1f1a7c627d78aae |
|
MD5 | c848be23fe26eb57359609b7abda0141 |
|
BLAKE2b-256 | e7829c7740175a1d0ce0bdff7786ad696cb2f812f8450c26544dec8f3a82134a |
Close
Hashes for typst-0.4.0-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ff0854b299d19d613aa9b63448e5dad81c381005e2b1aaa388a4069f0aa2bff |
|
MD5 | 9b6c0d53a92366367c5e82505d0a7796 |
|
BLAKE2b-256 | 5b16754ff314548961507f09e771550e3569d44b8b5d2c75d032ab9cb2f5061c |
Close
Hashes for typst-0.4.0-cp37-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05cd7cee475edcbfe74715807c120cfeca112c41c65bca028d2053e131307b0a |
|
MD5 | 77e365342c79fee6af72c67772668b15 |
|
BLAKE2b-256 | fb70b1ba5ce8ff98411693e082df1c09eda6886da5339eb8bf66348d1262f457 |
Close
Hashes for typst-0.4.0-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b08ed44a42cc100e2799123d2326f3ca8e21bb081c7eda88d0e0b10665008a90 |
|
MD5 | 255e9969a71bf3cc03e1c027bdae5b1b |
|
BLAKE2b-256 | 8f6627dab051c78961c930b4fa4aa67e90cfacd169e257997944bca5b6f93fa3 |