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 | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py-config-1.0.2.tar.gz
(2.9 kB
view details)
File details
Details for the file py-config-1.0.2.tar.gz.
File metadata
- Download URL: py-config-1.0.2.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
625b3467299de47c50c4d28ec7de1eb886b0de09190d407d1d524fd37aee7a5c
|
|
| MD5 |
769fea9bb9e2e2c10ae23b081b58ade0
|
|
| BLAKE2b-256 |
494c43981c7752f2b08e1d0f5fc80710cf35a4abd5c8f40f93150c415cc88146
|