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.1.tar.gz (1.9 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for appsettings-0.1.tar.gz
Algorithm Hash digest
SHA256 8f8fb6b4cd48e6ce173ad2be5445987b0397356f4277e7b2f16b02b0f6206f9a
MD5 535ed92c97478153a639737665d0b25a
BLAKE2b-256 56ac6c6ad480e3a177d5bcaaf9ec123e68a53cc184cf2886337531149c7401c2

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