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
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)
| File | Size | Uploaded | |
|---|---|---|---|
| pandoctylus-0.2.0.tar.gz | 3.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|