fastapi-socketio
Easily integrate socket.io with your FastAPI app.
What it is and what it does
fastapi-socketio is a lightweight wrapper that attaches Socket.IO event handling to a FastAPI application. It exposes Socket.IO functionality through the FastAPI app object or a standalone SocketManager instance, letting you decorate async functions to handle real-time events like client connections, custom messages, and disconnections. The package depends on fastapi and python-socketio to bridge the two frameworks.
The integration is straightforward: instantiate SocketManager with your FastAPI app, then use decorators to define event handlers. You can emit events back to clients and manage bidirectional communication alongside your standard HTTP endpoints. However, the project is archived and has not been updated since early 2023, so it may not reflect recent changes in either FastAPI or Socket.IO.
Use it for:
- Add real-time chat or messaging features to a FastAPI application without managing Socket.IO setup separately
- Build collaborative tools where multiple clients need to receive live updates from the server or other clients
- Create live dashboards or monitoring interfaces that push data to connected clients as events occur
- Implement notification systems that deliver events to specific users or broadcast to all connected sessions
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Integrates Socket.IO real-time bidirectional communication into FastAPI applications, allowing you to add WebSocket-based event handlers alongside HTTP routes.
Yes, if you need Socket.IO integration with FastAPI and can tolerate an unmaintained package. The low install friction and permissive license make it easy to adopt, and it has moderate popularity. However, the abandoned status since 2023 means you should verify compatibility with your target FastAPI and python-socketio versions, and be prepared to fork or patch if issues arise. Not recommended for production systems requiring active upstream support.
Install
fastapi-socketio on PyPI
pip
pip install fastapi-socketiouv
uv add fastapi-socketiopoetry
poetry add fastapi-socketioInstalling fastapi-socketio
Before you install
Low friction to install, but the project is archived and abandoned as of late 2023. The last commit was 2023-11-26 and no updates have been released since 2023-03-03. Consider whether you need active maintenance before adopting.
License in practice
Licensed under Apache License, Version 2.0, a permissive license that allows commercial and private use with minimal restrictions. You may use, modify, and distribute the package freely provided you include the license notice.
Quickstart
pip install fastapi-socketio
from fastapi import FastAPI
from fastapi_socketio import SocketManager
app = FastAPI()
socket_manager = SocketManager(app=app)
@app.sio.on('join')
async def handle_join(sid, *args, **kwargs):
await app.sio.emit('lobby', 'User joined')
Verify before relying
- Compatibility with recent versions of FastAPI and python-socketio, given the project's abandoned status since 2023
- Whether the package works with modern Python versions and async/await patterns in current FastAPI releases
- Active community forks or maintained alternatives if upstream issues arise
Package facts
| License | Apache License, Version 2.0 (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — fastapi, python-socketio |
| Maintenance | abandoned — 1,260 days since the last release |
| Last repo commit | (repository archived) |
| First released | |
| Downloads | 112,965/month — #12,355 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: fastapi_socketio-0.0.10-py3-none-any.whl
Tags
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
assemblyline-uiProvides REST APIs, WebSocket endpoints, and a…
permissive · top 15,000 on PyPI
codewords-clientA Python client library for the Codewords API…
permissive · top 5,000 on PyPI
Flask-SocketIOFlask-SocketIO adds real-time bidirectional…
permissive · top 5,000 on PyPI
python-socketioPython implementation of Socket.IO realtime…
permissive · top 1,000 on PyPI
python-engineioPython implementation of the Engine.IO realtime…
permissive · top 1,000 on PyPI
websocketProvides WebSocket protocol support for…
permissive · top 15,000 on PyPI
fastapi-injectorIntegrates the injector dependency-injection…
permissive · top 15,000 on PyPI
fastapi-limiterAdds request rate limiting to FastAPI routes…
permissive · top 5,000 on PyPI
fastapi-versioningAdds API versioning to FastAPI applications by…
permissive · top 15,000 on PyPI
uptime-kuma-api-v2Provides a Python client for the Uptime Kuma…
permissive · top 15,000 on PyPI