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
async
functions - uses
rich
for colorized help output - uses
argparse
under 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
toolcli-0.6.14.tar.gz
(23.8 kB
view details)
Built Distribution
toolcli-0.6.14-py3-none-any.whl
(33.7 kB
view details)
File details
Details for the file toolcli-0.6.14.tar.gz
.
File metadata
- Download URL: toolcli-0.6.14.tar.gz
- Upload date:
- Size: 23.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.30.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3267669f0bf1c048013682c4b2217471d6005500559beb56c69214771b258df2 |
|
MD5 | 618daa24e542cff86925293356ab0df4 |
|
BLAKE2b-256 | cedf43324dab34e4f12408c51104035b6cc09d4fb5211cf6e39b67f73eac3126 |
File details
Details for the file toolcli-0.6.14-py3-none-any.whl
.
File metadata
- Download URL: toolcli-0.6.14-py3-none-any.whl
- Upload date:
- Size: 33.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.30.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c06ee9e77299d253ededf613d773d5ca694b76b26e9bdd5c94f858b7437c24b4 |
|
MD5 | 302fb20af01fb25171bb89cae002ae53 |
|
BLAKE2b-256 | 8872903fe3f06803759007f31944e0a05eba8c3ba4e17995ad612e1cad468ff0 |