Python Utilities
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
Metadata
Release files for py-config 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| py-config-1.0.2.tar.gz | 2.9 kB | Details |
Release files / py-config-1.0.2.tar.gz
| Download URL | py-config-1.0.2.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
625b3467299de47c50c4d28ec7de1eb886b0de09190d407d1d524fd37aee7a5c
|
|
BLAKE2b-256 checksum How to use checksums |
494c43981c7752f2b08e1d0f5fc80710cf35a4abd5c8f40f93150c415cc88146
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |