Skip to main content

Python package management

Project description

branthebuilder

pypi

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 toolinguv for dependency management, ruff for formatting and linting, hatchling for builds, pyproject.toml as 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

branthebuilder-5.0.1.tar.gz (49.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

branthebuilder-5.0.1-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

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

Hashes for branthebuilder-5.0.1.tar.gz
Algorithm Hash digest
SHA256 e6110eb3e138921f4fc3d5e03ac14c24b738d67a201040e314106439fa4c8521
MD5 df475d0762cef3abd0b9b6bbb6238b82
BLAKE2b-256 83d6d74376922e8ecb62d86815aed625742beda5f93eb6c8b6ee95a0d94553a9

See more details on using hashes here.

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

Hashes for branthebuilder-5.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 81b17b0219f576e88f9ad97e0bcc963e039981d6e43802d18aca95c7c62d55bc
MD5 b55b77d6b0811135027264c91446242a
BLAKE2b-256 a6ac19ba1c8b8f7a2a4f00b71081c629d5f82a4347b7336130fce6d5c38329c5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page