Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • PyPI
  • Socket score

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:

  1. defaults
  2. config files (in the order defined)
  3. environment variables
  4. 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc