Scott
A small Python framework for building scoped, task-oriented terminal tools.
Scott provides the shared command-line plumbing for applications made up of focused commands. Each command can live in its own module, define its own arguments, and be loaded only when the application registers it. The application keeps ownership of its business logic; Scott handles the common CLI mechanics.
What Scott provides
- A thin layer over Python's standard-library
argparsemodule - Dynamically loaded commands
- Command-specific arguments and help text
- A small handler contract that keeps commands self-contained
- Centralized command registration and dispatch
Scott is designed for small to medium-sized Python tools that need several related commands without introducing a larger CLI framework.
How it fits together
At a high level, a Scott application has an entry point that registers command names. Scott resolves each name to a command handler, lets that handler extend its subparser, and dispatches the parsed arguments to the selected command. The complete application layout and handler contract are documented in The Anatomy of a Scott application.
Documentation
- Install Scott — install from a built wheel, Git repository, or local checkout
- The Anatomy of a Scott application — application structure and command handlers
- Scott API Reference — constructors, registration, dispatch, and behavior
- Build from Source — create distributable package artifacts
Development
The project uses a standard Python package layout and pyproject.toml build configuration.
For development installation and packaging instructions, see
Build from Source.
License
Scott is distributed under the DuxTechnica Limited Use Source Code License Agreement.