undr.json_index
#
Basic index files parsing.
Overview#
Functions#
Reads and validates a -index.json file. |
Attributes#
JSON schema for -index files. |
Module Contents#
- exception undr.json_index.InstallError(path: pathlib.Path)#
Bases:
FileNotFoundError
Raised if the target path does not exist.
- Parameters:
path (pathlib.Path) – The path that does not exist.
- undr.json_index.load(path: pathlib.Path) dict[str, Any] #
Reads and validates a -index.json file.
This function caches the parsed contents of up to
undr.constants.LRU_CACHE_MAXSIZE
files.- Parameters:
path (pathlib.Path) – The path of the file to read.
- Raises:
InstallError – if the file does not exist.
jsonschema_rs.ValidationError – if validation fails.
- Returns:
Parsed JSON file contents.
- Return type:
- undr.json_index.schema#
JSON schema for -index files.