typst
Python binding to Typst, a new markup-based typesetting system that is powerful and easy to learn.
Decision gist · record as of 2026-08-14
Yes, with a license caveat. The package is actively maintained, has no runtime dependencies, and offers a clean Python API to a powerful typesetting system. Install friction is moderate due to compiled wheels, but prebuilt binaries cover most platforms. Before production use, clarify the actual license terms—the metadata provides no SPDX identifier or raw license text, only an 'unclear' classification.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Medium install friction due to compiled wheels for multiple platforms and Python versions (cp38-abi3 through cp314t).
- Active maintenance with recent release and repository activity.
- No runtime dependencies simplifies deployment.
License · maintenance · safety
(unclear) — License treatment is unclear—no SPDX identifier or raw license text provided in metadata. Verify the actual license terms before use, particularly if integrating into proprietary or GPL-licensed projects.
last release 2026-06-16 (59 days) · last repo commit 2026-08-01 · 342 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 474,291 downloads/mo, #6,454 on PyPI
Alternatives
Verify before relying
import typst
# Compile Typst file to PDF
pdf_bytes = typst.compile("hello.typ")
# Or compile to PNG with custom resolution
images = typst.compile("hello.typ", output="hello{n}.png", format="png", ppi=144.0)
# Use Compiler class for repeated operations
compiler = typst.Compiler()
compiler.compile(input="hello.typ", format="svg")- Actual license identifier and terms (metadata shows unclear treatment with no SPDX or raw license provided)
- Whether compiled output (PDF, PNG, SVG) inherits any licensing constraints from Typst itself
- Performance characteristics and memory usage for large or complex documents
What it is and what it does
typst is a Python binding to the Typst typesetting system, allowing you to compile Typst markup documents programmatically from Python. It wraps the Typst compiler as a native extension, exposing functions to convert `.typ` files to PDF, PNG, SVG, or HTML output formats. The package supports single-file and multi-file projects, reproducible builds via fixed timestamps, query and eval operations for introspection, and passing runtime values into documents via `sys_inputs`.
The binding is implemented in Rust with stable ABI wheels (cp38-abi3) covering Python 3.8 through 3.14 on major platforms. It has no Python runtime dependencies, making it lightweight to deploy. Recent maintenance (last commit 2026-08-01, version 0.15.0 released 2026-06-16) and active status suggest ongoing development, though the license treatment remains unclear in the metadata.
Use it for
- Generate PDFs or images from Typst templates in a web service or batch processing pipeline
- Embed Typst compilation into a Python documentation or report generation tool
- Build multi-file Typst projects programmatically by passing file dictionaries and package paths
- Query or evaluate Typst expressions to extract structured data from compiled documents
- Create reproducible document builds by fixing timestamps and controlling package caching
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, with a license caveat.
The package is actively maintained, has no runtime dependencies, and offers a clean Python API to a powerful typesetting system. Install friction is moderate due to compiled wheels, but prebuilt binaries cover most platforms. Before production use, clarify the actual license terms—the metadata provides no SPDX identifier or raw license text, only an 'unclear' classification.
Install
typst on PyPI
Before you install
Medium install friction due to compiled wheels for multiple platforms and Python versions (cp38-abi3 through cp314t). Active maintenance with recent release and repository activity. No runtime dependencies simplifies deployment.
License in practice
License treatment is unclear—no SPDX identifier or raw license text provided in metadata. Verify the actual license terms before use, particularly if integrating into proprietary or GPL-licensed projects.
Quickstart
import typst
# Compile Typst file to PDF
pdf_bytes = typst.compile("hello.typ")
# Or compile to PNG with custom resolution
images = typst.compile("hello.typ", output="hello{n}.png", format="png", ppi=144.0)
# Use Compiler class for repeated operations
compiler = typst.Compiler()
compiler.compile(input="hello.typ", format="svg")
Verify before relying
- Actual license identifier and terms (metadata shows unclear treatment with no SPDX or raw license provided)
- Whether compiled output (PDF, PNG, SVG) inherits any licensing constraints from Typst itself
- Performance characteristics and memory usage for large or complex documents
Package facts
| License | Not declared unclear |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 59 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 474,291 / month, #6,454 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyProgramming Language :: Rust |
Evidence: typst-0.15.0-cp314-cp314t-macosx_10_12_x86_64.whl; typst-0.15.0-cp314-cp314t-macosx_11_0_arm64.whl; typst-0.15.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; typst-0.15.0-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; typst-0.15.0-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; typst-0.15.0-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl; typst-0.15.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; typst-0.15.0-cp314-cp314t-win_amd64.whl; typst-0.15.0-cp38-abi3-macosx_10_12_x86_64.whl; typst-0.15.0-cp38-abi3-macosx_11_0_arm64.whl; typst-0.15.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; typst-0.15.0-cp38-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; typst-0.15.0-cp38-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; typst-0.15.0-cp38-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl; typst-0.15.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; typst-0.15.0-cp38-abi3-pyemscripten_2026_0_wasm32.whl; typst-0.15.0-cp38-abi3-win_amd64.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “typst document compilation python”
- typstCompiles Typst markup documents to PDF, PNG, SVG, and HTML directly…
- PyLaTeXPyLaTeX generates LaTeX documents and code snippets from Python,…
- Whoosh-ReloadedWhoosh-Reloaded is a pure-Python full-text indexing and search…
Give your agent the search over MCP, or paste the wish link into any chat.
More Markup packages
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
A Python markdown parser that converts markdown to HTML following the CommonMark specification, with support for plugins and custom syntax rules.
Install it if you need reliable markdown-to-HTML conversion.
Beautiful Soup parses HTML and XML documents into a navigable tree, providing Pythonic methods to search, iterate, and modify the parsed content.
Install it if you need to parse or extract data from markup documents.
et_xmlfile writes large XML files with minimal memory overhead by serializing elements to disk as they are created, rather than holding the entire tree in memory.
Install it if incremental XML writing fits your use case; skip it if your XML documents are small or you already use lxml.
Parses and edits TOML files while preserving formatting, comments, and structure, then serializes them back with layout intact.
Install it if you're building tools that touch TOML files and user readability of the source matters.
Parses Python docstrings in ReST, Google, Numpydoc, and Epydoc formats, extracting structured information like descriptions, parameters, return types, and exceptions.
Install it if you need to programmatically read and extract structured data from Python docstrings.
See also CairoSVG · sphinxcontrib-svg2pdfconverter · resvg_py · fpdf · svglib · kaleido · pccm · qrcode · drawsvg · xhtml2pdf