$npx skillfedfor your agent

typst

Python binding to Typst, a new markup-based typesetting system that is powerful and easy to learn.

Worth itPyPI MarkupReleased Jun 2026474.3K downloads / moPlatform wheel

Decision gist · record as of 2026-08-14

platform wheels — 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
v0.15.0 · released 2026-06-16 · Python >=3.8

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

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
Same gist for agents: .md · .json

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.

Worth 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

LicenseNot declared unclear
Python supportSupports the current Python release >=3.8
Install frictionMedium. Platform-specific wheel
Runtime dependenciesNone
MaintenanceActively maintained 59 days since the last release
Last repo commit
First released
Downloads474,291 / month, #6,454 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
typst document compilation pythonmarkup to pdf convertertypst python bindingdocument generation typesettingtypst cli python wrappercompile markup to imagetypst query eval python
Topics
document-generationtypesettingrust-binding

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 Worth it
PyPI · Python Modules · released Sep 2025

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.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
markdown-it-py Worth it
PyPI · Python Modules · released May 2026

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.

MITpure Python · 3.10+
613.8Mdownloads / mo
beautifulsoup4 Worth it
PyPI · Python Modules · released Jun 2026

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.

MITpure Python · 3.7.0+
432.1Mdownloads / mo
et-xmlfile With conditions
PyPI · Markup · released Oct 2024

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.

MITpure Python · 3.8+dormant
343.3Mdownloads / mo
tomlkit Worth it
PyPI · Markup · released Jul 2026

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.

MITpure Python · 3.9+
338.0Mdownloads / mo
docstring-parser Worth it
PyPI · Python Modules · released Apr 2026

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.

MITpure Python · 3.8+
274.9Mdownloads / mo

See also CairoSVG · sphinxcontrib-svg2pdfconverter · resvg_py · fpdf · svglib · kaleido · pccm · qrcode · drawsvg · xhtml2pdf