Skip to content

mattpaletta/configparser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

configparser

Simplified runtime configs for Python

Build Status

Examples can be seen in examples/

To use configparser: pip install config-parser

You can call it in your program using:

p = Parser(argparse_file = "argparse.yml").get()

The paramters are:

  • argparse_file: your argparse definitions, layed out in JSON or yaml files.
  • config_file_key: a string to the optional config file key in the argparse file to use to allow the user to run custom runtime config files.
  • environ_key_mapping: a dictionary containing the config file key to the environment key (bash environment)

The arguments will be applied on top of each other in the following order:

  1. defaults
  2. config files (in the order defined)
  3. environment variables
  4. runtime

This order cannot be modified at this time.

About

Simplified runtime configs for Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published