summaryrefslogtreecommitdiff
path: root/data-collection/components/subscriptions.py
diff options
context:
space:
mode:
authorA Farzat <a@farzat.xyz>2025-08-18 12:40:48 +0300
committerA Farzat <a@farzat.xyz>2025-08-18 12:40:48 +0300
commit9de258844b128c38ce523aa4e3483adf33dc7bb2 (patch)
treeec92e9b7adf84e0c01ded91038821c222b333d9d /data-collection/components/subscriptions.py
parentd73f2fd449533f054ac2b17ea7597c9114114b69 (diff)
downloadcsca5028-9de258844b128c38ce523aa4e3483adf33dc7bb2.tar.gz
csca5028-9de258844b128c38ce523aa4e3483adf33dc7bb2.zip
Define a basic prototype for a subscription
Diffstat (limited to 'data-collection/components/subscriptions.py')
-rw-r--r--data-collection/components/subscriptions.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/data-collection/components/subscriptions.py b/data-collection/components/subscriptions.py
new file mode 100644
index 0000000..31a0500
--- /dev/null
+++ b/data-collection/components/subscriptions.py
@@ -0,0 +1,8 @@
+from types import TypedDict
+from datetime import datetime
+
+class SubscriptionDict(TypedDict):
+ id: str
+ link: str
+ time_between_fetches: float # In hours.
+ last_update: datetime