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

Uploaded CPython 3.10+Windows x86-64

quillmark-0.59.0rc1-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.59.0rc1-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.59.0rc1-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.59.0rc1.tar.gz.

File metadata

  • Download URL: quillmark-0.59.0rc1.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.59.0rc1.tar.gz
Algorithm Hash digest
SHA256 96e9226541e85c9fdbf52ec0c1de019540c095d565aed453478d122515cc27f6
MD5 99b5ecc5c94b1dbf431a99161fe414e4
BLAKE2b-256 7002ea6f5ee58acca3868f8dfafd3258ac4f898c735cfa7d24a9c17b7830a675

See more details on using hashes here.

File details

Details for the file quillmark-0.59.0rc1-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for quillmark-0.59.0rc1-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 b2f2aaa2396f19c0cb56d420baf3148ff68ed051f8e9d75caa570a100ccf607f
MD5 da4863c3b9eb404e707b59e5bd53ee48
BLAKE2b-256 df0b441d51538d3db30e41a2d96e02cc17aa4a95ec2f261531f107958c04030d

See more details on using hashes here.

File details

Details for the file quillmark-0.59.0rc1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for quillmark-0.59.0rc1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f586438f8c8b4816f516a822c64a9ea917b21418df744ff9015b6de705df158c
MD5 eea5462ff4a64eadb2973ded6b1ce6fa
BLAKE2b-256 6a9e89817e6aa5c746330fe085354627879c4f0fb19b19c49a1264e97c37aed4

See more details on using hashes here.

File details

Details for the file quillmark-0.59.0rc1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for quillmark-0.59.0rc1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e77c9f76282b785efa269f63d84df2ae7d8faa3995e513e155a4dd2de9aaa48e
MD5 ca6c680c94c4f4022cf7e7817f719613
BLAKE2b-256 9d17cc5ef1a846d4684028425479db96be345d2dc922dd934990455481eca679

See more details on using hashes here.

File details

Details for the file quillmark-0.59.0rc1-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for quillmark-0.59.0rc1-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 64baac7ab91cdd18322ab9b230e687c8491a4233df5a8be5bbbc0ed4a4ee4842
MD5 7b73587f666f3beb85468063938eeebf
BLAKE2b-256 8821b90e34293fcdbf8bb79806c74a2b4537dbbad6cec5860f575dd3dac82f8f

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