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.58.2rc6.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.58.2rc6-cp310-abi3-win_amd64.whl (14.8 MB view details)

Uploaded CPython 3.10+Windows x86-64

quillmark-0.58.2rc6-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (15.5 MB view details)

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

quillmark-0.58.2rc6-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.58.2rc6-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.58.2rc6.tar.gz.

File metadata

  • Download URL: quillmark-0.58.2rc6.tar.gz
  • Upload date:
  • Size: 3.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.13.1

File hashes

Hashes for quillmark-0.58.2rc6.tar.gz
Algorithm Hash digest
SHA256 eff176ce920564efc38b4baf8788ea5fa3b853b6156147a6dd2af96683fc38e3
MD5 d9b1ed1e4863f0b3c737192a978f5f29
BLAKE2b-256 123db4613f27246ea8113a619a17b39c47f330a041b45a80e0dba4438b4892c6

See more details on using hashes here.

File details

Details for the file quillmark-0.58.2rc6-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for quillmark-0.58.2rc6-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 a9b635da4b4381ea4e680d3a0049d642b1841b342e2a3a32ba071cc48fc9a3b6
MD5 4cb05903aeb99332ba964070d5d4f027
BLAKE2b-256 3c0e33ed54262dc0ebd3271f2140407b098f0189f4bddde925619e4562c8a190

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quillmark-0.58.2rc6-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 aa95b4a1cda8ce48912134c27135ea59c247d99bf7da7d6a204ae2de6f53243c
MD5 f0fdb29479bad8a2e2566f124ce02231
BLAKE2b-256 49fc22c4c09766d8f936b2a2d16c957ea6ee69400682be81c49791bb11a750ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quillmark-0.58.2rc6-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4e292791c65a1bd5a882a2dc35d3903799bf69ea124e2bdc680bdd8f8d217364
MD5 b5d5d03f9956c6d86d3b5b69effa98a1
BLAKE2b-256 bf31f94bd64b4674fd86422f3c2dbc6b0bae6a888a2562db36d75b4757d66943

See more details on using hashes here.

File details

Details for the file quillmark-0.58.2rc6-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for quillmark-0.58.2rc6-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9aaf6bd0b78aeb6bf73eec754db3e19d2c3cc70b3d377fb0ed6073cd1711c265
MD5 e893ea9c65667c0017dea4463bee6f2b
BLAKE2b-256 c0f280f65efdca8319272f4ffa8096043c3db839ac25b0a112cb3846f0b38234

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