Climux
Library for writing command-line interfaces
Installation
pip install climux
Usage
from climux import Cli, Command
def hello(name="stranger"):
"""Say hello."""
return f"Hello, {name}!"
cli = Cli("hello", description="Hello world app.")
cli.add(Command(hello))
cli.run()
See examples.
Features
- Subcommands
- Generate CLI help and options from function signature and docstring
- Automatic dispatch to command handling functions
License
MIT.
Metadata
Release files for climux 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| climux-0.1.1.tar.gz | 10.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| climux-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.1 kB
Release files / climux-0.1.1.tar.gz
| Download URL | climux-0.1.1.tar.gz |
|---|---|
| Size | 10.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2ada620866055c2c92c183d7ccd4541a3aed30fb1196e3d40d433b49016401af
|
|
BLAKE2b-256 checksum How to use checksums |
1c20655aa43507b22e4e0d97e53083a876f857198337782dfee69a1bb1ba7704
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
|
Release files / climux-0.1.1-py3-none-any.whl
| Download URL | climux-0.1.1-py3-none-any.whl |
|---|---|
| Size | 15.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fe0ea551f721195e9486c156cdf5753cfeb75fff42e922614decb248747fe150
|
|
BLAKE2b-256 checksum How to use checksums |
bf169c1daf83dcf6cde015c92b6febaba2b7e2af01acca65f6bb2900e5031808
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
|