System Utilities

System Utilities

Access system environment variables and configuration:

Functions

  • sandman.system.getenv() - Gets an environment variable, only variable names prefixed with SANDMAN_ are allowed for now (os.getenv is sandboxed). Sandman will also look for a file ‘.env' for a .env file.

sandman.system.getenv

Type: Function
Description: Gets an environment variable, only variable names prefixed with SANDMAN_ are allowed for now (os.getenv is sandboxed). Sandman will also look for a file ‘.env' for a .env file.

Usage

value = sandman.system.getenv("SANDMAN_API_SECRET")

Parameters

  • var_name: string

Returns

  • value: string

Examples

-- Basic usage
value = sandman.system.getenv("SANDMAN_API_SECRET")