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 example.py
for details.
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.0.5.tar.gz
(5.6 kB
view hashes)
Built Distribution
climux-0.0.5-py3-none-any.whl
(7.0 kB
view hashes)