/arrg

A Python library for building modular command-line applications

Primary LanguagePythonCreative Commons Zero v1.0 UniversalCC0-1.0

arrg

arrg is a Python library for building modular command-line applications. Heavily inspired by the Rust crate structopt.

Installation

Simply install the package via the Python package manager pip.

$ pip install arrg

Usage

Below is a very simple example demonstrating the usage of the app decorator.

from arrg import app

@app
class Arguments:
  input: str

  def run(self):
    print(self.input)

if __name__ == '__main__':
  Arguments.from_args().run()