setParser¶
Provide utilities to parse and read properties from set files.
- lvpyioTools.setParser.read_property(key: str, value: str)[source]¶
Read a property from the set file and convert it to the appropriate type and property key.
- Parameters:
- Returns:
A tuple containing the property key as a
SetPropertyenum member (orNoneif unknown) and the converted property value (orNoneif conversion failed).- Return type:
tuple[SetProperty | None, Any]
- lvpyioTools.setParser.read(file: Path) dict[SetProperty, Any][source]¶
Read the contents of a set file and extract its properties.
- Parameters:
file (Path) – The path to the file to read.
- Returns:
A dictionary containing the set properties and their values.
- Return type:
dict[SetProperty, Any]