Common configuration utilities for EMS projects
Project description
Create a config.py
file in your repository with contents like this,
from ems_config import parse_config
config = parse_config()
# Parse config into python variables (optional).
URL = config["DEFAULT"]["URL"]
along with an example file config.ini.example
that contains an example of the configuration,
[DEFAULT]
URL = http://google.com
You can then use the configuration in other python files like this,
from config import URL
print(URL) # do stuff with the URL
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
ems-config-0.0.10.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for ems_config-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdad9aaa62d2b0e021667f3672e72a54d1f4e97ff01940a133739041711d6ae7 |
|
MD5 | 390cb0300d752e8a185acf2dc2e10db1 |
|
BLAKE2b-256 | 7a397f981acc9379ee3502dca3407e1b53a448728ffa7f49d42392f77fda03c0 |