Skip to main content

Python binding to typst

Project description

typst-py

CI PyPI

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


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.2.tar.gz (4.0 MB view details)

Uploaded Source

Built Distributions

typst-0.1.2-cp37-abi3-win_amd64.whl (9.0 MB view details)

Uploaded CPython 3.7+ Windows x86-64

typst-0.1.2-cp37-abi3-win32.whl (8.9 MB view details)

Uploaded CPython 3.7+ Windows x86

typst-0.1.2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.8 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ x86-64

typst-0.1.2-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (11.6 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ s390x

typst-0.1.2-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (12.1 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ppc64le

typst-0.1.2-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (10.7 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARMv7l

typst-0.1.2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (10.7 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARM64

typst-0.1.2-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl (11.1 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.12+ i686

typst-0.1.2-cp37-abi3-macosx_11_0_arm64.whl (9.3 MB view details)

Uploaded CPython 3.7+ macOS 11.0+ ARM64

typst-0.1.2-cp37-abi3-macosx_10_7_x86_64.whl (9.5 MB view details)

Uploaded CPython 3.7+ macOS 10.7+ x86-64

File details

Details for the file typst-0.1.2.tar.gz.

File metadata

  • Download URL: typst-0.1.2.tar.gz
  • Upload date:
  • Size: 4.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.14.16

File hashes

Hashes for typst-0.1.2.tar.gz
Algorithm Hash digest
SHA256 0eccdbf133fbe413b55e0f09212b50c2d27d083b00178bcf37fb0ebbce48d5d9
MD5 cbbc63e9210e5e314d71f71ab310aba3
BLAKE2b-256 4e1ccdc92aa6dd714accdc79c2290e57e69afc563e5ad0d5bfc56cc3cf1195b5

See more details on using hashes here.

File details

Details for the file typst-0.1.2-cp37-abi3-win_amd64.whl.

File metadata

  • Download URL: typst-0.1.2-cp37-abi3-win_amd64.whl
  • Upload date:
  • Size: 9.0 MB
  • Tags: CPython 3.7+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.14.16

File hashes

Hashes for typst-0.1.2-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 6bafd847a34081bf96c69dab774fde93b71b1ee0691622f19065f6043ce2f137
MD5 3ccb59e448ce822e1e9ce6a844b62c4d
BLAKE2b-256 bc15548c34801b7ca4b002dafb8b0c18e56ee3af2336aa988f81c006c313825a

See more details on using hashes here.

File details

Details for the file typst-0.1.2-cp37-abi3-win32.whl.

File metadata

  • Download URL: typst-0.1.2-cp37-abi3-win32.whl
  • Upload date:
  • Size: 8.9 MB
  • Tags: CPython 3.7+, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.14.16

File hashes

Hashes for typst-0.1.2-cp37-abi3-win32.whl
Algorithm Hash digest
SHA256 ff4adf7ea30a8204665aaec0599a3968e23d776fc4b967ee527ae8d756e91e75
MD5 5e0c5ae7ea08cbffb04e4798a529e03b
BLAKE2b-256 839c983bc1657b13044ac0f1dc7d94a75b3d47e54185e32e12e9503d8d7e97f6

See more details on using hashes here.

File details

Details for the file typst-0.1.2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for typst-0.1.2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dcbc6257b5ea84898fa7f5463f27f8e5b31072aa4e1aef5573002a9a2b92d2a7
MD5 678eaf1eac2b67962272713f324c19df
BLAKE2b-256 133ee725d374f3f4a2ccccb102e8f2e0b011908179ee03f0bdc8b6da226c50fb

See more details on using hashes here.

File details

Details for the file typst-0.1.2-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl.

File metadata

File hashes

Hashes for typst-0.1.2-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 0dd45e4b8c450deb1fe595462603f5dc17387d098d050ff7257becf9f851493b
MD5 382d24bc602ddd9084cfc2a2cb6b7937
BLAKE2b-256 82f4239593a980861e8990d53413be4dce90862f995214455a6d30512dad20ea

See more details on using hashes here.

File details

Details for the file typst-0.1.2-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for typst-0.1.2-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 9e8fa432f26cd0c378fbdc9c356c477e6844ab6079e394bd4ec22ef035766d31
MD5 0467d77e10628d92245b3c6335f26989
BLAKE2b-256 924bc07af0071d5b60eab23a3b57b42c6cada7c744e32e50add9876514ce0130

See more details on using hashes here.

File details

Details for the file typst-0.1.2-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for typst-0.1.2-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 c1f98a683e8a3dcb9a0f34b4710c986dfe7b2ba210941095913c042271cbcccf
MD5 c5bbd4ba0b21b33bfa6ca9e118590866
BLAKE2b-256 9fe47ed93107ec966479fc4e25a354244ebd862be1f753edfc61c78a8114c08f

See more details on using hashes here.

File details

Details for the file typst-0.1.2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for typst-0.1.2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fdbf5badae30fa4d17bb2cdd4a6a1d218b1277b036ff0a33940dd390edea5f04
MD5 4d455210eb8526458798b649d6502013
BLAKE2b-256 c1e4f78bc5c700e042dbee8ca33aa365bca70f422c1ed0b9eb8c952a7eecd7fc

See more details on using hashes here.

File details

Details for the file typst-0.1.2-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl.

File metadata

File hashes

Hashes for typst-0.1.2-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 4a89220b43867905ad6cd9b7b28f00503679ecbdff8d31a0766ef2109f6b332f
MD5 d1b431a24ecb8612b02160b1687b8968
BLAKE2b-256 1e017d98d0292e9295104284915819d403fb20d9cd0a898d7097af391f811b76

See more details on using hashes here.

File details

Details for the file typst-0.1.2-cp37-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for typst-0.1.2-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f174fb4aca10474a6475c7f7345027b30a3a853eb53c291a429923d5ddad0bf9
MD5 0a021a9527d814542dd8cf8a45d82582
BLAKE2b-256 17e236e8fd815ad59ebc9b25a98c7f56ed6be7e21932ac5ea22a2edfbcbc077c

See more details on using hashes here.

File details

Details for the file typst-0.1.2-cp37-abi3-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for typst-0.1.2-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 fb8e8bc7ff4ede112204a28d0d449b56afbb98425afb1615da574b5eb27511e1
MD5 cd1c7d8fc8510a29f59e3ee9f2b8805a
BLAKE2b-256 eb0c6041a346fa77d9fdd1c595017c6c7d9ae5c56a29181dd6b720e296e4a667

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page