Skip to content

Simple Command Line parameter processing using Json formatted text file as input for any application

Notifications You must be signed in to change notification settings

crazybusy/simple_parameters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple parsing of arguments/parameters supplied on the command line

Allows to create json file with details of the arguments/parameters available on the command line for any application. It then handles the parsing of these parameters by setting the required flags which you can directly consume in your application.

Helps skip the step of having to manually parse for parameters in every application

Get started by creating an object of SimpleParameters by creating its object

params = simple_parameters.SimpleParser('path to configuration files') options, args = params.resolve_parameters(sys.argv)

Now the command line swtiches specifed in the json file are available in the options list and the positional parameters are available as args. It also generates a help file to describe the parameters available for your application. Try using -h option

There are some new features in the Projects tab TODO's if anyone is interested in picking these up.

About

Simple Command Line parameter processing using Json formatted text file as input for any application

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages