Python package management
Project description
branthebuilder
Utility CLI for creating, documenting, and testing Python packages. Uses a cookiecutter template.
Philosophy
This project embodies a self-contained, low-dependency approach to Python library development. Projects built with it follow the same principles.
Core principles
- No external services — no codecov, no readthedocs, no hosted CI artifacts. Everything lives in the repo.
- Docs in the repo — documentation is generated into
docs/as HTML and Markdown, readable by both humans and AI tools without a browser. - Coverage in the repo — test coverage reports are generated locally into
coverage/, in HTML and Markdown formats, committed alongside the code. - Minimal dependencies — avoid heavy frameworks unless the value is clear and lasting. Prefer stdlib, then small focused libraries with few transitive deps.
- Modern Python tooling —
uvfor dependency management,rufffor formatting and linting,hatchlingfor builds,pyproject.tomlas the single config source. - AI-friendly — Markdown output for docs and coverage means both humans and LLMs can read and reason about the project state without fetching external URLs.
Doc generation
API docs are generated from docstrings into docs/api.md using Python's inspect module. No external tools required. Release notes live in docs/release_notes.md, with the newest release always on top.
branb build-docs # generates docs/api.md from docstrings
branb tag "msg" minor # prepends entry to docs/release_notes.md
Coverage
pytest-cov + coverage built-in Markdown reporter (coverage ≥ 7.2):
branb test # runs lint + pytest, writes coverage/ with HTML and report.md
Coverage output is committed to the repo so it is always readable in-browser on GitHub and by any LLM with repo access.
Usage
# create a new project from the cookiecutter template
branb init
# lint (ruff format + check)
branb lint
# run tests with coverage
branb test
# build docs
branb build-docs
# tag a release and push
branb tag "release message" minor
Installation
uv tool install branthebuilder
thanks to typer, can install shell completion after
License
MIT
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 branthebuilder-5.0.1.tar.gz.
File metadata
- Download URL: branthebuilder-5.0.1.tar.gz
- Upload date:
- Size: 49.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6110eb3e138921f4fc3d5e03ac14c24b738d67a201040e314106439fa4c8521
|
|
| MD5 |
df475d0762cef3abd0b9b6bbb6238b82
|
|
| BLAKE2b-256 |
83d6d74376922e8ecb62d86815aed625742beda5f93eb6c8b6ee95a0d94553a9
|
File details
Details for the file branthebuilder-5.0.1-py3-none-any.whl.
File metadata
- Download URL: branthebuilder-5.0.1-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81b17b0219f576e88f9ad97e0bcc963e039981d6e43802d18aca95c7c62d55bc
|
|
| MD5 |
b55b77d6b0811135027264c91446242a
|
|
| BLAKE2b-256 |
a6ac19ba1c8b8f7a2a4f00b71081c629d5f82a4347b7336130fce6d5c38329c5
|