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
basic

Install

pip install git+https://github.com/mgoulao/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.2.tar.gz (36.9 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.2-py3-none-any.whl (41.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: typy-0.8.2.tar.gz
  • Upload date:
  • Size: 36.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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.2.tar.gz
Algorithm Hash digest
SHA256 08f8dcfaa670e38f3b327dad2c24a75a221066bea8e9ad75b5f68739d28deaa9
MD5 c9804dc7097e554b5073f0906208143f
BLAKE2b-256 acab9928cc8f20d712a9b7a94d16252bbdc400eb047bce8f2e8c8a0441f22906

See more details on using hashes here.

File details

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

File metadata

  • Download URL: typy-0.8.2-py3-none-any.whl
  • Upload date:
  • Size: 41.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b7a95cb27959c4d4ee1ebfacc1dea37cc9825842af3366223d2c6e6d54cead19
MD5 f5cca383496145955e1285257144881b
BLAKE2b-256 041491eabfaff35b358d55670e7df383e36869988e19ab222dbf235f4ef137fb

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