Skip to main content

utils.config.information_file

InformationFile Objects

class InformationFile(abc.ABC)

Access information stored in a JSON file, supporting overrides via environment variables.

__init__

def __init__(*, info_file: str, env_prefix: str)

Arguments:

  • info_file - The JSON file to load the meta information from.
  • env_prefix - The prefix for environment variable overrides.

Raises:

  • ValueError - If the information file couldn't be loaded.