Ongoing
Televic CoCon Client
An asynchronous, typed Python client for the documented Televic CoCon REST API.
Author — developed for 3P Technologies S.r.l.
- Problem
- Provide one asynchronous interface for sending CoCon commands and receiving notifications without repeating transport logic in every application.
- Approach
- Long polling and command dispatch run independently, so incoming notifications do not block outgoing commands. Supported payloads become typed dataclasses, while retries, reconnection, and re-subscription stay inside the client.
- Contribution
- Built the asynchronous client, typed notification parser, and connection and command handling.
- Outcome
- A published library used internally as the foundation for CoCon Vote Monitor.
One boundary for CoCon
I built the client so application code can work with commands and typed events instead of managing long polling, retries, and reconnections itself. Its async with API handles setup and teardown, while subscriptions and callbacks keep notification handling straightforward.
The notification registry keeps support for new payload types in one place, and restored subscriptions let applications continue after a connection interruption. The same client later became the foundation for CoCon Vote Monitor.