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.0.tar.gz
(5.2 MB
view hashes)
Built Distributions
typst-0.2.0-cp37-abi3-win32.whl
(10.1 MB
view hashes)
Close
Hashes for typst-0.2.0-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ecd3e09179c17413239f186e5e47c748f4e3c2a6257891db4a57885fa41f5a4 |
|
MD5 | 8924bda6358a48a2e94f63be6af4d12a |
|
BLAKE2b-256 | 3c43cb4d339e58600544a3f4b1a96ea3e0fdd6eabff34c14bc10e9fb25fc83c3 |
Close
Hashes for typst-0.2.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ec2607a44961e1e36bf0ba6671af7a76854c73b6d9929c312bfda7ecfbe6b88 |
|
MD5 | e9f52addc32afb82f57e18aa97b43861 |
|
BLAKE2b-256 | c0f9f1dd51dd247dbc9626472a32bd0d3ce6014b745d8171b44e243da5e177e1 |
Close
Hashes for typst-0.2.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b632b9cf5e6b7780198df24db27a85133384f0166e086c07b4629b70c42225b |
|
MD5 | 203ccc6cd019ef58aa7a6d51f8d776b2 |
|
BLAKE2b-256 | 7119a2026aa62758b674e21c2ef1bda0cd790ffe876f6b84a0be4e2bf47cf706 |
Close
Hashes for typst-0.2.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d12e17a6d596af25b65bfc5e6c7555ea79680992fe30cd73f294ca7efc0114d |
|
MD5 | 91ce2b4bb585ad7c240b14cf82c8ea94 |
|
BLAKE2b-256 | f660932621aa8e532d510e1ae262fc2a87add5bbc0250c63e043e63b91f4488a |
Close
Hashes for typst-0.2.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3a2ac9bd7ef477e52f64b4eb51d6053c9d730eb2270364d6de5c835621701be |
|
MD5 | b1f912e66c10e4e2ec33f0c6ed3af63c |
|
BLAKE2b-256 | 9449b3eae240d9e3557963a221346de8e3ae484d4ff1f8b4ac5f71c9f8e4875e |
Close
Hashes for typst-0.2.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebcda45da250dfda9ca1a977a1e5f57939566c8a579acc2b96d626ec7325fc9b |
|
MD5 | c8c514fb49926ffcbc18dfcd8523d2f7 |
|
BLAKE2b-256 | 6c735c4df4adbd7c87eefc87165b184cfa73f4483f4e5211b9e71823e149d8eb |
Close
Hashes for typst-0.2.0-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8df3b768cd7c9bc8b6c39f34a2a57f0e2162854b2a0a02b40ed0ecadc517351c |
|
MD5 | 640e921a63e752bc569eda3012940ea6 |
|
BLAKE2b-256 | 014173101c13acb2891b3e11ecf4fc67f12f339b69abd47635d25883e9171288 |
Close
Hashes for typst-0.2.0-cp37-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | edd67111914b8391ad0a87c6defa33d9b336c65f97aa843086a294fae4451c79 |
|
MD5 | b5469671d4ee18facd3795a338624205 |
|
BLAKE2b-256 | 1e333bdac8111ebac52b20aa72916dcd40fb99d42c5f231aa281bbd68417b352 |
Close
Hashes for typst-0.2.0-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6482d9ea8ea77086242a3f3d5a4f4e26e86728631ab95e1162656fed0ee2568a |
|
MD5 | f7d2b853a506f0c9bb066643f313215c |
|
BLAKE2b-256 | d612e94c8cbef26409c6da0e4809ffc7744ba3cb4b910a03e72164ee88404f1a |