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.0.tar.gz
(5.2 MB
view hashes)
Built Distributions
typst-0.7.0-cp37-abi3-win32.whl
(13.1 MB
view hashes)
Close
Hashes for typst-0.7.0-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8abd64cfeed2111ec3f811a4a9e34fb3cd7c20564a371a84f0e31a29b4105878 |
|
MD5 | e6adbb08b1560953df1dd29e15bcc2f5 |
|
BLAKE2b-256 | c2462276d6ec778a5ea142a3cdc70d7639629ad509601f2bba2584625802e718 |
Close
Hashes for typst-0.7.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bc341889b751c4feb7a0c02ced418af3093c623861cda01fc1e759658da7e57 |
|
MD5 | 5101f86a425dcfd18c8c9ca8263c6773 |
|
BLAKE2b-256 | 5eaab6ad4caa7353c359bf05316db08c7601cbfc268d67e704c4eceddb1d04de |
Close
Hashes for typst-0.7.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54ed134618307d082ae41559e4be4432badd5c3c81ed98d712401c83751e5cd8 |
|
MD5 | 13bea775447be82e2a1914b0bb644ed2 |
|
BLAKE2b-256 | 75f7178c94d62e98aad330a5ab43efa441388f17111709c2e6c4fbff36ea0e0d |
Close
Hashes for typst-0.7.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1aa7e2c4e27c744bf3d0aea0b383c02d35f37007f25e4d89ee560ac38c9cf5d8 |
|
MD5 | 969f5fba9c491cac27ab0f52489a0a88 |
|
BLAKE2b-256 | c891b8af1d40bed92bcc5f6a95ad42b9c8de945b71fc9d8f431b3bb3b92c3371 |
Close
Hashes for typst-0.7.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6c9f7abb1e8af5438b8fd994a31cbfbe370f1594fae6c31b1d32f5850720938 |
|
MD5 | f6ec96dffeaf3d5b78db21c689b35a82 |
|
BLAKE2b-256 | 7b4b207b59806bc55a204e94eeedc613307c0c9a842cced00d08ffe7d60ed970 |
Close
Hashes for typst-0.7.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8eb11872c8bb1a5692b1ef936a39647457e9bc7e8cee2f5463903ba925e3dcca |
|
MD5 | 8054eba8a2134cd9ee1ff0283e2bb107 |
|
BLAKE2b-256 | b5d608fca4dd32d0b27548be0de723c5e94cdac3decb43cb812de43439be680e |
Close
Hashes for typst-0.7.0-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e52229b9ffd14c992b5ab671c2e5f8df3f0f159987d1c3e4522c9963c4e2a1ca |
|
MD5 | 8b38073f3c06642dba62b68ccf30aac5 |
|
BLAKE2b-256 | dfa9d9c7a205c7376a703d172a3be2fe054da80e82fd542115188244c9e3a7d5 |
Close
Hashes for typst-0.7.0-cp37-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9eda6e7d5f8f40495021235b0578a2ed508c5274a2b83303da2f309b29d1d4f |
|
MD5 | c39cfc66e39481ffdf2d19ff4c3e15e3 |
|
BLAKE2b-256 | 2a6c1e0453ab6f311f12738116f0d8393f43412020c5b5397f4281652f300640 |
Close
Hashes for typst-0.7.0-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc0b43069d54823d3f94cc2c0db9470d1d844017f0f82b2d030bd5bbd10476fc |
|
MD5 | 8b130bb098a590ff7ce894904dcae386 |
|
BLAKE2b-256 | 9b8e7c26b96dac9a8a1d7b836a18dd710ad1ee56c31b386fda7888cf9aadc34f |