A better CLI library
Project description
BetterCLI
A Python library for building better command-line interfaces with ease.
Installation
You can install BetterCLI using pip:
pip install bettercli
Example
from bettercli import CLI, pos_option, kw_option
cli = CLI()
@cli.command("greet")
def greet(name):
print(f"Hello {name}!")
@pos_option("name", str, length=1, default="World")
@cli.command("greet")
def greet(name):
print(f"Hello {name}!")
License
BetterCLI is licensed under the MIT License. See the LICENSE file for more information.
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
bettercli-0.1.0.tar.gz
(8.7 kB
view details)
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
bettercli-0.1.0-py3-none-any.whl
(10.2 kB
view details)
File details
Details for the file bettercli-0.1.0.tar.gz.
File metadata
- Download URL: bettercli-0.1.0.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7c2851fb22d4a724a31e78307678e79e871cff7705e75e48c34ba66085bb07a
|
|
| MD5 |
37ed4f3c08c5aeac68fc3fa6ec922a38
|
|
| BLAKE2b-256 |
d02c77cecab76cdb43ea65b10fb9b1e63b25685d225f44b6d3be7e46c12581fe
|
File details
Details for the file bettercli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: bettercli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d31e57555d09ca78c122bb8e9ffadc287dffb41ff96306be030043ff74dffd8
|
|
| MD5 |
ae2e32325aaf742e615ecc1625d74532
|
|
| BLAKE2b-256 |
1d34b3d8d7e7f64adaaa11dd6807cb1bfc1830f79622c0326f9bef02a4f9d2b7
|