Skip to main content

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)

Source distribution for py-config 1.0.2
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

Release history Release notifications | RSS feed

This release

1.0.2 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page