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

Uploaded Source

Built Distributions

typst-0.2.1b1-cp37-abi3-win_amd64.whl (10.3 MB view details)

Uploaded CPython 3.7+ Windows x86-64

typst-0.2.1b1-cp37-abi3-win32.whl (10.2 MB view details)

Uploaded CPython 3.7+ Windows x86

typst-0.2.1b1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.2 MB view details)

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

typst-0.2.1b1-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (13.0 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ s390x

typst-0.2.1b1-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (13.6 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ppc64le

typst-0.2.1b1-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (12.1 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARMv7l

typst-0.2.1b1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (12.1 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARM64

typst-0.2.1b1-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl (12.5 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.12+ i686

typst-0.2.1b1-cp37-abi3-macosx_11_0_arm64.whl (10.6 MB view details)

Uploaded CPython 3.7+ macOS 11.0+ ARM64

typst-0.2.1b1-cp37-abi3-macosx_10_7_x86_64.whl (10.8 MB view details)

Uploaded CPython 3.7+ macOS 10.7+ x86-64

File details

Details for the file typst-0.2.1b1.tar.gz.

File metadata

  • Download URL: typst-0.2.1b1.tar.gz
  • Upload date:
  • Size: 5.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.0.0-beta.7

File hashes

Hashes for typst-0.2.1b1.tar.gz
Algorithm Hash digest
SHA256 0df3589a7ab613cc4ee39cfa1d4825bc8bf09cbc14d9048910127e440e863599
MD5 2ba3b3188ca0c2527608ef0123e08ea8
BLAKE2b-256 292ab234771fd8b604d5e23076aceb4820b48878bd714fcd855cd559b830006f

See more details on using hashes here.

File details

Details for the file typst-0.2.1b1-cp37-abi3-win_amd64.whl.

File metadata

  • Download URL: typst-0.2.1b1-cp37-abi3-win_amd64.whl
  • Upload date:
  • Size: 10.3 MB
  • Tags: CPython 3.7+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.0.0-beta.7

File hashes

Hashes for typst-0.2.1b1-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 0dbae411d5c129dc02567270ee6721292d77d7b30f329b3a7ef2423646541d2b
MD5 c5942ab71a91c3313ced4f328f741866
BLAKE2b-256 00bb111ca83e00685fc529f6fffb886521c6acd8b6ad90de862edc3ba4579de8

See more details on using hashes here.

File details

Details for the file typst-0.2.1b1-cp37-abi3-win32.whl.

File metadata

  • Download URL: typst-0.2.1b1-cp37-abi3-win32.whl
  • Upload date:
  • Size: 10.2 MB
  • Tags: CPython 3.7+, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.0.0-beta.7

File hashes

Hashes for typst-0.2.1b1-cp37-abi3-win32.whl
Algorithm Hash digest
SHA256 ee14180cdff7e648ef5dcbcb86e80c17d8de51e5cf4caad1e2ff90325f31a85e
MD5 169358ba5a885a8f31f8e5ce02d24b88
BLAKE2b-256 3c095cbbbf83cb4ed8a49558dabdf233902890b6f80fa2fd55f03fec5e900f22

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.2.1b1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8bcd75851569069b6bd21d84f26107c04b68f90dc93e84ee55d54d2c36bfbcb8
MD5 9673edc4007ecffcaa05e02552c74547
BLAKE2b-256 b64cb560cc5ee52f7cca082a7dc49311dddf23289c2cc5f5d902145b30cc59c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.2.1b1-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 1dcdeeafa77da8a1eff2f7a673d6032674484304f9214b4cab5bbb188c41722a
MD5 7bf7be5a9a2bd430962c95475c7adc11
BLAKE2b-256 bfcef85091bdfc523ba1cb37e7d1e4ae5939171c3d2dcad56d35b3d7a0b3240d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.2.1b1-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 25832c9317e91a24b2b23543059e120bcfb88cfb5d9c1f067384aafdb3e74953
MD5 637181621bfc8459d93eba0fe2a53771
BLAKE2b-256 078e8baa35e73163e3d85689d23891e4385a676163fe5a8a2282bb52868f2112

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.2.1b1-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 288e52940e3d0d6078c46373311d5448d3126993803b457942461190920adb3e
MD5 5d33a76d988284c2ae532a040893b229
BLAKE2b-256 fd01b91547697a34f356d8d69cebacfb0089249c7cafc75aec2b24c8dd934428

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.2.1b1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a7644b57606d9d022c1227218425475111c8fa20a9754eaddd9b810f9651731c
MD5 5f882c6a15632b2588f5d60e85053d52
BLAKE2b-256 2e642d1bf5cb8f8d166767fe20bc0fbbe4f2613a0f2f959a47ec6f2fcf9ba800

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.2.1b1-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 315e8f787941a428e3bfe6abb9ab00d847c9020800cfb2aa95947dfcf0ef487b
MD5 64dfbc9d349503c9aefd9c0364bd659f
BLAKE2b-256 403ce588330a8942c5ab5aee95cf8766b27eccffeb0a88b698afc292e2d26784

See more details on using hashes here.

File details

Details for the file typst-0.2.1b1-cp37-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for typst-0.2.1b1-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c648ef5a0881d7532ebc4e3559880838e9f4c3d300f030c1891bde0d1a62a8f6
MD5 cc47751c78ad7831a8207dcfbc01f875
BLAKE2b-256 ac50dab6d5e12ab39fdbe55b6aca1bd2d1df41534162fd9eb1ff85f4fd873249

See more details on using hashes here.

File details

Details for the file typst-0.2.1b1-cp37-abi3-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for typst-0.2.1b1-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 bb329dec289d8339a94c5827125322cb10702cc08fcbd504b3d9e39bbd9a9a14
MD5 a71ee6e2a925484114c1104e58d6499f
BLAKE2b-256 0d623a460252c5c6dcb695d546f6161c93d9ea1983c44f9c436e0fa0d71f7b04

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