Compare commits

...

2 commits

3 changed files with 13 additions and 1 deletions

View file

@ -1,3 +1,9 @@
## 1.2.0a11 (2025-02-17)
### Fix
- add get remove properties
## 1.2.0a10 (2025-02-17)
### Fix

View file

@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
[project]
name = "rougail"
version = "1.2.0a10"
version = "1.2.0a11"
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
readme = "README.md"
description = "A consistency handling system that was initially designed in the configuration management"

View file

@ -84,6 +84,12 @@ class Property:
) -> None:
self._properties.setdefault(path, {})[property_] = value
def get(self, path: str) -> None:
return self._properties.setdefault(path, {})
def remove(self, path: str, property_: str) -> None:
del self._properties[path][property_]
def __getitem__(
self,
path: str,