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
Built Distributions
File details
Details for the file typst-0.7.1.tar.gz
.
File metadata
- Download URL: typst-0.7.1.tar.gz
- Upload date:
- Size: 5.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.2.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 523a81ab10ad21e954fef1ee6237d36f8a41e5ef3a7fdd4b54e4ebb94d7ce8cf |
|
MD5 | 075087e4eb7fe2b200f7786d4acb4fc5 |
|
BLAKE2b-256 | 1e55e147a78a1c2064aa7d024a221c3444fdb7bab850fd50bf610ca8e159ee01 |
File details
Details for the file typst-0.7.1-cp37-abi3-win_amd64.whl
.
File metadata
- Download URL: typst-0.7.1-cp37-abi3-win_amd64.whl
- Upload date:
- Size: 13.4 MB
- Tags: CPython 3.7+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.2.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56f5fce3b71bc8d6d261daa602e8347dd1b7889dc9b474bcd5ad7e55164b7024 |
|
MD5 | 433abdc11bb844b551c299c090168b25 |
|
BLAKE2b-256 | a35f8cdc20915718de41f7f97b5e2183ad1d8f5a739d1338c05dfc87d277106a |
File details
Details for the file typst-0.7.1-cp37-abi3-win32.whl
.
File metadata
- Download URL: typst-0.7.1-cp37-abi3-win32.whl
- Upload date:
- Size: 13.2 MB
- Tags: CPython 3.7+, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.2.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b75f97c68e2505251a32e5d38cfc1c1d289b6103b8c728b3a02c263e550253fc |
|
MD5 | d2f5c46bfba4c043c214ffc520f93393 |
|
BLAKE2b-256 | e1cd567d44ed1fdc6e8efc15d5b7fcd8879faea4f869528d6fd8af97166b80c2 |
File details
Details for the file typst-0.7.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: typst-0.7.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 16.2 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.2.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb828afc603e1b60dae772ff663328cc67093f48d6546bc9840a4a3744193fc8 |
|
MD5 | 3222ffa5908f18894da8b6aef53de811 |
|
BLAKE2b-256 | 7ea1d0f779bf07b3edc2539504b0b1aceaf8a8606e4bf476ac987e3ea2d2d539 |
File details
Details for the file typst-0.7.1-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
.
File metadata
- Download URL: typst-0.7.1-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
- Upload date:
- Size: 16.5 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ s390x
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.2.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b53d3cd0e73b737e8f94a455e2ee8276c2ea6c88062a66d07039e1cac843c645 |
|
MD5 | 022b17b7730fed23e5229e9dad9cac31 |
|
BLAKE2b-256 | fecf85592fc30270c1253633c1ea4bd7def3ebec0f6e52a18f4d78f3e410a2f3 |
File details
Details for the file typst-0.7.1-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
.
File metadata
- Download URL: typst-0.7.1-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
- Upload date:
- Size: 18.7 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ppc64le
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.2.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7ac06b42375029e3b906a557e9f474c86162937595c2c56b99272f533125349 |
|
MD5 | 336fe38e85a1402984f40f4f158ea9a8 |
|
BLAKE2b-256 | bfe972b67b0ddbe5add2c6eced9459beb24a67c7dfc7b2c1cf6d675a0a2608cd |
File details
Details for the file typst-0.7.1-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
.
File metadata
- Download URL: typst-0.7.1-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
- Upload date:
- Size: 16.0 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ARMv7l
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.2.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41b60ac2c0bbce47d78f4bec3c1820d6259b3f124551f0562eda1485d99ddbb1 |
|
MD5 | 601d82f0fce0bc4f5d6c548ac6b353fa |
|
BLAKE2b-256 | b1bb8beb3406a91413915ce965f3baebc8efa66fae50b83c4cf501fb58a1d6c9 |
File details
Details for the file typst-0.7.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: typst-0.7.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 16.0 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.2.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b0de19ee1eff5e13fbc99781febd799381632717ee89dcfdd7ba4a4a8d685e1 |
|
MD5 | aafb4e64f3cf361fa5c93debe3621f2f |
|
BLAKE2b-256 | d2b0c99a12954c0ac636ecdc3adaf34ea30b66a8cd105078b3939b3800eca896 |
File details
Details for the file typst-0.7.1-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl
.
File metadata
- Download URL: typst-0.7.1-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl
- Upload date:
- Size: 16.9 MB
- Tags: CPython 3.7+, manylinux: glibc 2.12+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.2.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30fc725f39125bfe6e84827b01af38761e335ead120b909b2a0ba772baa3b067 |
|
MD5 | 4e727d7802b16bba02c6163262f434d8 |
|
BLAKE2b-256 | 23dad9ba2111cd93f99bc5421343963f568c4ddb759ddb94abd85f9a0800d5ab |
File details
Details for the file typst-0.7.1-cp37-abi3-macosx_11_0_arm64.whl
.
File metadata
- Download URL: typst-0.7.1-cp37-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 13.9 MB
- Tags: CPython 3.7+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.2.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64584cf56568fc4b20d9e5a9bb9cdf491355d51d1a8a6407b38c906e0dd64a44 |
|
MD5 | f3a99282a985e363193d1884b251bad6 |
|
BLAKE2b-256 | d4f4686de3b884d090218f4bc81008bc71a2a1aa41124f191bc899a44d1ef6ff |
File details
Details for the file typst-0.7.1-cp37-abi3-macosx_10_7_x86_64.whl
.
File metadata
- Download URL: typst-0.7.1-cp37-abi3-macosx_10_7_x86_64.whl
- Upload date:
- Size: 14.3 MB
- Tags: CPython 3.7+, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.2.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 391df44460fec636c16cab30e3db3fbb31e3b0ee65a53cf71c075e6339d4bc03 |
|
MD5 | 3922042c91a555c5d3e324f6a4768de5 |
|
BLAKE2b-256 | 276c494cc8bc9075e5245d6cd5ac913d0a166aac791d9495ad56d2254e34a0cc |