Skip to main content

No project description provided

Project description

typy

typy is a Python library for generating polished PDFs with Typst. It provides:

  • a typed Python API
  • a CLI for quick rendering workflows
  • reusable built-in templates (report, invoice, letter, CV, presentation, and more)

[!WARNING] typy is still experimental and APIs may change between releases.

report invoice letter
report invoice letter
cv academic presentation
cv academic presentation

Install

pip install typy
# or
uv add typy

Quick start (CLI)

typy scaffold report --output data.json
typy render --template report --data data.json --output report.pdf

Quick start (Python)

from typy.builder import DocumentBuilder
from typy.templates import BasicTemplate

template = BasicTemplate(
    title="Hello typy",
    date="2026-04-24",
    author="Your Name",
    body="## Welcome\n\nThis PDF was generated from Python.",
)

DocumentBuilder().add_template(template).save_pdf("hello-typy.pdf")

Documentation

Published documentation website: mgoulao.github.io/typy

Source docs in this repository:

Examples

Runnable examples are in examples/:

Contributing and development

Contributor workflows (tests, linting, docs build, and release practices) are documented in DEVELOPMENT.md.

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

typy-0.8.3.tar.gz (37.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

typy-0.8.3-py3-none-any.whl (41.9 kB view details)

Uploaded Python 3

File details

Details for the file typy-0.8.3.tar.gz.

File metadata

  • Download URL: typy-0.8.3.tar.gz
  • Upload date:
  • Size: 37.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for typy-0.8.3.tar.gz
Algorithm Hash digest
SHA256 72c9e986c75f705671734c116604f163a827142ab0c776fd7125b6b1b74856be
MD5 63c6b6bf385a4e1bd1744bf3dbe86071
BLAKE2b-256 a14d8dc2739b51ffdde2439d0f0507fd3aa9d781a8db2047b43648996241e028

See more details on using hashes here.

File details

Details for the file typy-0.8.3-py3-none-any.whl.

File metadata

  • Download URL: typy-0.8.3-py3-none-any.whl
  • Upload date:
  • Size: 41.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for typy-0.8.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c15fce5f4407a092cf2e864c2989e2fa1ef219ecedd0808f2338c62e539f738f
MD5 a8503e80bd87e3f59a2578fd32f576d7
BLAKE2b-256 835db765991ab466f71c76e9aa8c24a0fb2008ad47ac3683edfaad40f1853620

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page