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.11rc0.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for ems_config-0.0.11rc0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5d2ad7e02fa2ce905f68a2d850c19065796062aaf9e83ec8793089626030350 |
|
MD5 | c8e77f5555aefeb331a1256de639e23c |
|
BLAKE2b-256 | 95fc91227494c08efd631dafbd010bd3ffb5af3071acf1e2a30ef424412bfe50 |