Topic track
Project Setup & Dependency Management
Build a dependable foundation with packaging, dependency resolution, versioning, virtual environments, and distribution workflows for Python CLI projects.
Content-driven handbook for Python CLI teams
A practical handbook for building, testing, packaging, and shipping production-ready Python command-line applications — more than 230 in-depth guides across four tracks.
Browse the knowledge base
Start with the track that matches the problem in front of you — every guide links up to its section and sideways to related pages.
Topic track
Build a dependable foundation with packaging, dependency resolution, versioning, virtual environments, and distribution workflows for Python CLI projects.
Topic track
Choose frameworks, structure command trees, and design extensible, fast-starting command-line systems that can scale with your product or team.
Topic track
Improve validation, config loading, error handling, logging, and terminal rendering so Python CLIs stay predictable for both humans and automation.
Topic track
Run subprocesses safely, write files atomically, call HTTP APIs, add concurrency, protect credentials and keep long-running commands healthy.
New in this release
Output formats, alternative frameworks, local state, update checks and supply-chain security — plus deeper guides in every existing topic, from systemd services to structured concurrency.
One --format flag for tables, JSON and CSV, field selection, format-string templates and exports that scripts can trust.
Cyclopts, Python Fire, docopt-ng and Cleo compared with Typer and Click — what each does well and when to choose it.
Keep state in SQLite with schema migrations, cache HTTP responses on disk and record a queryable history of runs.
Check PyPI for new releases without slowing anyone down, show polite notices, upgrade pipx and uv installs, and ask before telemetry.
Audit dependencies, pin with hashes, publish attestations users can verify and generate an SBOM for every release.
Turn an agent command into a supervised service with readiness, a watchdog, config reloads on SIGHUP and structured journal logs.
How to use the handbook
Go straight to the guide. Every page opens with the answer before the explanation, so the first screen is usually enough to get unblocked.
Follow the recommended path on each track overview, in order. It front-loads the decisions that are expensive to reverse: layout, locking, and the shape of the command tree.
Run the eight-invocation audit at the end of the input and terminal UX overview. Each failure points at the guide that fixes it.