cremalink.resources package

This package contains static resources and configuration files for the cremalink library, such as API keys and language mappings.

It provides helper functions to access these resources in a way that is compatible with standard Python packaging.

cremalink.resources.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.

Submodules