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

Uploaded CPython 3.10+Windows x86-64

quillmark-0.58.2rc2-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.2rc2-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.2rc2-cp310-abi3-macosx_11_0_arm64.whl (13.9 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

Details for the file quillmark-0.58.2rc2.tar.gz.

File metadata

  • Download URL: quillmark-0.58.2rc2.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.2rc2.tar.gz
Algorithm Hash digest
SHA256 70b633c07200952169f9560b11c65c651e5d8635dfdfe86cb1091c4daece1029
MD5 2f9fd58cfc1e1d2fba4279d107e38a22
BLAKE2b-256 627d53889d9c8d70e9951382512c5a87412242f320c3c54f2290e2747bdd2dca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quillmark-0.58.2rc2-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 93a0fba202fde3ebe89610103177f6854bce33072639d22b4f593dbc7a1f60c3
MD5 4e07abb10d444514f99efe6698be57bb
BLAKE2b-256 89068d7186327581123343720278b2abff940d1a560537e7dc607b586baab088

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quillmark-0.58.2rc2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e40eaef2c3ebc05f38812acfa32c6b563c08c7f8d8222b01c43feff662c98370
MD5 2bbd88b8704e5b3ca6f637e36a6dd7bb
BLAKE2b-256 8ac3a6bdca76f3290df7b101edb48134e24085bd557c3bce50d02185b3fbf3ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quillmark-0.58.2rc2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8a5a51ced4c89c6682a05e9f8c8c3d0e5f8482cd1fc6bdb35d43b20496d4d373
MD5 2c7e9176d9bbb8fb2780a841828dc6a5
BLAKE2b-256 922025a06c2d263d17116ffe85ffb7d30ade04e3208931187ebfa4c7eb030433

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quillmark-0.58.2rc2-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9652cce54e5b78d83be4d3eec6d981cdc356c818305ad7cfc910e8e98480920e
MD5 85ce4092434f4a150463017e7b9d1ac8
BLAKE2b-256 435aa630cef505551d34fa17a55acd04c5e6560f178411cec8344ee288ed7f26

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