Flask-SocketIO
Socket.IO integration for Flask applications.
Installation
You can install this package as usual with pip:
pip install flask-socketio
Example
from flask import Flask, render_template
from flask_socketio import SocketIO, emit
app = Flask(__name__)
app.config['SECRET_KEY'] = 'secret!'
socketio = SocketIO(app)
@app.route('/')
def index():
return render_template('index.html')
@socketio.event
def my_event(message):
emit('my response', {'data': 'got it!'})
if __name__ == '__main__':
socketio.run(app)
Resources
Sponsor this project
This project relies on contributions from its users. If you benefit from it please consider making a single or ongoing monetary contribution in one of the following platforms:
Thank you!
Metadata
Release files for Flask-SocketIO 5.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| flask_socketio-5.7.0.tar.gz | 38.6 kB | Without provenance | Details for flask_socketio-5.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flask_socketio-5.7.0-py3-none-any.whl | Python 3 | none | any | Details for flask_socketio-5.7.0-py3-none-any.whl |
Total release size: 57.5 kB
Release files / flask_socketio-5.7.0.tar.gz
| Download URL | flask_socketio-5.7.0.tar.gz |
|---|---|
| Size | 38.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aa01e50106962808dadc245407c3b6354295b1526e888bd154dc7ff4801a7c88
|
|
BLAKE2b-256 checksum How to use checksums |
5e10715eacc5f5414346f75a4f27f1be4b0a1b4ce5f834ba3c0bb95b7c02a2e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.0rc3
|
Release files / flask_socketio-5.7.0-py3-none-any.whl
| Download URL | flask_socketio-5.7.0-py3-none-any.whl |
|---|---|
| Size | 18.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2e399a4a747c6248baec188d3b1294081fda8a85597d11815a2219836bafcbad
|
|
BLAKE2b-256 checksum How to use checksums |
354079ed0a2086b6eb0d310dca81e4813b8e385a33b2938df83702e7036a6905
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.0rc3
|
Security for Flask-SocketIO 5.7.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.