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

Uploaded Source

Built Distributions

typst-0.3.0-cp37-abi3-win_amd64.whl (10.7 MB view details)

Uploaded CPython 3.7+ Windows x86-64

typst-0.3.0-cp37-abi3-win32.whl (10.5 MB view details)

Uploaded CPython 3.7+ Windows x86

typst-0.3.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.6 MB view details)

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

typst-0.3.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (13.5 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ s390x

typst-0.3.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (14.1 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ppc64le

typst-0.3.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (12.6 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARMv7l

typst-0.3.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (12.6 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARM64

typst-0.3.0-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl (13.0 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.12+ i686

typst-0.3.0-cp37-abi3-macosx_11_0_arm64.whl (11.0 MB view details)

Uploaded CPython 3.7+ macOS 11.0+ ARM64

typst-0.3.0-cp37-abi3-macosx_10_7_x86_64.whl (11.3 MB view details)

Uploaded CPython 3.7+ macOS 10.7+ x86-64

File details

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

File metadata

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

File hashes

Hashes for typst-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6bd5874a3ff2e798f996e7d33cb6adf21b32ef63185ec66ff1317264e40899d5
MD5 1d0d89b8c71ac231fac25236e84535f6
BLAKE2b-256 800c13436b66c2f32b43fe49a934925cdecce8fd472bac471c66569f493e3f81

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for typst-0.3.0-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 b1b6aa52aa757e633ea3d60af8c732b06e945752a2a0de0ebb8e95f3401b7e18
MD5 fac2ae064b7b1008ac80b509e7ae91e1
BLAKE2b-256 71c2c32585416604e5ed6b69f2766e1bede49e7feb42dbd2da07413be034d6f5

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for typst-0.3.0-cp37-abi3-win32.whl
Algorithm Hash digest
SHA256 e10cde00ac58e4fd8625741f38aea46932e4c0633ba91f108587ce95d365a975
MD5 2a941e042686d085cfaa51577f8022f4
BLAKE2b-256 ef7f0875f3db137b72c93ca1d967c2a81075ed1ab7b8cb84e3dd48c353059956

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.3.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b71ba8e1c1ce9f14c0fa685163927b793286bcc785954c4c845d1a80d6e6ad04
MD5 97e7923799725d701b3e801f0651918f
BLAKE2b-256 40d4e903021263395d86b1a228b8764d5ba0f864f8389270185ebab1b27e183f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.3.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 45056fd052786d5e09079eba8bdca58eed52c13c66d14584c309144509dbfbe7
MD5 87d11f5cbaec6ff3b87588447540dbab
BLAKE2b-256 70513fa3b64e550bada7c035cf2f6102cfb5dd472b96b13657326e620c2cebd8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.3.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 b8599f5b40ed96846f9052e969e96ae95bc7893dfa716a6a963ec555a940f37b
MD5 2769df553dc8705ed33502b3f37e176d
BLAKE2b-256 a291c78e906c2c42f32f9c609ad2e16c8194278bbb3384a40bd0d08499b8bb3b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.3.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 bba95c91c8e182816ab920b95ba80d29b1e28d5b5c5ece5d34fd5b5c65f626d4
MD5 5d28c8e7a6d993adbce043146a834cad
BLAKE2b-256 6c2755ec7f21cacadad092dc5b3915009d604418228617f0cb89629d9e267139

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.3.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6bbe69c02afcb584627494a6c7108caedf04e757f47a5a2f9d2a5b888df3d35d
MD5 c29ae9b00a22cadf6c8637080d42b4f9
BLAKE2b-256 21747cf36f6126b5ecd1e4c8406cb09e793c9e478a05b8505f6638ce7f1f0db6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.3.0-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 a43677dfc4b2f8cd93efac730d93dec4736c9d8b848e294a014414cf88b761fe
MD5 97f09e929bfb1cc6e656dbef2d92d2a8
BLAKE2b-256 45f12bddd3d692b7ecb503c8091ea9681add9b90c2900329a12759fd9bfe8e63

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.3.0-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 db4f3de2d89b8775e7a825528009df442f74ba977f08c81717ddd54d60eb3c2a
MD5 2e3182ffe4ead795ab1ae8970ff78a04
BLAKE2b-256 3c563aa8958b141b467415fe0222bd024b2c9804fb303230ef76be80d36b2580

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.3.0-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 ba9b82b23aa0fa272d70305b1d392d014905c3c726cd1d5057e2106b886972c0
MD5 456f6442b154c4b3c95625593fc332f2
BLAKE2b-256 ccd5d596bfcdbb78ce0d56981eacf6dbb0e890b96613aa5a9729cee9a81b3983

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