foundry_dev_tools.utils.compat module#
This module contains utility functions for compatibility between the v1 and v2 config.
- foundry_dev_tools.utils.compat.v1_to_v2_config_dict(config, env=True, get_config=True)[source]#
Converts the config argument to the new v2 config.
- foundry_dev_tools.utils.compat.v1_to_v2_config(config)[source]#
Converts a version 1 configuration to a version 2 configuration.
- Parameters:
config (dict) – The version 1 configuration to be converted.
- Returns:
A tuple containing the TokenProvider and the converted configuration.
- Return type:
- Raises:
AttributeError – If the TokenProvider cannot be created due to missing jwt or client_id(/client_secret).