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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file config-store-0.0.4.tar.gz.

File metadata

  • Download URL: config-store-0.0.4.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.1

File hashes

Hashes for config-store-0.0.4.tar.gz
Algorithm Hash digest
SHA256 eda951e8d87e0775f26293071ed0fca2a4d632bf359c8f742ce1ccc4af3cf022
MD5 993aed9db3f0045b684f976de1a1c783
BLAKE2b-256 998df0fe20c26204ca0f3381eadafe5c321d595c4db967f53c0ae7a23b42b7b7

See more details on using hashes here.

File details

Details for the file config_store-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: config_store-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.1

File hashes

Hashes for config_store-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d94025311c502162e4263a81f0c09e77f3b3b2ba45a46bf6a45d390252953717
MD5 ae1368fcbfe15f6de13e89b7eacbacc4
BLAKE2b-256 78f1d17d1b4faa0fb33cd386441bfa331f13decf5e83a3882e38737b70dd98e4

See more details on using hashes here.

Supported by

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