A Regular CLI
Project description
ARC: A Regular CLI
A tool for building declarative, 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 - Fully Extensible with custom middlewares, types, validators, parameter configurations, etc...
Docs
Quick Start
import arc
@arc.command
def hello(name: str):
"""My first arc program!"""
arc.print(f"Hello {name}!")
hello()
$ python hello.py Sean
Hello, Sean!
$ python hello.py --help
USAGE
hello.py [-h] [--] name
DESCRIPTION
My first arc program!
ARGUMENTS
name
OPTIONS
--help (-h) Displays this help message
Installation
$ pip install arc-cli
Clone for development
$ git clone https://github.com/seanrcollings/arc
$ poetry install
Tests
Tests are written with pytest
$ pytest
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-8.1.4a2.tar.gz
(67.5 kB
view hashes)
Built Distribution
arc_cli-8.1.4a2-py3-none-any.whl
(90.3 kB
view hashes)
Close
Hashes for arc_cli-8.1.4a2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21c65fd62f73214448ae56b506e3f0f47bd6f408c8381e3a82262e8c0dc66126 |
|
MD5 | 24386e0bbf085273ab6f1c8435603800 |
|
BLAKE2b-256 | d38a9aee8e74ebe2e1e361131c4ee7ed8965d4387daf054ca2427473eb0f830d |