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.1.1.tar.gz
(4.0 MB
view hashes)
Built Distributions
Close
Hashes for typst-0.1.1-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6551b23e42b956cbc9bb86e5d413b95e67ac6c2f0a896f432e6e4112c5b793dc |
|
MD5 | 72a7e7988e4493a31c07c7475b8c9266 |
|
BLAKE2b-256 | 6273a680370ce1fd1c73652903739496249eea4e1103172733173c5cc87f1993 |
Close
Hashes for typst-0.1.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c31fa3e2945d3edc6b811bbe035363356389f515436f3cf5a9387cb235660a1c |
|
MD5 | 709f725bff465c45a024fe7ba57486e7 |
|
BLAKE2b-256 | dc865ee632dc91e3d5c7d9300ae310beb634dca84531060925dca6fd6a80a054 |
Close
Hashes for typst-0.1.1-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6eebc4675743bc7182ed49779fc2bb1d39dbd26747745fca2b72304197849770 |
|
MD5 | 333af876031921f22c3647876a1fc7c7 |
|
BLAKE2b-256 | 4344203b1941c5963fe6c9d22fbb062409b185fc5f15b9ff3245bd6bdc36fca2 |
Close
Hashes for typst-0.1.1-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd4e00d80b1fa20ae8b621d1d4ce93832bd2c73dd01d87dab0541150dbde18ca |
|
MD5 | dffcaa9f372f3bf835ff13690fa4d1db |
|
BLAKE2b-256 | a4d4ca3a4bd318cf054170842469a5dac118fcebff6fa7ff7b9a56ae3ba05772 |
Close
Hashes for typst-0.1.1-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac17d23bdd7063a37ec3a0e6f79eff99910dc97194b0ad70f1f5697b5d9c1de9 |
|
MD5 | 1547871d5b8d45d43e6ea43369a53cf5 |
|
BLAKE2b-256 | 1cb3c123a4efaa8a7cf934e78d5fbd69214e6dc431b27c7d1b47698e0652f57e |
Close
Hashes for typst-0.1.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57aa4e7ca326547c8a84042f1c44a9e286a2dc69b26c1ff412075f387f93831c |
|
MD5 | 6c8808f59c9c6a664b70e98a999dd159 |
|
BLAKE2b-256 | 63d81f08d15f95498e016828116e4d079f6cdc0259bb825245e50562043ec75a |
Close
Hashes for typst-0.1.1-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7a90838508f506e341afd6502e0ea63b8e7f7ccd43e8406b7852e4e9d0d7a93 |
|
MD5 | 183b7a9df1109c87edd3cb0d6df54243 |
|
BLAKE2b-256 | b0a83cf1ef4f55a801b826b7c6104409cf36dc4d1fe7f1c7cd73ffa94fade4c7 |
Close
Hashes for typst-0.1.1-cp37-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94f2e9d7bf82a79d0bca4550a8d3ead3509053073e92b14b3b3aefdc69bcda27 |
|
MD5 | 8f13f30c81489307e87e01f84052e2e0 |
|
BLAKE2b-256 | 0e60bbb770fc413f49e98e9b78226a70a68286ae89c93f60d41b0392a0c4cde8 |
Close
Hashes for typst-0.1.1-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d21bc43cd197ca475df12234ba622f88b40caf4d954cf80aa94a67cd87498d18 |
|
MD5 | 786db221502f621ae4f66563518534c3 |
|
BLAKE2b-256 | cfbd877ce07c40298b228081302fd5ef4b0f120753815a5340f6e6fcc94de6c3 |