[ Web Proxy ]
URL:
Viewing: https://pypi.python.org/project/python-socketio/1.5.1/ [Back]  [Original]

python-socketio PyPI Skip to main content Switch to mobile version
PyPI [PyPI]
Type '/' to search projects:
https://travis-ci.org/miguelgrinberg/python-socketio.svg?branch=master [https://travis-ci.org/miguelgrinberg/python-socketio.svg?branch=master]

Python implementation of the Socket.IO realtime server.

Features

  • Fully compatible with the Javascript, Swift, C++ and Java official Socket.IO clients, plus any third party clients that comply with the Socket.IO specification.

  • Compatible with Python 2.7 and Python 3.3+.

  • Supports large number of clients even on modest hardware when used with an asynchronous server based on eventlet or gevent. For development and testing, any WSGI complaint multi-threaded server can be used.

  • Includes a WSGI middleware that integrates Socket.IO traffic with standard WSGI applications.

  • Broadcasting of messages to all connected clients, or to subsets of them assigned to rooms.

  • Optional support for multiple servers, connected through a messaging queue such as Redis or RabbitMQ.

  • Send messages to clients from external processes, such as Celery workers or auxiliary scripts.

  • Event-based architecture implemented with decorators that hides the details of the protocol.

  • Support for HTTP long-polling and WebSocket transports.

  • Support for XHR2 and XHR browsers.

  • Support for text and binary messages.

  • Support for gzip and deflate HTTP compression.

  • Configurable CORS responses, to avoid cross-origin problems with browsers.

Example

The following application uses Flask to serve the HTML/Javascript to the client:

import socketio
import eventlet
import eventlet.wsgi
from flask import Flask, render_template

sio = socketio.Server()
app = Flask(__name__)

@app.route('/')
def index():
    """Serve the client-side application."""
    return render_template('index.html')

@sio.on('connect', namespace='/chat')
def connect(sid, environ):
    print("connect ", sid)

@sio.on('chat message', namespace='/chat')
def message(sid, data):
    print("message ", data)
    sio.emit('reply', room=sid)

@sio.on('disconnect', namespace='/chat')
def disconnect(sid):
    print('disconnect ', sid)

if __name__ == '__main__':
    # wrap Flask application with engineio's middleware
    app = socketio.Middleware(sio, app)

    # deploy as an eventlet WSGI server
    eventlet.wsgi.server(eventlet.listen(('', 8000)), app)

Resources

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-socketio-1.5.1.tar.gz (14.7 kB view details)

Uploaded Sep 4, 2016 Source

File details

Details for the file python-socketio-1.5.1.tar.gz.

File metadata

File hashes

Hashes for python-socketio-1.5.1.tar.gz
Algorithm Hash digest
SHA256 1b2ec154517c174b319a6fc19d8a2b6bd195ae02787ec1ebfa92f18a56750b15 Copy
MD5 4af8f0d9a919100e29a9e15c97de7a20 Copy
BLAKE2b-256 1a4bc7f3eff3bc0635dc574f5e2d5eb9d10eae3b3d2f6801cb87ff196e14e951 Copy

See more details on using hashes here.

Release history Release notifications | RSS feed

[]

5.16.4

Aug 6, 2026 2 files

[]

5.16.3

Jun 15, 2026 2 files

[]

5.16.2

May 21, 2026 2 files

[]

5.16.1

Feb 6, 2026 2 files

[]

5.16.0

Dec 24, 2025 2 files

[]

5.15.1

Dec 16, 2025 2 files

[]

5.15.0

Nov 22, 2025 2 files

[]

5.14.3

Oct 29, 2025 2 files

[]

5.14.2

Oct 15, 2025 2 files

[]

5.14.1

Oct 2, 2025 2 files

[]

5.14.0

Sep 30, 2025 2 files

[]

5.13.0

Apr 12, 2025 2 files

[]

5.12.1

Dec 29, 2024 2 files

[]

5.12.0

Dec 18, 2024 2 files

[]

5.11.4

Sep 2, 2024 2 files

[]

5.11.3

Jun 19, 2024 2 files

[]

5.11.2

Mar 24, 2024 2 files

[]

5.11.1

Feb 5, 2024 2 files

[]

5.11.0

Jan 6, 2024 2 files

[]

5.10.0

Oct 15, 2023 2 files

[]

5.9.0

Sep 3, 2023 2 files

[]

5.8.0

Mar 16, 2023 2 files

[]

5.7.2

Oct 17, 2022 2 files

[]

5.7.1

Jul 15, 2022 2 files

[]

5.7.0

Jul 4, 2022 2 files

[]

5.6.0

Apr 24, 2022 2 files

[]

5.5.2

Feb 15, 2022 2 files

[]

5.5.1

Jan 11, 2022 2 files

[]

5.5.0

Nov 14, 2021 2 files

[]

5.4.1

Oct 14, 2021 2 files

[]

5.4.0

Aug 1, 2021 2 files

[]

5.3.0

May 15, 2021 2 files

[]

5.2.1

Apr 18, 2021 2 files

[]

5.2.0

Apr 16, 2021 2 files

[]

5.1.0

Mar 10, 2021 2 files

[]

5.0.4

Dec 25, 2020 2 files

[]

5.0.3

Dec 14, 2020 2 files

[]

5.0.2

Dec 12, 2020 2 files

[]

5.0.1

Dec 8, 2020 2 files

[]

5.0.0

Dec 7, 2020 2 files

[]

4.6.1

Nov 28, 2020 2 files

[]

4.6.0

May 23, 2020 2 files

[]

4.5.1

Mar 22, 2020 2 files

[]

4.5.0

Mar 14, 2020 2 files

[]

4.4.0

Nov 24, 2019 2 files

[]

4.3.1

Aug 5, 2019 2 files

[]

4.3.0

Jul 29, 2019 2 files

[]

4.2.1

Jul 27, 2019 2 files

[]

4.2.0

Jun 29, 2019 2 files

[]

4.1.0

Jun 3, 2019 2 files

[]

4.0.3

May 25, 2019 2 files

[]

4.0.2

May 19, 2019 2 files

[]

4.0.1

Apr 26, 2019 2 files

[]

4.0.0

Mar 9, 2019 2 files

[]

3.1.2

Jan 30, 2019 2 files

[]

3.1.1

Jan 9, 2019 2 files

[]

3.1.0

Jan 3, 2019 2 files

[]

3.0.1

Jan 1, 2019 2 files

[]

3.0.0

Dec 22, 2018 2 files

[]

2.1.2

Dec 10, 2018 2 files

[]

2.1.1

Dec 5, 2018 2 files

[]

2.1.0

Nov 26, 2018 2 files

[]

2.0.0

Jun 28, 2018 2 files

[]

1.9.0

Mar 7, 2018 2 files

[]

1.8.4

Dec 11, 2017 2 files

[]

1.8.3

Nov 13, 2017 2 files

[]

1.8.2

Nov 13, 2017 1 file

[]

1.8.1

Oct 1, 2017 1 file

[]

1.8.0

Jul 26, 2017 1 file

[]

1.7.7

Jul 20, 2017 1 file

[]

1.7.6

Jul 2, 2017 1 file

[]

1.7.5

May 30, 2017 1 file

[]

1.7.4

Mar 28, 2017 1 file

[]

1.7.3

Mar 22, 2017 1 file

[]

1.7.2

Mar 8, 2017 1 file

[]

1.7.1

Feb 15, 2017 1 file

[]

1.7.0

Feb 12, 2017 1 file

[]

1.6.3

Jan 23, 2017 1 file

[]

1.6.2

Jan 3, 2017 1 file

[]

1.6.1

Nov 26, 2016 1 file

[]

1.6.0

Sep 25, 2016 1 file

This release
[]

1.5.1 This release

Sep 4, 2016 1 file

[]

1.5.0

Aug 26, 2016 1 file

[]

1.4.4

Aug 5, 2016 1 file

[]

1.4.3

Jul 29, 2016 1 file

[]

1.4.2

Jul 12, 2016 1 file

[]

1.4.1

Jun 28, 2016 1 file

[]

1.4

Jun 28, 2016 1 file

[]

1.3

May 15, 2016 1 file

[]

1.2

Mar 21, 2016 1 file

[]

1.1

Mar 6, 2016 1 file

[]

1.0

Jan 17, 2016 1 file

[]

0.9.2

Jan 16, 2016 1 file

[]

0.9.1

Jan 10, 2016 1 file

[]

0.9.0

Jan 10, 2016 1 file

[]

0.8.2

Jan 1, 2016 1 file

[]

0.8.1

Dec 14, 2015 1 file

[]

0.8.0

Dec 14, 2015 1 file

[]

0.7.0

Nov 22, 2015 1 file

[]

0.6.1

Oct 31, 2015 1 file

[]

0.6.0

Oct 17, 2015 1 file

[]

0.5.2

Sep 22, 2015 1 file

[]

0.5.1

Sep 16, 2015 1 file

[]

0.5.0

Sep 2, 2015 1 file

[]

0.4.2

Aug 23, 2015 1 file

[]

0.4.1

Aug 20, 2015 1 file

[]

0.4.0

Aug 8, 2015 1 file

[]

0.3.0

Jul 27, 2015 1 file

[]

0.2.0

Jul 20, 2015 1 file

[]

0.1.0

Jul 15, 2015 1 file

[] Anthropic, PBC Visionary sponsor [] Bloomberg Visionary sponsor [] Hudson River Trading Visionary sponsor [] Meta Visionary sponsor [] NVIDIA Visionary sponsor [] Microsoft Sustainability sponsor [] Depot Continuous Integration [] AWS Cloud computing and Security Sponsor [] Datadog Monitoring [] Fastly CDN [] Google Download Analytics [] Sentry Error logging [] StatusPage Status page

Web Proxy Viewer  |  New URL  |  Original Page