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.4.tar.gz
(5.2 MB
view hashes)
Built Distributions
typst-0.1.4-cp37-abi3-win32.whl
(10.0 MB
view hashes)
Close
Hashes for typst-0.1.4-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c67fa1ec4694e9dc5645609d8d73a6e53fe51c9c768e5f9e44bbb2a74143c1d2 |
|
MD5 | e57d8d36b56f73127a81495cc26d993f |
|
BLAKE2b-256 | 1d3240dc48da4686d6ea5ecb2eaa6c7858c61b23e9d3352a3269582b5e49c112 |
Close
Hashes for typst-0.1.4-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49c9d1f42d5f725247e055a30a7b7f1bd216b6540e8aae546591d78ddceb8ee1 |
|
MD5 | 1eb6a4781a8d7191fada3bd0557645f8 |
|
BLAKE2b-256 | b24b6bd220885371b3b20d7559c173225e45dcf13ad5feb85e2aa4a22bef4ce6 |
Close
Hashes for typst-0.1.4-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d78fdaffce841f6867c5919d22c59b1be955a975db96fbba4a503884912d9364 |
|
MD5 | 6ff85994441bedaee8b57e56e096aba5 |
|
BLAKE2b-256 | 5472caf610fd1660f5d845fd656f12788130a7df4e355c1d5396ed21b21cc515 |
Close
Hashes for typst-0.1.4-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b61aca25d39c2d0ca3579a9ff918ab5dd880dcdac95cbb6cddc78154c2843ace |
|
MD5 | 41b38f1b2ce5cd8055df8a34c992d499 |
|
BLAKE2b-256 | bda5a215672e3335ef0440349d233aa74c028db5a76b91ea2c6442a25c567c9f |
Close
Hashes for typst-0.1.4-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bbb98238149e8d1d8c5d558d1e3fc6190bfa956178a47a40b7292611245c8f9 |
|
MD5 | 31b62e7cf2ec321f3e5bdbb1b90dd37d |
|
BLAKE2b-256 | 0aee82d8216444cffdf32914e4a9f5f0e6ccabba353c54d3bab79e964a179973 |
Close
Hashes for typst-0.1.4-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40ac04648384ac0d0e976acf3580169803c989b275faf047dc94169ad261f9ba |
|
MD5 | 3216519aeaadcfc035ee52d9bf47d235 |
|
BLAKE2b-256 | 51369e34cba74466e4efc07cf6e5ffbc85af8226294c2047bde3c5e13d7f854e |
Close
Hashes for typst-0.1.4-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 089094cebb4a1988532594b829809cd8049c21b08eb009aee9e29a7900c8b9d1 |
|
MD5 | 9f2e8cc88665c3b6c270380a31805732 |
|
BLAKE2b-256 | 997bd169be80c5baddef468c9f2dc63b4223ed8175d6e805d5c6024b49c7d04a |
Close
Hashes for typst-0.1.4-cp37-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f73cd638359ce3a13b460f339fa2ca72d57c293523f24bea83d8a0676d36dd61 |
|
MD5 | a1bf02ba33ed119760d22272b60bdf52 |
|
BLAKE2b-256 | a8bfc69111b69a886acedc63e9c80a22857a7b499b56980e77cc258cf86137cf |
Close
Hashes for typst-0.1.4-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dca8bb911f259b5bed7ecc387a8d9c468f63edcf76f742acaaf8b4b4482d324a |
|
MD5 | f29724afb65d9d4f4b3239688351e2d3 |
|
BLAKE2b-256 | 74021cffcb51449d170abc6af875793e641a1485d2806af0db446f4b0fb056f2 |