sidelkin1 / sidelkin1/ppd_forms
Отслеживание статуса задачи на базе Server-sent events (SSE)
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Проблема
Возможно использование WebSocket избыточно. Как вариант, добавить отслеживание через SSE.
Возможное решение
Есть плагин для FastAPI sse-starlette.
Примеров использования много:
- Server-Sent Events for Push-Notifications on FastAPI
- server-sent-events-using-fastapi-and-reactjs
- How To Stream JSON Data Using Server-Sent Events And FastAPI In Python Over HTTP?
- How to integrate SSE(Server Sent Events)in FastAPI using RabbitMQ and EdgeDB
- Server sent events with Python FastAPI
Возможные недостатки
Проблемы при тестировании: здесь и Unfortunately, httpx.TestClient is broken for sse.
Предлагают использовать async-asgi-testclient или httpx-sse.
На фронтенде нужно реализовать async/await версию EventSource. Как вариант, здесь.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No repository files or tests are named. Start by locating the current WebSocket task-status flow and the FastAPI and frontend entry points, then define the SSE endpoint, event-handling behavior, and testing approach. Done should include agreed backend and frontend behavior with tests that cover the status stream.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- fastapi, python
- Domain
- api, frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100