Create CLIs using parser combinators and type hints
Project description
genbu
Genbu is a library for creating composable command-line interfaces.
Features
- Infer shell arguments parser from type hints.
- Override inferred parsers using shell parser combinators.
- Compose command-line interfaces declaratively (subcommands).
- Dispatch automatically to the appropriate command callback.
- Generate usage messages by using
genbu.usage
.
Install
pip install genbu
Usage
See examples.
License
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
genbu-0.2.tar.gz
(20.1 kB
view details)
Built Distribution
genbu-0.2-py3-none-any.whl
(25.0 kB
view details)
File details
Details for the file genbu-0.2.tar.gz
.
File metadata
- Download URL: genbu-0.2.tar.gz
- Upload date:
- Size: 20.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
47dea1afdda25ea7fa515f79982bc01b289dfbab876fcdac49c3849e98ec559d
|
|
MD5 |
cea5062eb25fc37333e657057ccd268e
|
|
BLAKE2b-256 |
a9fc4398314698412e31ec97bdd4513d3b27f4cf013603a76947bf6453f398f4
|
File details
Details for the file genbu-0.2-py3-none-any.whl
.
File metadata
- Download URL: genbu-0.2-py3-none-any.whl
- Upload date:
- Size: 25.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
85c0e9bd67063eabd2a469ffdd6b5bf5b39f1b72ac3a79ef210d3f36f6ff6e40
|
|
MD5 |
c1d540031f37c49632f869a29361247e
|
|
BLAKE2b-256 |
360fd143d5f4846d5540817541ef68fdb3cc5a7f99cf79428312295efdd9af81
|