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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file typst-0.5.0.tar.gz.
File metadata
- Download URL: typst-0.5.0.tar.gz
- Upload date:
- Size: 5.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.0.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5796f31821476fa52e2df7b376c33adbd0e5287fae0f766ff7514b32d5473874
|
|
| MD5 |
aaa6c7e2551c6822a7a737373e218814
|
|
| BLAKE2b-256 |
383f43641c006e290c4e2a32ef19191ca1784e5aee1aae95f1c3da96e2626f16
|
File details
Details for the file typst-0.5.0-cp37-abi3-win_amd64.whl.
File metadata
- Download URL: typst-0.5.0-cp37-abi3-win_amd64.whl
- Upload date:
- Size: 11.4 MB
- Tags: CPython 3.7+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.0.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0cd689bd39606077db34c7a4aa2f5667bc9b7fb0c19cc3e112f548afbd68aa2
|
|
| MD5 |
5b894f818839ae9da19a52c7d2f3740d
|
|
| BLAKE2b-256 |
ab15c1a73457b7d8d0543b8f8461c3c9f4a572b4235ef3b606e8e9da9e183f6f
|
File details
Details for the file typst-0.5.0-cp37-abi3-win32.whl.
File metadata
- Download URL: typst-0.5.0-cp37-abi3-win32.whl
- Upload date:
- Size: 11.3 MB
- Tags: CPython 3.7+, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.0.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b71819dcd5525ae60e17352ccf818a51fe7b5727394a458480414e4b23ea6b94
|
|
| MD5 |
b175b1b84011edf415b1c73d9453eacb
|
|
| BLAKE2b-256 |
6c03e6020efa1485bd1497f91214549c8e03e14fd0472e084152b87b5a3dda34
|
File details
Details for the file typst-0.5.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: typst-0.5.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 13.5 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.0.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbd78739b5997e898b87cbb8b33c33b750370376edae176f88003a178a3529b5
|
|
| MD5 |
f5fda0302a691f552b5a8e661f3f7092
|
|
| BLAKE2b-256 |
f26649fb111f1581a30bea1ce00a4cc3714c48a334d453e16e0783405908775c
|
File details
Details for the file typst-0.5.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl.
File metadata
- Download URL: typst-0.5.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
- Upload date:
- Size: 14.4 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ s390x
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.0.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
752d5e935cbba0a83aecd7f96a370727f2ba6741d5f4d0b6e83745f983e060ac
|
|
| MD5 |
21e75078c188d65c95fe0bfd3e5bc0fb
|
|
| BLAKE2b-256 |
c7a625d629910e83043f636d7d35f7431c1c73f39c22f81a79d89a09f9fa808b
|
File details
Details for the file typst-0.5.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.
File metadata
- Download URL: typst-0.5.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
- Upload date:
- Size: 14.9 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ppc64le
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.0.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c814b67e6c4a477d302e65abae321ec315a232b36c31ee4a0cefe3c84bf7b9eb
|
|
| MD5 |
0261843eb7592527a74f22521e31a879
|
|
| BLAKE2b-256 |
1f0a88f8436c99d94bec41c0b93fc3188fd11d4167ad9d65b4c2148987fc9990
|
File details
Details for the file typst-0.5.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.
File metadata
- Download URL: typst-0.5.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
- Upload date:
- Size: 13.4 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ARMv7l
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.0.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f6e045fde44c587baaed7e85010cbd8c61a03ab1d9fd2329a813f640beeda55
|
|
| MD5 |
24a364e1fade234b1acac5cace08bd95
|
|
| BLAKE2b-256 |
6bf8acd31ecd4faec3c90e2bc044320acc9e3841f1daf13b1b4c10bee9d39c48
|
File details
Details for the file typst-0.5.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: typst-0.5.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 13.5 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.0.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb5c87e5f4f868af468f32cadfc33705904c0c5d68d80cf2ba57645506c926ca
|
|
| MD5 |
f10f8da2d4240483be59dab7bfe76cdf
|
|
| BLAKE2b-256 |
37c73289bc9510474ceefa925c700920fad70a0dc6afa6d58cc4c8d5b1c706ed
|
File details
Details for the file typst-0.5.0-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl.
File metadata
- Download URL: typst-0.5.0-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl
- Upload date:
- Size: 13.9 MB
- Tags: CPython 3.7+, manylinux: glibc 2.12+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.0.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c912d29db9ef5dc02b4f2e65c7ff4de548c29aec152b364d8f15b08baaccaab2
|
|
| MD5 |
f3bcca950f55f23f3b7a8b1645254978
|
|
| BLAKE2b-256 |
d587f0cf5461895d430df5f22918918175c4d5f1355a429158561aec1d700efb
|
File details
Details for the file typst-0.5.0-cp37-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: typst-0.5.0-cp37-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 11.8 MB
- Tags: CPython 3.7+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.0.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7eb07a4197245092d075b3053ff5d797125ebbd3b2713da85a7058eddb62ecb3
|
|
| MD5 |
71d225891f8928697361457a85eedd55
|
|
| BLAKE2b-256 |
91b3edc564c0b0113355b97b9ac5a50bed5d3b334974221f0c6d5305b059f008
|
File details
Details for the file typst-0.5.0-cp37-abi3-macosx_10_7_x86_64.whl.
File metadata
- Download URL: typst-0.5.0-cp37-abi3-macosx_10_7_x86_64.whl
- Upload date:
- Size: 12.1 MB
- Tags: CPython 3.7+, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.0.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fefb4c05cb7b11764c3c96d9393f3ea6c35dd7eafd5653f98bcd87497c0110fc
|
|
| MD5 |
796b5ad22d7b74de3397cf675f7dae33
|
|
| BLAKE2b-256 |
79240bd41e7e03f9b121ebb76252f9c0eac74c149b062244891d186cd4576ea2
|