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.

Files for appsettings, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size appsettings-0.2.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page