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

Uploaded CPython 3.10+Windows x86-64

quillmark-0.58.2rc4-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.2rc4-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.2rc4-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.2rc4.tar.gz.

File metadata

  • Download URL: quillmark-0.58.2rc4.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.2rc4.tar.gz
Algorithm Hash digest
SHA256 1c01d8ae337b38444c198bb3a99e34f4200c834ad76470867411cba4fa3e2026
MD5 edb389c948a0021ddb7c3b66ebd55811
BLAKE2b-256 7f22fc0babeab2a45ff298dfc9068b4735fd86760aa7fd298ff029c1a488a4f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quillmark-0.58.2rc4-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 8d04b16b075239d20d16ad89d3989fa4adef1a8f67ac074c5aef399618d219b9
MD5 e20820c453960ea98dc686970cb650cc
BLAKE2b-256 5db19ad12d83c14bc0a0a42464932e95c8c21aa136ef8fd977fef14409bdaeaa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quillmark-0.58.2rc4-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 92fc6caf3b02e6568f098fa0af9b3dab7c51d1e2712e67a087674e29d2d74cb6
MD5 edd1ca851d5577142084bf6bf1a62741
BLAKE2b-256 1a349718b3c7942de3f1dfaa083f3004a4576c680e090a809a003c50bbd3d980

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quillmark-0.58.2rc4-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 26f62d7e98a7617c153d4ce0ce99e3c4bc4e406326ec9bae1682e0eaeec643cf
MD5 4b9d7730b10fb3608145ae25884a1346
BLAKE2b-256 11c54239717d070eda925e3e4b71eba8336d01766af971c1805ebe01fe8d799d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quillmark-0.58.2rc4-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bd9a872ccee5b30440f04a0d357231f5978d1e28ef6bf8287a9175c6463280f0
MD5 621cd11868f1b18dfacfe6c54c37f8c8
BLAKE2b-256 7aeb918b03985940d1550e3b8f1fd390bbc7ea87bab51e209e9957b2dd994207

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