aboutsummaryrefslogtreecommitdiffstats
path: root/app/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/utils.py')
-rw-r--r--app/utils.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/utils.py b/app/utils.py
index ac07bf7..d513ae9 100644
--- a/app/utils.py
+++ b/app/utils.py
@@ -1,5 +1,16 @@
+from app.Item import Item
+
+
def get_param(key: str, params: dict[str, str]) -> str:
if key not in params:
raise Exception(f"no {key} field in config entry: " + str(params))
return params[key]
+
+
+def item_to_dict(item: Item) -> dict[str, str]:
+ raise NotImplemented()
+
+
+def dict_to_item(d: dict[str, str]) -> Item:
+ raise NotImplemented()