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.7.1.tar.gz
(5.2 MB
view hashes)
Built Distributions
typst-0.7.1-cp37-abi3-win32.whl
(13.2 MB
view hashes)
Close
Hashes for typst-0.7.1-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56f5fce3b71bc8d6d261daa602e8347dd1b7889dc9b474bcd5ad7e55164b7024 |
|
MD5 | 433abdc11bb844b551c299c090168b25 |
|
BLAKE2b-256 | a35f8cdc20915718de41f7f97b5e2183ad1d8f5a739d1338c05dfc87d277106a |
Close
Hashes for typst-0.7.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb828afc603e1b60dae772ff663328cc67093f48d6546bc9840a4a3744193fc8 |
|
MD5 | 3222ffa5908f18894da8b6aef53de811 |
|
BLAKE2b-256 | 7ea1d0f779bf07b3edc2539504b0b1aceaf8a8606e4bf476ac987e3ea2d2d539 |
Close
Hashes for typst-0.7.1-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b53d3cd0e73b737e8f94a455e2ee8276c2ea6c88062a66d07039e1cac843c645 |
|
MD5 | 022b17b7730fed23e5229e9dad9cac31 |
|
BLAKE2b-256 | fecf85592fc30270c1253633c1ea4bd7def3ebec0f6e52a18f4d78f3e410a2f3 |
Close
Hashes for typst-0.7.1-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7ac06b42375029e3b906a557e9f474c86162937595c2c56b99272f533125349 |
|
MD5 | 336fe38e85a1402984f40f4f158ea9a8 |
|
BLAKE2b-256 | bfe972b67b0ddbe5add2c6eced9459beb24a67c7dfc7b2c1cf6d675a0a2608cd |
Close
Hashes for typst-0.7.1-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41b60ac2c0bbce47d78f4bec3c1820d6259b3f124551f0562eda1485d99ddbb1 |
|
MD5 | 601d82f0fce0bc4f5d6c548ac6b353fa |
|
BLAKE2b-256 | b1bb8beb3406a91413915ce965f3baebc8efa66fae50b83c4cf501fb58a1d6c9 |
Close
Hashes for typst-0.7.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b0de19ee1eff5e13fbc99781febd799381632717ee89dcfdd7ba4a4a8d685e1 |
|
MD5 | aafb4e64f3cf361fa5c93debe3621f2f |
|
BLAKE2b-256 | d2b0c99a12954c0ac636ecdc3adaf34ea30b66a8cd105078b3939b3800eca896 |
Close
Hashes for typst-0.7.1-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30fc725f39125bfe6e84827b01af38761e335ead120b909b2a0ba772baa3b067 |
|
MD5 | 4e727d7802b16bba02c6163262f434d8 |
|
BLAKE2b-256 | 23dad9ba2111cd93f99bc5421343963f568c4ddb759ddb94abd85f9a0800d5ab |
Close
Hashes for typst-0.7.1-cp37-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64584cf56568fc4b20d9e5a9bb9cdf491355d51d1a8a6407b38c906e0dd64a44 |
|
MD5 | f3a99282a985e363193d1884b251bad6 |
|
BLAKE2b-256 | d4f4686de3b884d090218f4bc81008bc71a2a1aa41124f191bc899a44d1ef6ff |
Close
Hashes for typst-0.7.1-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 391df44460fec636c16cab30e3db3fbb31e3b0ee65a53cf71c075e6339d4bc03 |
|
MD5 | 3922042c91a555c5d3e324f6a4768de5 |
|
BLAKE2b-256 | 276c494cc8bc9075e5245d6cd5ac913d0a166aac791d9495ad56d2254e34a0cc |