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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.7+ Windows x86-64

typst-0.1.4-cp37-abi3-win32.whl (10.0 MB view details)

Uploaded CPython 3.7+ Windows x86

typst-0.1.4-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.0 MB view details)

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

typst-0.1.4-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (12.8 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ s390x

typst-0.1.4-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (13.3 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ppc64le

typst-0.1.4-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (11.9 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARMv7l

typst-0.1.4-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (11.9 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARM64

typst-0.1.4-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl (12.3 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.12+ i686

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

Uploaded CPython 3.7+ macOS 11.0+ ARM64

typst-0.1.4-cp37-abi3-macosx_10_7_x86_64.whl (10.7 MB view details)

Uploaded CPython 3.7+ macOS 10.7+ x86-64

File details

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

File metadata

  • Download URL: typst-0.1.4.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.1.4.tar.gz
Algorithm Hash digest
SHA256 b819166fdbae08522d62fd58ff0bc6f93706ffd77e644cab5a14db8b1191694f
MD5 d46b1a406afe22e1c9e60b7c2c38bce4
BLAKE2b-256 f17257329fb9f26235bda0eb09fcb3e921810debc1c3cd305c57cc24ee4999c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: typst-0.1.4-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.1.4-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 c67fa1ec4694e9dc5645609d8d73a6e53fe51c9c768e5f9e44bbb2a74143c1d2
MD5 e57d8d36b56f73127a81495cc26d993f
BLAKE2b-256 1d3240dc48da4686d6ea5ecb2eaa6c7858c61b23e9d3352a3269582b5e49c112

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for typst-0.1.4-cp37-abi3-win32.whl
Algorithm Hash digest
SHA256 a5336a1ea54fbce59dc044d5302c2b0c107e48aa7b8d73335f3cfcbe59ad6aa6
MD5 3d1d9fb397f116da6aeebaa8b125d081
BLAKE2b-256 320efe4795fe4825e95324d9169ff280395688b637fafbd5fd5be3bbe23b07d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.1.4-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 49c9d1f42d5f725247e055a30a7b7f1bd216b6540e8aae546591d78ddceb8ee1
MD5 1eb6a4781a8d7191fada3bd0557645f8
BLAKE2b-256 b24b6bd220885371b3b20d7559c173225e45dcf13ad5feb85e2aa4a22bef4ce6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.1.4-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 d78fdaffce841f6867c5919d22c59b1be955a975db96fbba4a503884912d9364
MD5 6ff85994441bedaee8b57e56e096aba5
BLAKE2b-256 5472caf610fd1660f5d845fd656f12788130a7df4e355c1d5396ed21b21cc515

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.1.4-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 b61aca25d39c2d0ca3579a9ff918ab5dd880dcdac95cbb6cddc78154c2843ace
MD5 41b38f1b2ce5cd8055df8a34c992d499
BLAKE2b-256 bda5a215672e3335ef0440349d233aa74c028db5a76b91ea2c6442a25c567c9f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.1.4-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 3bbb98238149e8d1d8c5d558d1e3fc6190bfa956178a47a40b7292611245c8f9
MD5 31b62e7cf2ec321f3e5bdbb1b90dd37d
BLAKE2b-256 0aee82d8216444cffdf32914e4a9f5f0e6ccabba353c54d3bab79e964a179973

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.1.4-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 40ac04648384ac0d0e976acf3580169803c989b275faf047dc94169ad261f9ba
MD5 3216519aeaadcfc035ee52d9bf47d235
BLAKE2b-256 51369e34cba74466e4efc07cf6e5ffbc85af8226294c2047bde3c5e13d7f854e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.1.4-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 089094cebb4a1988532594b829809cd8049c21b08eb009aee9e29a7900c8b9d1
MD5 9f2e8cc88665c3b6c270380a31805732
BLAKE2b-256 997bd169be80c5baddef468c9f2dc63b4223ed8175d6e805d5c6024b49c7d04a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.1.4-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f73cd638359ce3a13b460f339fa2ca72d57c293523f24bea83d8a0676d36dd61
MD5 a1bf02ba33ed119760d22272b60bdf52
BLAKE2b-256 a8bfc69111b69a886acedc63e9c80a22857a7b499b56980e77cc258cf86137cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.1.4-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 dca8bb911f259b5bed7ecc387a8d9c468f63edcf76f742acaaf8b4b4482d324a
MD5 f29724afb65d9d4f4b3239688351e2d3
BLAKE2b-256 74021cffcb51449d170abc6af875793e641a1485d2806af0db446f4b0fb056f2

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