Skip to main content

Pandoctylus

Pandoctylus Logo

A crazy and opinionated way of generating documents.

Installation

pip install pandoctylus

Use

Check out the example project in examples/project1 to understand how to make a document. Key ingredients:

  • define the document as yaml file in docs/ sub-dir
  • create or pick an existing jinja template and refernece it in the yaml file
  • create or pick an existing docx template and reference it in the yaml file
  • run the tool:
    python pandoctylus/pandoctylus.py \
      --root-dir examples/project1 \
      --output-dir ./output
    
  • enjoy the generated docs in ./output

Development

This project uses modern Python packaging with pyproject.toml. To set up the development environment:

  1. Clone the repository:
git clone https://github.com/yourusername/pandoctylus.git
cd pandoctylus
  1. Create a virtual environment and install development dependencies:
uv venv pandoctylus-venv
source .pandoctylus-venv/bin/activate 
uv pip install -e ".[dev]"
  1. Run tests:
pytest

Packaging and Publishing

To build and publish the package to PyPI:

  1. Install build tools:
uv pip install build twine
  1. Build the package:
python -m build
  1. Verify the distributions:
python -m twine check dist/*
  1. Upload to PyPI:
python -m twine upload dist/*

The package will be available at https://pypi.org/project/pandoctylus/

Features

  • Generate multiple documents from shared Markdown and YAML and a docx template.

License

MIT License

Metadata

Release files for pandoctylus 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pandoctylus 0.2.0
File Size Uploaded
pandoctylus-0.2.0.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pandoctylus 0.2.0
File Interpreter ABI Platform
pandoctylus-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.0 kB

Release files / pandoctylus-0.2.0.tar.gz

Download URL pandoctylus-0.2.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
71fc2b2c164c7afcf1818742c970a562fa6064149c94e9b7d904a51c4e1eded0
BLAKE2b-256 checksum
How to use checksums
21629622c9373a0f75a3b5e69908a1ebce6b02a06df5b840c9093f119fbd536a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.6

Release files / pandoctylus-0.2.0-py3-none-any.whl

Download URL pandoctylus-0.2.0-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0865fc18a18e43c5d545a4ce2e3333d2122647b2f8685119c44cdbd3e6f977ab
BLAKE2b-256 checksum
How to use checksums
0974e977b98fa68ff4bdfe9dca7504202173c887786d22e3698074af2a5aaa19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.6

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page