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, ParsedDocument, OutputFormat

engine = Quillmark()
quill = engine.quill_from_path("path/to/quill")

markdown = """---
QUILL: my_quill
title: Hello World
---

# Hello
"""

parsed = ParsedDocument.from_markdown(markdown)
result = quill.render(parsed, OutputFormat.PDF)
result.artifacts[0].save("output.pdf")

API Overview

Quillmark

engine = Quillmark()
engine.registered_backends()      # ['typst']
quill = engine.quill_from_path("path/to/quill")
workflow = engine.workflow(quill) # for dynamic assets/fonts

Quill

quill = engine.quill_from_path("path")
result = quill.render(markdown_or_parsed, OutputFormat.PDF)

Workflow

Use workflow when adding dynamic assets/fonts:

workflow = engine.workflow(quill)
workflow.add_asset("logo.png", logo_bytes)
workflow.add_font("Custom.ttf", font_bytes)
result = workflow.render(parsed, OutputFormat.PDF)

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.57.0.tar.gz (3.6 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.57.0-cp310-abi3-win_amd64.whl (14.8 MB view details)

Uploaded CPython 3.10+Windows x86-64

quillmark-0.57.0-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.57.0-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.57.0-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.57.0.tar.gz.

File metadata

  • Download URL: quillmark-0.57.0.tar.gz
  • Upload date:
  • Size: 3.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.13.1

File hashes

Hashes for quillmark-0.57.0.tar.gz
Algorithm Hash digest
SHA256 e3ba8ecbf3faf3c215f522399165c23c1ee07a470197f6805fe790242c1fde62
MD5 631685f0d29fb9e17c22b21bcbd02707
BLAKE2b-256 b2a491bab47e3bf21fc489ad7c8c7da7ef3e027f8a6b036bfc8591c8b818ceb4

See more details on using hashes here.

File details

Details for the file quillmark-0.57.0-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for quillmark-0.57.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 94f459d1a02fb467a86bd41d4a43376d5f60f9754c3b1b31cf9561a568c6a73e
MD5 ecff3f90966b62643f7bc0e696a51291
BLAKE2b-256 fc6ce1a700b4bcc84d96dcdf228a4917152d3d2a0d6b2c17d2e91ccf47906bee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quillmark-0.57.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 238978674083d6f351c2a454c0d6e8254e5b476ca4733cff59b23e98dc8f8825
MD5 3808a2af80bc19ce67d3392efe3ea7c6
BLAKE2b-256 9d0bfc93b8325e880955db83e4edf58ba343e019915c0b5264fac9340ee992a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quillmark-0.57.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 66b3ac2cd562d8a7c9797553813d06ca4ce937c1d0c94559760bc52ad02f2a06
MD5 b617e3af05e7b5033534e0a51798e690
BLAKE2b-256 cef2dfaaad1683d2903af7317fcc3c373429e74a7c21e04812651aa3ad9bfa06

See more details on using hashes here.

File details

Details for the file quillmark-0.57.0-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for quillmark-0.57.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 68533d7333925c8a503784a314e9cd0e5039e64c73886adcd3e5f337846b93a5
MD5 4ef4a4e0af443410a53c9d432ce086d7
BLAKE2b-256 9e4fbc57f2b57bca6b684b8c18f0178921c83cd4f91ce614f1d5f836668a9654

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