cli-builder: Decorators for building command group CLIs
cli-builder provides a user-friendly interface to quickly build up command group CLIs.
import cli_builder
dispatch = cli_builder.Dispatch()
my_cool_group = dispatch.group("my_cool_group")
my_other_cool_group = dispatch.group("my_other_cool_group")
@my_cool_group.command("do-stuff", arguments={
"positional": dict(type=str),
"--named": dict(type=int, default=5)
})
def my_func(args):
print(args.positional, args.named)
@my_cool_group.command("do-other-stuff", arguments=dict())
def my_other_func(args):
pass
@my_other_cool_group.command("do-stuff-in-other-group")
def other_group_command(args):
pass
Installation
pip install cli-builder
Links
Project home page GitHub
Package distribution PyPI
Bugs
Please report bugs, issues, feature requests, etc. on GitHub.
Metadata
Release files for cli-builder 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cli-builder-0.1.5.tar.gz | 3.5 kB | Without provenance | Details for cli-builder-0.1.5.tar.gz |
Release files / cli-builder-0.1.5.tar.gz
| Download URL | cli-builder-0.1.5.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1aee1931096259692d9c24d56866bf5583c2a52b55635e3d611c44a1546ea066
|
|
BLAKE2b-256 checksum How to use checksums |
13b3d95ba23833f61fb0d3e7e3a7579bced3dfc8e312e6107552d31289a03db4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.5
|
Security for cli-builder 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.