Skip to main content

A python module for env variable and config file management.

Project description

config-store

A python module for env variable and config file management. Inspired from webpack configuration management, config-store support multi-stage configs merger. For information security, separation of sensitive settings are also provided.

Installation

pip install configstore

Usage

import configstore
configstore.connect($CONFIG_FOLDER)
print(configstore.get("foo", default_value="not found QQ"))
# >>> 'bar'

Config Setting

CONFIG_FOLDER
- secret
    - secret.default.json
    - secret.dev.json 
    - secret.pd.json
- config.default.json [requried]
- config.dev.json 
- config.pd.json 

Config Read Order

  1. ENV variable
  2. stage config
  3. default config
  4. default value

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

config-store-0.0.4.tar.gz (2.2 kB view hashes)

Uploaded Source

Built Distribution

config_store-0.0.4-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page