toolcli makes it easy to create structured hierarchical cli tools
Project description
toolcli
toolcli makes it simple to create modular command line interfaces
the main usecase for toolcli is allowing many cli subcommands to be defined across many files in a performant way
toolcli uses argparse under the hood, making it easy to transition from argparse to toolcli when a project is ready to scale to multiple subcommands or multiple files
Features
- lazy loading of files for fast startup times
- is agnostic to synchronous functions or
asyncfunctions - uses
richfor colorized help output - uses
argparseunder the hood for parsing arguments - no user-facing objects, just simple functions
- built-in support for common subcommands like
help,cd, andversion - can use middleware before and/or after main command execution (e.g. for logging or additional context injection)
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 toolcli-0.6.16.tar.gz.
File metadata
- Download URL: toolcli-0.6.16.tar.gz
- Upload date:
- Size: 23.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.30.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
018f0657f1216f1e15bc43b858f20ffdee8ef0b1df028d814a3d9b350ffd8fa0
|
|
| MD5 |
d536bb7572c2e2a1027ecc45991f0495
|
|
| BLAKE2b-256 |
1617320ca2b5c110439d553c07e81252434d9818f6b6f83d6f14df8018968866
|
File details
Details for the file toolcli-0.6.16-py3-none-any.whl.
File metadata
- Download URL: toolcli-0.6.16-py3-none-any.whl
- Upload date:
- Size: 33.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.30.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df57eb78cf6364da2bc2282f4c0a0ab219470dc4cd0c940d839582de4b288606
|
|
| MD5 |
22bb1ca0a1d2b45f7b923e6f457ed40a
|
|
| BLAKE2b-256 |
bc90369281dfbe2d9e8768402043f905bcccfe7dd7e0da9709e85369ef4236c9
|