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 details)

Uploaded Source

File details

Details for the file appsettings-0.2.tar.gz.

File metadata

  • Download URL: appsettings-0.2.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for appsettings-0.2.tar.gz
Algorithm Hash digest
SHA256 5f62af32b3f2bd1d434c9a40b34de20bb013aba854a78636e03315349496c209
MD5 325c82c1cf0e8dfff41ef4f4e133e1b0
BLAKE2b-256 bee30b7b5ef4f368b9759bf4ce4e2ef69920daf648982526a3853a5d0857d85b

See more details on using hashes here.

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