Skip to main content

Python bindings for Quillmark - format-first Markdown rendering

Project description

Quillmark — Python bindings

Python bindings for Quillmark's format-first Markdown rendering engine.

Maintained by TTQ.

Installation

pip install quillmark

Quick Start

from quillmark import Quillmark, Document, OutputFormat

engine = Quillmark()
quill = engine.quill_from_path("path/to/quill")

markdown = """---
QUILL: my_quill
title: Hello World
---

# Hello
"""

parsed = Document.from_markdown(markdown)
result = quill.render(parsed, OutputFormat.PDF)
result.artifacts[0].save("output.pdf")

# Round-trip: mutate, emit, re-parse
parsed.set_field("title", "Updated")
emitted = parsed.to_markdown()
reparsed = Document.from_markdown(emitted)
assert reparsed.frontmatter["title"] == "Updated"

API Overview

Quillmark

engine = Quillmark()
engine.registered_backends()      # ['typst']
quill = engine.quill_from_path("path/to/quill")

Quill

quill = engine.quill_from_path("path")
result = quill.render(parsed, OutputFormat.PDF)
session = quill.open(parsed)
quill.dry_run(parsed)

Development

uv venv
uv pip install -e ".[dev]"
uv run pytest

License

Apache-2.0

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quillmark-0.60.0.tar.gz (3.7 MB view details)

Uploaded Source

Built Distributions

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

quillmark-0.60.0-cp310-abi3-win_amd64.whl (14.8 MB view details)

Uploaded CPython 3.10+Windows x86-64

quillmark-0.60.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (15.6 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64

quillmark-0.60.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (15.1 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64

quillmark-0.60.0-cp310-abi3-macosx_11_0_arm64.whl (14.2 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

Details for the file quillmark-0.60.0.tar.gz.

File metadata

  • Download URL: quillmark-0.60.0.tar.gz
  • Upload date:
  • Size: 3.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for quillmark-0.60.0.tar.gz
Algorithm Hash digest
SHA256 aca5137d336906759cea4b82483a8e3da9dc244874690ac203ab924d5708309a
MD5 770de0c42a751ea36d7f43a51165f822
BLAKE2b-256 662dd15b2e45b4360e3cc23c102e1769e0395a85758411b196c8553f989aad09

See more details on using hashes here.

Provenance

The following attestation bundles were made for quillmark-0.60.0.tar.gz:

Publisher: release.yml on nibsbin/quillmark

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file quillmark-0.60.0-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: quillmark-0.60.0-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 14.8 MB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for quillmark-0.60.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 06b5e1a1fd56e41576d32b5eb8eb91df5892d12138515f59321548570f2f29d1
MD5 6a95935c7600689a975c23a64010ecd7
BLAKE2b-256 475add4c5ddb5673f753abed963e0a7d6cf9b5b3850d230db4302b174d0ba841

See more details on using hashes here.

Provenance

The following attestation bundles were made for quillmark-0.60.0-cp310-abi3-win_amd64.whl:

Publisher: release.yml on nibsbin/quillmark

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file quillmark-0.60.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for quillmark-0.60.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 67eaecf48f4b78fd9f8e9210a22dc55b3dccf49b8a528fc008f2aa03add7cc7e
MD5 9b904269f47e72edac691f9164db5123
BLAKE2b-256 84ed7ba29b5fe8c95d62cdcd1bf3b5f357193f4433ba369c366a176067d40c13

See more details on using hashes here.

Provenance

The following attestation bundles were made for quillmark-0.60.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on nibsbin/quillmark

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file quillmark-0.60.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for quillmark-0.60.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 45d9a9aeb5b22f5f57fed1d76ffbe865e83afad613152d4e138468bf8cbcce52
MD5 cd769870827a3965fcbc972ee107f38d
BLAKE2b-256 53f7014b6f2ac1ec06ffebe74b07983c0809a2154582f90f0cf41cc34a5da4bb

See more details on using hashes here.

Provenance

The following attestation bundles were made for quillmark-0.60.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: release.yml on nibsbin/quillmark

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file quillmark-0.60.0-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for quillmark-0.60.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9d28d1ca692de981e93c6e5fd53f01113c967b4df16e66ebabdf0eff27bf399f
MD5 e4e1d647a97220cac282d3aeb4b9b1f2
BLAKE2b-256 dca8d09013d8e12fe072489826e17b1ed7cd665f0f8695184acd8c35e8207f2f

See more details on using hashes here.

Provenance

The following attestation bundles were made for quillmark-0.60.0-cp310-abi3-macosx_11_0_arm64.whl:

Publisher: release.yml on nibsbin/quillmark

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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