You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

config-parser

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

config-parser

Configuration library wrappers

0.0.1
pipPyPI
Maintainers
1

configparser

Simplified runtime configs for Python

Build Status

Examples can be seen in examples/

To use configparser: pip install git+git://github.com/mattpaletta/configparser.git

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:

  • defaults
  • config files (in the order defined)
  • environment variables
  • runtime

This order cannot be modified at this time.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts