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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.7+ Windows x86-64

typst-0.1.3-cp37-abi3-win32.whl (8.9 MB view details)

Uploaded CPython 3.7+ Windows x86

typst-0.1.3-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.3-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.3-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.3-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.3-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (10.7 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARM64

typst-0.1.3-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.3-cp37-abi3-macosx_11_0_arm64.whl (9.3 MB view details)

Uploaded CPython 3.7+ macOS 11.0+ ARM64

typst-0.1.3-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.3.tar.gz.

File metadata

  • Download URL: typst-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 803f066660001113d904d92a489fab22f0c8ae699f0c67c523427c4e92be5744
MD5 1a74c6ef1d4364d237852b8f26747114
BLAKE2b-256 906e5a29fa3a7bbcdbaec49da58f969eaf182ce9df09cfb6f42b40b6fe42e898

See more details on using hashes here.

File details

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

File metadata

  • Download URL: typst-0.1.3-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.3-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 4419ecfef937d337975eba38fbb4c0e6ed7fe8ae8ce01492061ad210b5784a5e
MD5 3a1023006c48fcbe1fb4efc562fb6dcc
BLAKE2b-256 d4823a66f455d1ead9610cd9068b5189b29b750642c04a70279bee30f7759d10

See more details on using hashes here.

File details

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

File metadata

  • Download URL: typst-0.1.3-cp37-abi3-win32.whl
  • Upload date:
  • Size: 8.9 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.3-cp37-abi3-win32.whl
Algorithm Hash digest
SHA256 43b03c5dd0298a1a164ca0ea4dcc200142f0c83598de32a2a7aba6d8a73854ed
MD5 18b8ada7ec603d19ade1501571b3e72d
BLAKE2b-256 c8b666b90d375aca1e433e9363a7a46befb8854503bb6023eef05619a2ce361d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.1.3-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b6567554466c6ff537bfa8928968041b27c4a973baa6d3640c5db379e04cb4ef
MD5 474aaa846a56ed397201f71cd18fc61e
BLAKE2b-256 3b9b9b56a190681c02f512e4d909b3f22925c4407f03c31e8e9a33930c38ae0d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.1.3-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 3d8d0f641690606aedaff424bd7d1e3544e340c313dce0f6744218bc78a06163
MD5 ad53ae36dd8401607bc558dec6c739cb
BLAKE2b-256 640f9d99c786973f8a5ee2bc8ad06b0769e03a72f50275ed672940dd21bd8bc7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.1.3-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 d80922a32a16d43b3146f6a0accbe6e907c9813e49f9c08968ff9d74379ede5d
MD5 4e2a4e33a0aaa60bb9c278469f558098
BLAKE2b-256 512dd89b3ad0121d0ec229ebe711415fdc73d2731534811df3afc1d262bd5f13

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.1.3-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 30345340a992e3ebb0d7f6a9c6528d7a2b5e4bf7d81f1adccf15d126ae5a34a0
MD5 13fb6a36329116fc778dba26f210e42a
BLAKE2b-256 21466110a7a8b670b3a3f62aa1ce80e15e26374bf7d81cc8902e5ad88fa2f2f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.1.3-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ad44e6ef530181aa8454b463b2361569e234ffe90ad663ff95268206f806b2c5
MD5 5340d0142dde05e3dfec868d680e1a9a
BLAKE2b-256 58abd751ac1d9151ced26e41098b213005eeb525af5bb22f9b16b8550db8dc3c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.1.3-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 ebb1f4e04af47bddff0836e796041bba2bf000ab2a9add479ddc8f0452761b56
MD5 6363511c51f024bfaf8573a7909b6336
BLAKE2b-256 4bd6da694ec2e8281585b49d212d3763cc4663704864aec5dc4dbe9a5040f766

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.1.3-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4040b96ebe1efde8f6b05cf5558730792de6695c4fbc4d74d55e5d1e86001e43
MD5 28b53cfa1693aa483134de57aa9a7c13
BLAKE2b-256 c07243f0daba8b4ed00c8d33e766fc32d5a96d39ccec8201610ad240fc414cb1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typst-0.1.3-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 5456af2d96a61a577d72ff26520cb0e85460f69066998df370439217eb461c74
MD5 c2aca8f06e98c168f2f498563fbdd369
BLAKE2b-256 68b59222f355df5fc6157a9203691e278215c6e47e641d9d5e10db78823dd1cc

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