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 hashes)

Uploaded Source

Built Distributions

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

Uploaded CPython 3.7+ Windows x86-64

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

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 hashes)

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 hashes)

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 hashes)

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 hashes)

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 hashes)

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 hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.12+ i686

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

Uploaded CPython 3.7+ macOS 11.0+ ARM64

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

Uploaded CPython 3.7+ macOS 10.7+ x86-64

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