Skip to main content

Configuration manager for python projects

Project description

Config Class

  • a class for managing project variables based upon bash env variables
  • recommended to be used with .export files Jon Morehouse Scripts

Sample Usage

from config import Config

# load variables from env
Config.load_from_list(["PATH", "PWD", "ENV"])

# load an exports file of the following format
# ENV=PRODUCTION
# MODULE=TEST
Config.load_from_path(".test.exports")

# load yaml/json file
Config.load_from_path("config.json")
Config.load_from_path("config.yml")

# access config
print Config.PATH

Project details


Release history Release notifications

Download files

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

Files for py-config, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size py-config-1.0.2.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page