inky_web.util module
Utility functions
- inky_web.util.get_dot_env(dotenv_path: str | pathlib.Path = PosixPath('/home/runner/work/inky_pi/inky_pi/.env')) dict[str, str | float | int | bool] [source]
Get all settings and their values from the .env file, with defaults Settings
- Parameters:
dotenv_path (str) – .env file path
- Returns:
Dictionary of settings and their values
- Return type:
dict
- inky_web.util.set_dot_env(settings: dict[str, str], dotenv_path: str | pathlib.Path = PosixPath('/home/runner/work/inky_pi/inky_pi/.env')) None [source]
Set the environment variables to the .env file
- Parameters:
settings (dict[str, str]) – Dictionary containing settings and their values
dotenv_path (str) – .env file