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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.7+ Windows x86-64

typst-0.1.1-cp37-abi3-win32.whl (8.8 MB view details)

Uploaded CPython 3.7+ Windows x86

typst-0.1.1-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.1-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.1-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.1-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.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (10.8 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARM64

typst-0.1.1-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.1-cp37-abi3-macosx_11_0_arm64.whl (9.2 MB view details)

Uploaded CPython 3.7+ macOS 11.0+ ARM64

typst-0.1.1-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.1.tar.gz.

File metadata

  • Download URL: typst-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 500c025a6f319783bf213fb2be2d538bd0e4742ac35e4f0d9c4389146352f6ab
MD5 bb9c99c5bd16002ea5850dee676c73f3
BLAKE2b-256 589753ddb1aa51eb1b24929b37374e444441b09cb32c827bb4d4840f835664e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: typst-0.1.1-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.1-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 6551b23e42b956cbc9bb86e5d413b95e67ac6c2f0a896f432e6e4112c5b793dc
MD5 72a7e7988e4493a31c07c7475b8c9266
BLAKE2b-256 6273a680370ce1fd1c73652903739496249eea4e1103172733173c5cc87f1993

See more details on using hashes here.

File details

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

File metadata

  • Download URL: typst-0.1.1-cp37-abi3-win32.whl
  • Upload date:
  • Size: 8.8 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.1-cp37-abi3-win32.whl
Algorithm Hash digest
SHA256 d81bec8ff023aaf69cf40ad0ba387c47885540ca41bbe820ba586a106a11a41f
MD5 0e364f79d0fa407c65a6009be50ea627
BLAKE2b-256 dd91670a71663d573bdfeda8c75588b6836dfa421d600a4ebbd6ea97108ccc8e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.1.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c31fa3e2945d3edc6b811bbe035363356389f515436f3cf5a9387cb235660a1c
MD5 709f725bff465c45a024fe7ba57486e7
BLAKE2b-256 dc865ee632dc91e3d5c7d9300ae310beb634dca84531060925dca6fd6a80a054

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.1.1-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 6eebc4675743bc7182ed49779fc2bb1d39dbd26747745fca2b72304197849770
MD5 333af876031921f22c3647876a1fc7c7
BLAKE2b-256 4344203b1941c5963fe6c9d22fbb062409b185fc5f15b9ff3245bd6bdc36fca2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.1.1-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 cd4e00d80b1fa20ae8b621d1d4ce93832bd2c73dd01d87dab0541150dbde18ca
MD5 dffcaa9f372f3bf835ff13690fa4d1db
BLAKE2b-256 a4d4ca3a4bd318cf054170842469a5dac118fcebff6fa7ff7b9a56ae3ba05772

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.1.1-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 ac17d23bdd7063a37ec3a0e6f79eff99910dc97194b0ad70f1f5697b5d9c1de9
MD5 1547871d5b8d45d43e6ea43369a53cf5
BLAKE2b-256 1cb3c123a4efaa8a7cf934e78d5fbd69214e6dc431b27c7d1b47698e0652f57e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.1.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 57aa4e7ca326547c8a84042f1c44a9e286a2dc69b26c1ff412075f387f93831c
MD5 6c8808f59c9c6a664b70e98a999dd159
BLAKE2b-256 63d81f08d15f95498e016828116e4d079f6cdc0259bb825245e50562043ec75a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.1.1-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 c7a90838508f506e341afd6502e0ea63b8e7f7ccd43e8406b7852e4e9d0d7a93
MD5 183b7a9df1109c87edd3cb0d6df54243
BLAKE2b-256 b0a83cf1ef4f55a801b826b7c6104409cf36dc4d1fe7f1c7cd73ffa94fade4c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.1.1-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 94f2e9d7bf82a79d0bca4550a8d3ead3509053073e92b14b3b3aefdc69bcda27
MD5 8f13f30c81489307e87e01f84052e2e0
BLAKE2b-256 0e60bbb770fc413f49e98e9b78226a70a68286ae89c93f60d41b0392a0c4cde8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.1.1-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 d21bc43cd197ca475df12234ba622f88b40caf4d954cf80aa94a67cd87498d18
MD5 786db221502f621ae4f66563518534c3
BLAKE2b-256 cfbd877ce07c40298b228081302fd5ef4b0f120753815a5340f6e6fcc94de6c3

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