From 8e6049e210b151c550eee394ba90ea079da88c18 Mon Sep 17 00:00:00 2001 From: Jonas Linter Date: Mon, 20 Oct 2025 09:15:08 +0200 Subject: [PATCH] Added docstrings --- src/alpine_bits_python/api.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/alpine_bits_python/api.py b/src/alpine_bits_python/api.py index 1548358..4f84fce 100644 --- a/src/alpine_bits_python/api.py +++ b/src/alpine_bits_python/api.py @@ -1,3 +1,5 @@ +"""API endpoints for the form-data and the alpinebits server.""" + import asyncio import gzip import json @@ -81,6 +83,8 @@ class LanguageDetectionResponse(BaseModel): # --- Enhanced event dispatcher with hotel-specific routing --- class EventDispatcher: + """Simple event dispatcher for AlpineBits push requests.""" + def __init__(self): self.listeners = defaultdict(list) self.hotel_listeners = defaultdict(list) # hotel_code -> list of listeners