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

Uploaded Source

Built Distributions

typst-0.10.0-cp37-abi3-win_amd64.whl (14.1 MB view details)

Uploaded CPython 3.7+ Windows x86-64

typst-0.10.0-cp37-abi3-win32.whl (13.6 MB view details)

Uploaded CPython 3.7+ Windows x86

typst-0.10.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.7 MB view details)

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

typst-0.10.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (17.8 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ s390x

typst-0.10.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (19.3 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ppc64le

typst-0.10.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (17.4 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARMv7l

typst-0.10.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (17.3 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARM64

typst-0.10.0-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl (18.3 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.12+ i686

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

Uploaded CPython 3.7+ macOS 11.0+ ARM64

typst-0.10.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.10.0.tar.gz.

File metadata

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

File hashes

Hashes for typst-0.10.0.tar.gz
Algorithm Hash digest
SHA256 37853d0938db054cfa9d00aa574d4eac2985af6e7396a59c521a76e9e6bdf020
MD5 0d0d68cc3d3b37b254bebe625f176f8b
BLAKE2b-256 a21e35984341cbf58786121010103f949546a13741f4e1f0563c0238c9a48923

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for typst-0.10.0-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 389364556a58fc470a1290eb12aa75e7f5e6f8137f3f3b558d7aa1f57ce5ad68
MD5 91e838efe6b3ed65e680bc337a35bf3f
BLAKE2b-256 13c6c2da70252e7d0f6f2e17ae6e0e3834fe3b958108aed70e679dd7e61747e5

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for typst-0.10.0-cp37-abi3-win32.whl
Algorithm Hash digest
SHA256 8fa407ff98d9f367c3ca7850d3fb4cd2e1dd43aeec3b6a174249074f2619b4fb
MD5 7b1c0772b79dfe5c6c70da4e615ed228
BLAKE2b-256 1ce4abd18341cad526cb7311f875a1726b0c145c8bd42ec7c5922dd5e2cac61a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.10.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fd991c41ff512b3c6d079f94888f549d1e4c145e7336f327c055b67627998e0e
MD5 d2fbf90a2bfc3786613dc4b3e23687ec
BLAKE2b-256 bdeb9d37539b6d2555bf9ea6514ff1b8802aa3871c9008dde7db520ffa54fa4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.10.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 3f7dbe569e2c94cd253426a21cee55cca8e35f85071dd9a8ae3981baa4d560c7
MD5 d3c48f3bf5771ffa5b8585194d73e1a1
BLAKE2b-256 4da03ef102a10bc0d4fd7aa0514c2014e725bbe830dc00e137ebae94a679ea5a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.10.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 8573736bad80b5ce3e57c9bfeeb1e71760a25b66daf0d3f18a9a5da6278b6c95
MD5 3bd1ae347a0175450f4b63755938e56f
BLAKE2b-256 04a9f2b518976839ba7692c9b5b106cdc362764e7aa937b6751d1aa26f1c2279

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.10.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 36eb489f68e647be8f17352ba4b967ccc3f6736d3723b50ec88a7bf055e1e475
MD5 807a59176dcc226c9c97c563aeb4ac48
BLAKE2b-256 23369fb05454b05e58de6cd65b037ac0a4d93889081fed385c3dd1dfd50f58b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.10.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 77cdcb1b792d37ffd8a85e4f3232feeb39e90e9e63090ffeda4a516033c81530
MD5 e9840ae94ec35179c8f1def76d9fff4e
BLAKE2b-256 4a92bd6487c41337414516bea666d844b08f00dd9d89b512e56d713465fbb6de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.10.0-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 2021b36ff65ca744b0f35f2e8a1280602fb41a4a5fc50d473dc8a06ac7852218
MD5 a8860d283f71978529cc82894c3cf4fb
BLAKE2b-256 a6ae791b50604cc5a14e62cb8cb5fbb58d83aeb04dcd4173604b04fe194f9430

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.10.0-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b325e25bcf29a6329c0482358e900210c54773097094f52ece80df230f9e2b0d
MD5 6f5b0985fd04d4a29660a34371ca6d4d
BLAKE2b-256 cd4308ed01e0fdd1f28e1a7361047b8191ea7fe93d54659ebe6f4a318fc91c1d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.10.0-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f1d76e159df9500b3302bff5d0a65a0761c599693a9ae27d29115f74843ed935
MD5 ecc91d51fe4fd2911e04d3d7c726e13a
BLAKE2b-256 76cbc130e4ff9d4596db5fe51710864d75650bfc66c0260b076c0b5cf234f72a

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