ninjecto.plugins.namespaces.env

Namespace plugin to access environment variables.

Functions

ninjecto.plugins.namespaces.env.namespace_env(config)

Fetch data from the environment.

This function will filter the environment variables names that are considered “unsafe” to be represented as a Python variable. This is done to avoid crashing the code and the templates with weird environment variable names. This behavior can be disabled by setting ninjecto.namespace.env.safe to False.

Parameters
config (dict) – Plugin configuration, if any.
Returns
An object with information from the environment.
Return type
Namespace