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.5.0.tar.gz
(5.2 MB
view hashes)
Built Distributions
typst-0.5.0-cp37-abi3-win32.whl
(11.3 MB
view hashes)
Close
Hashes for typst-0.5.0-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0cd689bd39606077db34c7a4aa2f5667bc9b7fb0c19cc3e112f548afbd68aa2 |
|
MD5 | 5b894f818839ae9da19a52c7d2f3740d |
|
BLAKE2b-256 | ab15c1a73457b7d8d0543b8f8461c3c9f4a572b4235ef3b606e8e9da9e183f6f |
Close
Hashes for typst-0.5.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbd78739b5997e898b87cbb8b33c33b750370376edae176f88003a178a3529b5 |
|
MD5 | f5fda0302a691f552b5a8e661f3f7092 |
|
BLAKE2b-256 | f26649fb111f1581a30bea1ce00a4cc3714c48a334d453e16e0783405908775c |
Close
Hashes for typst-0.5.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 752d5e935cbba0a83aecd7f96a370727f2ba6741d5f4d0b6e83745f983e060ac |
|
MD5 | 21e75078c188d65c95fe0bfd3e5bc0fb |
|
BLAKE2b-256 | c7a625d629910e83043f636d7d35f7431c1c73f39c22f81a79d89a09f9fa808b |
Close
Hashes for typst-0.5.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c814b67e6c4a477d302e65abae321ec315a232b36c31ee4a0cefe3c84bf7b9eb |
|
MD5 | 0261843eb7592527a74f22521e31a879 |
|
BLAKE2b-256 | 1f0a88f8436c99d94bec41c0b93fc3188fd11d4167ad9d65b4c2148987fc9990 |
Close
Hashes for typst-0.5.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f6e045fde44c587baaed7e85010cbd8c61a03ab1d9fd2329a813f640beeda55 |
|
MD5 | 24a364e1fade234b1acac5cace08bd95 |
|
BLAKE2b-256 | 6bf8acd31ecd4faec3c90e2bc044320acc9e3841f1daf13b1b4c10bee9d39c48 |
Close
Hashes for typst-0.5.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb5c87e5f4f868af468f32cadfc33705904c0c5d68d80cf2ba57645506c926ca |
|
MD5 | f10f8da2d4240483be59dab7bfe76cdf |
|
BLAKE2b-256 | 37c73289bc9510474ceefa925c700920fad70a0dc6afa6d58cc4c8d5b1c706ed |
Close
Hashes for typst-0.5.0-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c912d29db9ef5dc02b4f2e65c7ff4de548c29aec152b364d8f15b08baaccaab2 |
|
MD5 | f3bcca950f55f23f3b7a8b1645254978 |
|
BLAKE2b-256 | d587f0cf5461895d430df5f22918918175c4d5f1355a429158561aec1d700efb |
Close
Hashes for typst-0.5.0-cp37-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7eb07a4197245092d075b3053ff5d797125ebbd3b2713da85a7058eddb62ecb3 |
|
MD5 | 71d225891f8928697361457a85eedd55 |
|
BLAKE2b-256 | 91b3edc564c0b0113355b97b9ac5a50bed5d3b334974221f0c6d5305b059f008 |
Close
Hashes for typst-0.5.0-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fefb4c05cb7b11764c3c96d9393f3ea6c35dd7eafd5653f98bcd87497c0110fc |
|
MD5 | 796b5ad22d7b74de3397cf675f7dae33 |
|
BLAKE2b-256 | 79240bd41e7e03f9b121ebb76252f9c0eac74c149b062244891d186cd4576ea2 |