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

Uploaded Source

Built Distributions

typst-0.2.0-cp37-abi3-win_amd64.whl (10.2 MB view details)

Uploaded CPython 3.7+ Windows x86-64

typst-0.2.0-cp37-abi3-win32.whl (10.1 MB view details)

Uploaded CPython 3.7+ Windows x86

typst-0.2.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.1 MB view details)

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

typst-0.2.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (12.9 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ s390x

typst-0.2.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (13.4 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ppc64le

typst-0.2.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (12.0 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARMv7l

typst-0.2.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (12.0 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARM64

typst-0.2.0-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl (12.4 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.12+ i686

typst-0.2.0-cp37-abi3-macosx_11_0_arm64.whl (10.5 MB view details)

Uploaded CPython 3.7+ macOS 11.0+ ARM64

typst-0.2.0-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.0.tar.gz.

File metadata

  • Download URL: typst-0.2.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.2.0.tar.gz
Algorithm Hash digest
SHA256 bb2a631c40d5e19a3fb61b0398dd1f0bfd60160f5f581b178e98b3502d8e1d0a
MD5 17a15973b8c6e73a8b9ed66392f70b2e
BLAKE2b-256 727db9d00af9b9d198df336b9d776a57356c9505336c18b115afa4d265fb7c47

See more details on using hashes here.

File details

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

File metadata

  • Download URL: typst-0.2.0-cp37-abi3-win_amd64.whl
  • Upload date:
  • Size: 10.2 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.2.0-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 9ecd3e09179c17413239f186e5e47c748f4e3c2a6257891db4a57885fa41f5a4
MD5 8924bda6358a48a2e94f63be6af4d12a
BLAKE2b-256 3c43cb4d339e58600544a3f4b1a96ea3e0fdd6eabff34c14bc10e9fb25fc83c3

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for typst-0.2.0-cp37-abi3-win32.whl
Algorithm Hash digest
SHA256 c244242388dd1a157e51bdb2b0e6c0f6edf932a6a576e0c6ef8425f028ae520a
MD5 26b239e8f366039a12693ab805408317
BLAKE2b-256 20ad901854043868c971d8251b11cd23411f948c43536f736ba61397df4274ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.2.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2ec2607a44961e1e36bf0ba6671af7a76854c73b6d9929c312bfda7ecfbe6b88
MD5 e9f52addc32afb82f57e18aa97b43861
BLAKE2b-256 c0f9f1dd51dd247dbc9626472a32bd0d3ce6014b745d8171b44e243da5e177e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.2.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 6b632b9cf5e6b7780198df24db27a85133384f0166e086c07b4629b70c42225b
MD5 203ccc6cd019ef58aa7a6d51f8d776b2
BLAKE2b-256 7119a2026aa62758b674e21c2ef1bda0cd790ffe876f6b84a0be4e2bf47cf706

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.2.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 5d12e17a6d596af25b65bfc5e6c7555ea79680992fe30cd73f294ca7efc0114d
MD5 91ce2b4bb585ad7c240b14cf82c8ea94
BLAKE2b-256 f660932621aa8e532d510e1ae262fc2a87add5bbc0250c63e043e63b91f4488a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.2.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 a3a2ac9bd7ef477e52f64b4eb51d6053c9d730eb2270364d6de5c835621701be
MD5 b1f912e66c10e4e2ec33f0c6ed3af63c
BLAKE2b-256 9449b3eae240d9e3557963a221346de8e3ae484d4ff1f8b4ac5f71c9f8e4875e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.2.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ebcda45da250dfda9ca1a977a1e5f57939566c8a579acc2b96d626ec7325fc9b
MD5 c8c514fb49926ffcbc18dfcd8523d2f7
BLAKE2b-256 6c735c4df4adbd7c87eefc87165b184cfa73f4483f4e5211b9e71823e149d8eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.2.0-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 8df3b768cd7c9bc8b6c39f34a2a57f0e2162854b2a0a02b40ed0ecadc517351c
MD5 640e921a63e752bc569eda3012940ea6
BLAKE2b-256 014173101c13acb2891b3e11ecf4fc67f12f339b69abd47635d25883e9171288

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.2.0-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 edd67111914b8391ad0a87c6defa33d9b336c65f97aa843086a294fae4451c79
MD5 b5469671d4ee18facd3795a338624205
BLAKE2b-256 1e333bdac8111ebac52b20aa72916dcd40fb99d42c5f231aa281bbd68417b352

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.2.0-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 6482d9ea8ea77086242a3f3d5a4f4e26e86728631ab95e1162656fed0ee2568a
MD5 f7d2b853a506f0c9bb066643f313215c
BLAKE2b-256 d612e94c8cbef26409c6da0e4809ffc7744ba3cb4b910a03e72164ee88404f1a

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