Skip to main content

A crazy and opinionated way of generating documents.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pandoctylus-0.2.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pandoctylus-0.2.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file pandoctylus-0.2.0.tar.gz.

File metadata

  • Download URL: pandoctylus-0.2.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for pandoctylus-0.2.0.tar.gz
Algorithm Hash digest
SHA256 71fc2b2c164c7afcf1818742c970a562fa6064149c94e9b7d904a51c4e1eded0
MD5 b4f723c44b2acbb61b2bb89a30292f96
BLAKE2b-256 21629622c9373a0f75a3b5e69908a1ebce6b02a06df5b840c9093f119fbd536a

See more details on using hashes here.

File details

Details for the file pandoctylus-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pandoctylus-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for pandoctylus-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0865fc18a18e43c5d545a4ce2e3333d2122647b2f8685119c44cdbd3e6f977ab
MD5 15f2d9f76002682c3b1156e5b478011d
BLAKE2b-256 0974e977b98fa68ff4bdfe9dca7504202173c887786d22e3698074af2a5aaa19

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