Commit Graph

9 Commits

Author SHA1 Message Date
Björn Otgaar
9c7e3cd0dc feat: initial setup of SUB/PUB ports with json
handling of sub messages and message queue to UI

ref: N25B-151.
2025-10-07 16:23:37 +02:00
6e7c78e888 docs: add comments 2025-09-27 10:36:59 +02:00
Kasper
116ca3dd10 chore: update dependencies
Removed the dependency on sse_starlette, as it was no longer needed.
2025-09-27 10:20:23 +02:00
Kasper
6b50ffba6a refactor: use StreamingResponse instead of EventSourceResponse
Use FastAPI's native `StreamingResponse` for less dependencies. This
initially didn't work because I didn't include the additional header
specifying the content type, which is an event stream.

ref: N25B-110
2025-09-27 10:18:39 +02:00
Kasper
fb9cbc5ab9 chore: add .gitignore
Uses a template for Python .gitignore files found
[here](https://github.com/github/gitignore/blob/main/Python.gitignore).
The only change from default is adding the .idea/ folder to the ignored
list (which might not be preferred, we will have to find out).
2025-09-27 10:06:12 +02:00
Kasper
349fcb5ac1 feat: add basic UI2CB and CB2UI communication
The Python application exposes an endpoint /message for the UI to send
messages to.

It also exposes an SSE endpoint /sse for the UI to listen to. Every
second, the CB sends the current time to UI.

ref: N25B-107
ref: N25B-110
2025-09-26 21:44:48 +02:00
Kasper
cc9bfbb777 chore: update dependencies 2025-09-26 21:42:35 +02:00
Kasper
028ec20043 chore: initialize UV repository 2025-09-26 20:36:06 +02:00
54b22d8023 Initial commit 2025-09-26 18:06:44 +00:00