44 lines
1.9 KiB
Markdown
44 lines
1.9 KiB
Markdown
# 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 `argparse` module
|
|
- 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](docs/anatomy.md).
|
|
|
|
## Documentation
|
|
|
|
- [Build from Source](docs/build-from-source.md) — create distributable package artifacts
|
|
- [Install Scott](docs/install.md) — install from a built wheel, Git repository, or local checkout
|
|
- [The Anatomy of a Scott application](docs/anatomy.md) — application structure and command handlers
|
|
- [Scott API Reference](docs/api-reference.md) — constructors, registration, dispatch, and behavior
|
|
|
|
## Development
|
|
|
|
The project uses a standard Python package layout and `pyproject.toml` build configuration.
|
|
For development installation and packaging instructions, see
|
|
[Build from Source](docs/build-from-source.md).
|
|
|
|
## License
|
|
|
|
Scott is distributed under the [DuxTechnica Limited Use Source Code License Agreement](LICENSE).
|