Pape Docs
Pape Docs is a command-line interface (CLI) tool designed to simplify the creation and management of templated documentation. It provides a straightforward, opinionated system for generating various types of documents (e.g., ADRs, tasks, notes) from predefined templates, ensuring consistency and reducing overhead.
Features
Streamlined Document Creation
The core functionality is provided by the new-doc script, which allows users to quickly create new Markdown documents based on pre-defined templates.
Usage:
uvx pape-docs new
Or, with pape-docs installed via uv as a tool (see installation instructions below):
new-doc
Options:
--priority <PRIORITY>: Optional priority number for the document (e.g., "0100", "????" for unknown).--doc-type <DOC_TYPE>: Optional document type (e.g., "ADR", "Task", "Notes", "Bug").
Robust Interactivity (Planned)
The new-doc script is designed to support both interactive and non-interactive modes.
- Interactive Mode (Default):
- Prompts for required arguments (like the document title) if not provided via command-line options.
- Re-prompts for invalid non-empty responses, providing reasonable defaults for empty responses.
- Non-Interactive Mode (Planned Option):
- Will execute without any interactive prompts.
- Will throw an error if any required arguments (e.g., title) are missing.
Flexible Docs Directory Location
The script intelligently locates the pape-docs/ directory where new documents should be placed. The search order is:
- An environment variable (
PAPE_DOCS_DIR). - A
pyproject.tomlfile in the current or parent directories, looking for[tool.pape-docs]."docs-dir". - An existing
pape-docs/directory in the current or parent directories.
If none is found, the script exits before the user wastes time entering other information
Packaged Template
Pape Docs comes with one pre-defined doc.md template. It's bundled with the application and are not user-configurable. This design choice reinforces the opinionated nature of the tool, aiming to prescribe a simple and consistent documentation system.
Installation
If you want to add new-doc (and pape-docs) to your $PATH, you can install this package as a uv tool.
uv tool install pape-docs
uv allows updating tools with uv tool upgrade [tool-name] or uv tool upgrade --all.
Development
Setup
-
Clone the repository.
-
Install dependencies using
uv(orpip):uv pip install -e . uv pip install -e ".[dev]"
Linting and Formatting
This project uses ruff for linting and formatting.
ruff check .
ruff format .
Testing
Tests will be written using pytest.
pytest
Metadata
Release files for pape_docs 0.5.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 | Provenance | Actions |
|---|---|---|---|---|
| pape_docs-0.5.0.tar.gz | 32.0 kB | Without provenance | Details for pape_docs-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pape_docs-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for pape_docs-0.5.0-py3-none-any.whl |
Total release size: 55.0 kB
Release files / pape_docs-0.5.0.tar.gz
| Download URL | pape_docs-0.5.0.tar.gz |
|---|---|
| Size | 32.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7c14250ede5185209d9362ee0e92b8a725499c4b03f8868fbf4a92311f9cba51
|
|
BLAKE2b-256 checksum How to use checksums |
4fa597d5f4d01d7d028399a77039805e3849d117c04fd94ef47396c55e07c8d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.22
|
Release files / pape_docs-0.5.0-py3-none-any.whl
| Download URL | pape_docs-0.5.0-py3-none-any.whl |
|---|---|
| Size | 23.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
978bc5217f7ad51a0d4d57f11c6a0448db01425ecfd9443a618e80312347973b
|
|
BLAKE2b-256 checksum How to use checksums |
afe3e266007133113e9d8404301b3e665c14bd2d34d9a70c15b59cd1470867cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.22
|
Security for pape_docs 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.