A Regular CLI
Project description
ARC: A Regular CLI
A tool for building declartive, and highly extendable CLI systems for Python 3.9
ARC Features
- Command line arguments based on python type hints
- Arbitrary command nesting
- Automatic
--help
documentation - Dynamic command loading at runtime
Docs
Quick Start
import arc
@arc.command()
def hello(name: str):
"""My first arc program!"""
print(f"Hello {name}!")
hello()
$ python example.py hello Sean
Hello, Sean!
$ python example.py --help
USAGE
manage.py [--help] [--] <name>
DESCRIPTION
My first arc program!
ARGUMENTS
name
OPTIONS
--help (-h) Shows help documentation
Installation
$ pip install arc-cli
Clone for development
$ git clone https://github.com/seanrcollings/arc
$ poetry install
Tests
Tests are written with pytest
$ pytest
Attribution
Much of arc's architecture is based on click, though no code is lifted directly from click's source.
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
arc-cli-6.3.0b1.tar.gz
(52.3 kB
view hashes)
Built Distribution
arc_cli-6.3.0b1-py3-none-any.whl
(67.9 kB
view hashes)
Close
Hashes for arc_cli-6.3.0b1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b62ba572ff2b0c4d49ba577058b2a6f6c16cacc29708e6b905dee6111f37604 |
|
MD5 | 25d7306c939e6dca05b28223fbc42fab |
|
BLAKE2b-256 | 0ab1fca1a13d264f5c88f10dccd6941a99f288eb9c23bd5ee7ad5d3e99d74cca |