CLI tool that generates an OpenAPI documentation from your Pyramid application. Designed to get you up and running fast with minimal fuss.
- Automated OpenAPI Docs: Generate up-to-date API documentation from your Pyramid app automatically.
- Flexible Output:
- Clipboard: Pipe the output to your clipboard (e.g., using
pbcopyon macOS). - File: Redirect output to a file (e.g.,
api.yml).
- Clipboard: Pipe the output to your clipboard (e.g., using
- Intuitive CLI: Built with Typer for a smooth command-line experience.
- Python: Version 3.13 or higher.
Install Papyrus via the UV tool:
uv tool install git+https://github.com/iamlucasvieira/papyrusOr clone the repository and install manually:
git clone https://github.com/iamlucasvieira/papyrus
cd papyrus
pip install .Go to the directory of your Pyramid app (the directory containing your routes.py):
cd /path/to/your/pyramid/appExecute the command to generate the OpenAPI documentation:
papyrusCopy to Clipboard: Pipe the output directly to your clipboard (macOS example):
papyrus | pbcopySave to a File: Redirect the output to save it as a YAML file:
papyrus > api.ymlContributions are always welcome! If you have ideas for improvements or spot any issues, please open an issue or submit a pull request.
Distributed under the MIT License. See the LICENSE file for more details.
A big thank you to the maintainers of these awesome tools that make Papyrus possible: