Skip to main content

A tiny helper to read the yaml file specified in the APP_SETTINGS_YAML env var and return an object with the parsed contents

Project description

In Velociraptor, application config is passed into apps by setting an APP_SETTINGS_YAML environment variable that contains the path to the app’s yaml-formatted settings file.

This module provides helpers for reading and accessing that configuration information.

Loading config:

import appsettings

my_config = appsettings.read()

Using config:

In [1]: import appsettings

In [2]: config = appsettings.read()

In [3]: config.DEBUG
Out[3]: True

In [4]: config.DATABASES.default.HOST
Out[4]: 'vdeploydb.paix.yougov.local'

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

appsettings-0.2.tar.gz (1.9 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