Keepass outline

This commit is contained in:
Piotr Dec 2025-10-08 00:05:13 +02:00
parent b18488a6d3
commit 162c0adf13
Signed by: stawros
GPG key ID: 74B18A3F0F1E99C0
9 changed files with 115 additions and 3 deletions

11
app/util/dicts.py Normal file
View file

@ -0,0 +1,11 @@
from types import SimpleNamespace
class NestedNamespace(SimpleNamespace):
def __init__(self, dictionary, **kwargs):
super().__init__(**kwargs)
for key, value in dictionary.items():
if isinstance(value, dict):
self.__setattr__(key, NestedNamespace(value))
else:
self.__setattr__(key, value)