cremalink.devices package
This module handles the discovery and loading of device definition files, referred to as “device maps.”
- exception cremalink.devices.DeviceMapNotFoundError[source]
Bases:
FileNotFoundErrorCustom exception raised when a specific device map cannot be found.
- cremalink.devices.device_map(model_id: str) str[source]
Finds the absolute path to a device map file for a given model ID.
This function handles packaged resources, extracting them to a temporary directory if they are not directly accessible on the filesystem.
- Parameters:
model_id – The model ID of the device.
- Returns:
The absolute path to the device map JSON file as a string.
- Raises:
DeviceMapNotFoundError – If the map for the given model ID doesn’t exist.