Skip to content

Build a command line interface with as little configuration as possible.

License

Notifications You must be signed in to change notification settings

mattdoug604/argsimple

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

argsimple

Argsimple is Python package for making clean and useful command line interfaces with as little configuration as humanly possible.

Some of the key features of the packages are:

  • Automatic generation of a help page
  • Easy declaration of mutually exclusive arguments
  • Lazy loading of arguments during runtime

How to install

Argsimple requires Python version 3.6 or higher.

Install using pip:

pip install argsimple

How to use

Here's a simple example:

import argsimple

argsimple.add("-w", "--word", help="a word to print")
argsimple.add("-c", "--count", type=int, help="print this many times")

print(argsimple.word * argsimple.count)
$ python my_scipt.py -w spam -c 3
spamspamspam

About

Build a command line interface with as little configuration as possible.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages