cremalink.resources.api_config module
This module provides a function to load the API configuration from the embedded api_config.json resource file.
- cremalink.resources.api_config.load_api_config() dict[str, Any][source]
Loads the API configuration from the api_config.json resource file.
This function uses importlib.resources to access the JSON file.
The @lru_cache decorator memoizes the result, so the file is only read and parsed once, improving performance on subsequent calls.
- Returns:
A dictionary containing the API configuration data.