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

Uploaded CPython 3.10+Windows x86-64

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

File metadata

  • Download URL: quillmark-0.58.2rc5.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.2rc5.tar.gz
Algorithm Hash digest
SHA256 b756d71573aa7aadf832ef5fe6075f408ac060415ea65060e384d4945bab7296
MD5 2c015032ab1aa5f954d6d46a7f03886b
BLAKE2b-256 df3a3df83e3b9d86cca11f7123d3ae7f6aa76dcbf96059bae03f83635763d62f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quillmark-0.58.2rc5-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 be545717555b99d7bbb019e34d8927599cc885076aa347b4c1fd20904fa2fe12
MD5 ae20dff275dbb34abf920bc1f748ec29
BLAKE2b-256 bbf64e891c0d6a552be55e2bfb34f81c2368127a4071fa07c8ddbbe0f4111a85

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quillmark-0.58.2rc5-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6b0ae0c5aef22b82c51c262a255be584e4fdbd8697388cd884ea30426879107f
MD5 02900b8714198db21c580fc54ceac4a3
BLAKE2b-256 1e367690e04d4a1b6e79e58c8e089ef99040e501a73dd1547e2c1fa67efb1a5a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quillmark-0.58.2rc5-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5e2225583c8c5933da31a7160b280c10adcd35647ca043adbe448e8e3800025f
MD5 0feb142c6557727fa6c3d6a7c3d13035
BLAKE2b-256 8a02a42e11e2a5b006692d01621164d5af15ba04387e0eac218fffb95dbe631e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quillmark-0.58.2rc5-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dfe8ed6626d2fd7d4c14af5625df23656acc420547cb8e2cfdafac0bb1ffda78
MD5 46d1a9296c2a168bdcbe9037c64efc81
BLAKE2b-256 fedb93c79f5e4514a20c2febd7e5b665353de1e60ff68c82e987ea305c4630fd

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