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.3.tar.gz
(4.0 MB
view hashes)
Built Distributions
Close
Hashes for typst-0.1.3-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4419ecfef937d337975eba38fbb4c0e6ed7fe8ae8ce01492061ad210b5784a5e |
|
MD5 | 3a1023006c48fcbe1fb4efc562fb6dcc |
|
BLAKE2b-256 | d4823a66f455d1ead9610cd9068b5189b29b750642c04a70279bee30f7759d10 |
Close
Hashes for typst-0.1.3-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6567554466c6ff537bfa8928968041b27c4a973baa6d3640c5db379e04cb4ef |
|
MD5 | 474aaa846a56ed397201f71cd18fc61e |
|
BLAKE2b-256 | 3b9b9b56a190681c02f512e4d909b3f22925c4407f03c31e8e9a33930c38ae0d |
Close
Hashes for typst-0.1.3-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d8d0f641690606aedaff424bd7d1e3544e340c313dce0f6744218bc78a06163 |
|
MD5 | ad53ae36dd8401607bc558dec6c739cb |
|
BLAKE2b-256 | 640f9d99c786973f8a5ee2bc8ad06b0769e03a72f50275ed672940dd21bd8bc7 |
Close
Hashes for typst-0.1.3-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d80922a32a16d43b3146f6a0accbe6e907c9813e49f9c08968ff9d74379ede5d |
|
MD5 | 4e2a4e33a0aaa60bb9c278469f558098 |
|
BLAKE2b-256 | 512dd89b3ad0121d0ec229ebe711415fdc73d2731534811df3afc1d262bd5f13 |
Close
Hashes for typst-0.1.3-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30345340a992e3ebb0d7f6a9c6528d7a2b5e4bf7d81f1adccf15d126ae5a34a0 |
|
MD5 | 13fb6a36329116fc778dba26f210e42a |
|
BLAKE2b-256 | 21466110a7a8b670b3a3f62aa1ce80e15e26374bf7d81cc8902e5ad88fa2f2f2 |
Close
Hashes for typst-0.1.3-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad44e6ef530181aa8454b463b2361569e234ffe90ad663ff95268206f806b2c5 |
|
MD5 | 5340d0142dde05e3dfec868d680e1a9a |
|
BLAKE2b-256 | 58abd751ac1d9151ced26e41098b213005eeb525af5bb22f9b16b8550db8dc3c |
Close
Hashes for typst-0.1.3-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebb1f4e04af47bddff0836e796041bba2bf000ab2a9add479ddc8f0452761b56 |
|
MD5 | 6363511c51f024bfaf8573a7909b6336 |
|
BLAKE2b-256 | 4bd6da694ec2e8281585b49d212d3763cc4663704864aec5dc4dbe9a5040f766 |
Close
Hashes for typst-0.1.3-cp37-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4040b96ebe1efde8f6b05cf5558730792de6695c4fbc4d74d55e5d1e86001e43 |
|
MD5 | 28b53cfa1693aa483134de57aa9a7c13 |
|
BLAKE2b-256 | c07243f0daba8b4ed00c8d33e766fc32d5a96d39ccec8201610ad240fc414cb1 |
Close
Hashes for typst-0.1.3-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5456af2d96a61a577d72ff26520cb0e85460f69066998df370439217eb461c74 |
|
MD5 | c2aca8f06e98c168f2f498563fbdd369 |
|
BLAKE2b-256 | 68b59222f355df5fc6157a9203691e278215c6e47e641d9d5e10db78823dd1cc |