Skip to main content

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


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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page