Library for writing command-line interfaces
Project description
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.
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
climux-0.1.1.tar.gz
(10.2 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
climux-0.1.1-py3-none-any.whl
(15.8 kB
view details)
File details
Details for the file climux-0.1.1.tar.gz.
File metadata
- Download URL: climux-0.1.1.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ada620866055c2c92c183d7ccd4541a3aed30fb1196e3d40d433b49016401af
|
|
| MD5 |
154606e01859ffa33844190d68d4689c
|
|
| BLAKE2b-256 |
1c20655aa43507b22e4e0d97e53083a876f857198337782dfee69a1bb1ba7704
|
File details
Details for the file climux-0.1.1-py3-none-any.whl.
File metadata
- Download URL: climux-0.1.1-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe0ea551f721195e9486c156cdf5753cfeb75fff42e922614decb248747fe150
|
|
| MD5 |
14690627d12825c915144a95149a7846
|
|
| BLAKE2b-256 |
bf169c1daf83dcf6cde015c92b6febaba2b7e2af01acca65f6bb2900e5031808
|