Skip to main content

Decorators and wrapper for easily define script's arguments within functions and classes. just defining function's args.

Project description


Argparseinator is a silly, but useful, thing that permit you to easily add argparse’s arguments and options to your script directly within functions and classes with the use of some decorators.


pip install argparseinator

Quick example ( module)

Say ciao script.

__version__ = "1.2.3"

from argparseinator import ArgParseInator, arg

def sayciao(name):
    I will say ciao.
    print "Ciao", name

if __name__ == '__main__':


$ python --help

will output:

usage: [-h] [-v] name

Say ciao script.

    I will say ciao.

positional arguments:

optional arguments:
  -h, --help     show this help message and exit
  -v, --version  show program's version number and exit


$ python --version

will output: 1.2.3


$ python luca

will output:

Ciao luca


See readthedocs

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
ArgParseInator-1.0.20-py2.py3-none-any.whl (22.4 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Apr 26, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page