nerum

Simple to use, parser for command line arguments


Keywords
argparse, cli, library, nerum, python
License
MIT
Install
pip install nerum==0.1

Documentation

Nerum

Nerum is a library for automatically generating command line interfaces (CLIs) from python classes.

Example

from nerum import Nerum

class Calculator:

    def add(self, a, b):
        return a + b

    def sub(self, a, b):
        return a - b

    def mul(self, a, b):
        return a * b

    def div(self, a, b):
        return a / b

if __name__ == '__main__':
    Nerum(Calculator)
> python calculator.py add 5, 8
13
> python calculator.py add a=5, b=15
20