Package for creating CLI's with ease.
Project description
ARC
A tool for building declarative, and highly extendable CLI systems for Python 3.10+
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...
Links
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.6.3.tar.gz
(69.8 kB
view details)
Built Distribution
arc_cli-8.6.3-py3-none-any.whl
(94.2 kB
view details)
File details
Details for the file arc_cli-8.6.3.tar.gz
.
File metadata
- Download URL: arc_cli-8.6.3.tar.gz
- Upload date:
- Size: 69.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.8.18 Linux/6.2.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36bc868d6d51a14c88851e00b1e5a27cef40a7cd015ac1a2be617d90f9490bb5 |
|
MD5 | 8c454793062d572adf9b58ba8b2cef78 |
|
BLAKE2b-256 | 866c88d69cb7845f3b70bcb965a21839b11cd8f77652c7ab69dd37aa01f74a5f |
File details
Details for the file arc_cli-8.6.3-py3-none-any.whl
.
File metadata
- Download URL: arc_cli-8.6.3-py3-none-any.whl
- Upload date:
- Size: 94.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.8.18 Linux/6.2.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8955ed6eeeedaa2032f8f9ef0dcdb8aa2632ea08aa91a0d6e1b8cd1f4088bf11 |
|
MD5 | 863eeede3603db3f043278c18c6a97cb |
|
BLAKE2b-256 | 367417b420a644d0ebe06845decbea30ca4dba9364a67e017ad1cfa60a5fe377 |