A crazy and opinionated way of generating documents.
pip install pandoctylusCheck 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
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:
pytestTo 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/
- Generate multiple documents from shared Markdown and YAML and a docx template.
MIT License
