Common configuration utilities for EMS projects
Project description
How to?
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["URL"]
along with an example file config.ini.example
that contains an example of the configuration,
[project]
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.2.tar.gz
(1.5 kB
view hashes)