A crazy and opinionated way of generating documents.
Project description
Pandoctylus
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:
- Clone the repository:
git clone https://github.com/yourusername/pandoctylus.git
cd pandoctylus
- Create a virtual environment and install development dependencies:
uv venv pandoctylus-venv
source .pandoctylus-venv/bin/activate
uv pip install -e ".[dev]"
- Run tests:
pytest
Packaging and Publishing
To build and publish the package to PyPI:
- Install build tools:
uv pip install build twine
- Build the package:
python -m build
- Verify the distributions:
python -m twine check dist/*
- 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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71fc2b2c164c7afcf1818742c970a562fa6064149c94e9b7d904a51c4e1eded0
|
|
| MD5 |
b4f723c44b2acbb61b2bb89a30292f96
|
|
| BLAKE2b-256 |
21629622c9373a0f75a3b5e69908a1ebce6b02a06df5b840c9093f119fbd536a
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0865fc18a18e43c5d545a4ce2e3333d2122647b2f8685119c44cdbd3e6f977ab
|
|
| MD5 |
15f2d9f76002682c3b1156e5b478011d
|
|
| BLAKE2b-256 |
0974e977b98fa68ff4bdfe9dca7504202173c887786d22e3698074af2a5aaa19
|