diff options
Diffstat (limited to 'tools/cru-py/cru/property.py')
-rw-r--r-- | tools/cru-py/cru/property.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/cru-py/cru/property.py b/tools/cru-py/cru/property.py new file mode 100644 index 0000000..9549731 --- /dev/null +++ b/tools/cru-py/cru/property.py @@ -0,0 +1,24 @@ +import json +from typing import Any + + +class PropertyItem: + def __init__(self, value: Any): + self._value = value + + @property + def value(self) -> Any: + return self._value + + @value.setter + def value(self, value: Any): + self._value = value + + +class PropertyTreeSection: + def __init__(self, data: dict[str, Any] | None = None) -> None: + self._data = data or {} + +class PropertyTree: + def __init__(self, data: dict[str, Any] | None = None) -> None: + self._data = data or {}
\ No newline at end of file |