Skip to main content

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


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.7.1.tar.gz (68.3 kB view details)

Uploaded Source

Built Distribution

arc_cli-8.7.1-py3-none-any.whl (91.9 kB view details)

Uploaded Python 3

File details

Details for the file arc_cli-8.7.1.tar.gz.

File metadata

  • Download URL: arc_cli-8.7.1.tar.gz
  • Upload date:
  • Size: 68.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/24.4.0

File hashes

Hashes for arc_cli-8.7.1.tar.gz
Algorithm Hash digest
SHA256 43cd9561794b261db6bc41e5eaa93fdb534035f6d248499c3375181c17cb7dfb
MD5 0fb4b320c9539e95d5471cf168626ada
BLAKE2b-256 4f7b0c9e2a65ff1857287e0767107c32f26a9ba0cb329f8db3fba4316286b5a5

See more details on using hashes here.

File details

Details for the file arc_cli-8.7.1-py3-none-any.whl.

File metadata

  • Download URL: arc_cli-8.7.1-py3-none-any.whl
  • Upload date:
  • Size: 91.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/24.4.0

File hashes

Hashes for arc_cli-8.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 05a91d55d2e381e7753b6e10d4df93bce6bdf654aa7d9318a87d4b374a09a7f6
MD5 80a578187ca12ad3ac46ebb6517a0760
BLAKE2b-256 79506eb05196f109a80c24816eb74c4dca0b21dec28328aa9691bb0c1ff5b386

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page