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


# Compile `hello.typ` to PDF and save as `hello.pdf`
typst.compile("hello.typ", output="hello.pdf")

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

Uploaded Source

Built Distributions

typst-0.9.0-cp37-abi3-win_amd64.whl (14.2 MB view details)

Uploaded CPython 3.7+ Windows x86-64

typst-0.9.0-cp37-abi3-win32.whl (13.7 MB view details)

Uploaded CPython 3.7+ Windows x86

typst-0.9.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.5 MB view details)

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

typst-0.9.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (17.4 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ s390x

typst-0.9.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (19.5 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ppc64le

typst-0.9.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (17.3 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARMv7l

typst-0.9.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (17.1 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARM64

typst-0.9.0-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl (18.2 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.12+ i686

typst-0.9.0-cp37-abi3-macosx_11_0_arm64.whl (14.7 MB view details)

Uploaded CPython 3.7+ macOS 11.0+ ARM64

typst-0.9.0-cp37-abi3-macosx_10_12_x86_64.whl (15.0 MB view details)

Uploaded CPython 3.7+ macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for typst-0.9.0.tar.gz
Algorithm Hash digest
SHA256 ad0d52a749afbba12ac8c59f44a760f59aff0d01471093ad6b3e8f1c3c55c186
MD5 2d2e5f2d7d55991c248471fbd53c9afb
BLAKE2b-256 5b6b58548a0a31764243d5df2e76ba2032bbdce03cf8dad2706e9064e9003d9c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for typst-0.9.0-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 fabe56de34d72007d3f08fc796fc0a44820cdb108c0ac694fa0e457ac8b3c697
MD5 26213a657ec8e37e78f5efbd822d583c
BLAKE2b-256 0168cb2b43ab3d45400aa1c03c0d5e028dc339d9198870f6452a2d9fedf0c044

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for typst-0.9.0-cp37-abi3-win32.whl
Algorithm Hash digest
SHA256 9390af7fe039aa5ee97f172e47ece98038c81a672249c91e084c9958886b014a
MD5 cd89a4e9a3507fef244ecd7c38bcd25d
BLAKE2b-256 082cac394a917d2a95d3fc01245608f33cf931e8e5469b4434f0492be14c378a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.9.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c209632cb32e612bbc9443c412255d62454a7e9de05eb91b4c1162dd877a31ae
MD5 4dd43e9bff15cf21a07e6450958086d0
BLAKE2b-256 aba41b45f5e9155bdbdc33f23b3db20caa4011162c35eb9590d2115c400a86e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.9.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 2d6f81efe73236d85e7cfad549b1d9c0766e346ad2dcb18772c0ae3baaf58c39
MD5 a60796c9923bc65e38c6b18b3f960eed
BLAKE2b-256 66d9806b7a2375c52efacb8467ec0f015acc43b9d4c0c17ee5267e019608df71

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.9.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 ccb17b46f2c6d8504d51c14243674513b72e489460eed551a4d53dc7f155c009
MD5 03947095032f03d0ae95428471db6264
BLAKE2b-256 ee7257e2d82c1877c7a7341ccae97c32864a429eaf049050e615bb90e3fbd192

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.9.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 d27e4a9022dfde6b39644bd59a3e98eb9e55f2cfa2c296d5022a945477c6fff3
MD5 0fa42408dc767dbb7aea9478b400b3b0
BLAKE2b-256 a1b2c07aa776a063a6cceca558c8861dea4ad88be33cab341689083bde491aac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.9.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3a60d538a8e53ab0ebeab440ea5d8170dc8812956bab526d98b2cf9d4d7a00c1
MD5 44d840aa6093bc5af236ebc13ee9767d
BLAKE2b-256 9a6fad740ac9843b6f7c6af5033e19c1f77052ecefc4559855d294110fe48641

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.9.0-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 038a16dca1c63a1662c327e16465548b2616eae0a5bba61074651e33cc2d63b4
MD5 91bf3ce8b8e242438e54139ea6117245
BLAKE2b-256 b91c8d8806187e76877812a553e16f30718d5ee085866465deb0f835d0d52ee9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.9.0-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 052ca6f22f35a25dc72c0361fdbd4f5fd5d3226ed341aa04229804ab6e8e7363
MD5 37d582261cf34feb5c05511fd2bbada1
BLAKE2b-256 91897a248192572f83711af25eb3acc3e79fef6c18c603278e71109c7e88b174

See more details on using hashes here.

File details

Details for the file typst-0.9.0-cp37-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for typst-0.9.0-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c9b0e10e4930faa0d67cc9786b7c5caf3f195879d9158720e043f1e857dc1ef5
MD5 74de5c49588e4b318b013bbf1a753ff3
BLAKE2b-256 56c6b4da040257134b6cf716b60ab758ce4b5ec9ed18a30115fed594078e16d3

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