flucto-gmbh / heisskleber

MIT License
0 stars 1 forks source link

Refactor/everything #6

Closed pacjac closed 1 year ago

pacjac commented 1 year ago
  1. Removed "networks" module level and added get_subscriber, get_publisher, Subscriber, Publisher to top-level import (closes #4)
  2. Changed type of topics to str (closes #2)
  3. Added Serializable type = Union[str, int, float]
  4. Changed type of payload to dict[str, Serializable]
  5. Changed order of parameters of Publisher.send to
    send(self, data: dict[str, Serializable], topic: str) -> None
  6. Changed order of parameters of Subscriber.init to
    __init__(self, config: Any, topic: str | list[str])
  7. Added UDP subscriber and publisher