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

Uploaded CPython 3.10+Windows x86-64

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

File metadata

  • Download URL: quillmark-0.58.2rc3.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.2rc3.tar.gz
Algorithm Hash digest
SHA256 5fac248d31162d416f86fc0ac5fa710554f9509b280a422f0bf101ee2ba03d57
MD5 cd37a23ae6e58a38d807185dfe2fe33e
BLAKE2b-256 334d5a41c7840941b14ed36bd932bad9903dcc93c71eb969bd741e8862c51b91

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quillmark-0.58.2rc3-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 115e4ae7876494e1299628d219e9e0ef616c5943046af2c341420461bd385935
MD5 cece7e10db0186a77c2aac674ff956e0
BLAKE2b-256 9aaad9ad7ad21df488a25af5c378fe17cd791be905aae886a0fad953efe82c25

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quillmark-0.58.2rc3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f19bc70a5bf4e4e43e133b384e02c1762b1c5298f94ff2298a9713ba39f2a0f8
MD5 7dffd92fff51e0e74c81f651094bc333
BLAKE2b-256 43db4e50847cebdbe4a6139695ed9b4f30f3576abe3db527f2ee85d1dd9b8421

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quillmark-0.58.2rc3-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ce6f55792948e78a531e3f361ddaafa6e6625667796a9271ab5d8dcf7e2d787b
MD5 b8915e45c54d5c35151d36f1afb9c1b4
BLAKE2b-256 c1f943ba554c79980cdfea1d561e36f4359f89cca7ab70b203b0e1a7f618603e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quillmark-0.58.2rc3-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9fd306f0c78abd4b6268cf39852e418da7d684c04fdedb3b8085b882ef9cc34b
MD5 7c55351d163a7ce473a53348bfc31f5b
BLAKE2b-256 f47f782fe1b2f2975f0910e7cd15a05bd88ccb4ef10917c145154074087359c9

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