Socket.IO Redis Emitter
This is an asynchronous Redis-based Socket.IO emitter for Python.
Installation
pip install socket.io-redis-emitter
# or
poetry add socket.io-redis-emitter
Features
- High quality, typed and modern Python codebase
- Clean, concise and Pythonic API
- Uses redis as a Redis client
- Supports namespaces, rooms and regular Socket.IO message emitting
import redis
from socketio_emitter import Emitter
client = redis.Redis(...)
emitter = Emitter(client=client)
async with emitter.namespace("/nsp") as nsp:
async with nsp.rooms("room1", "room2") as clients:
await clients.emit("machineStatus", {"status": "ok"})
- Remote requests to join, leave rooms or to disconnect
import redis
from socketio_emitter import Emitter
client = redis.Redis(...)
emitter = Emitter(client=client)
async with emitter.namespace("/nsp") as nsp:
async with nsp.rooms("room1", "room2") as clients:
await clients.join("room3")
# await clients.leave("room3")
# await clients.disconnect()
Metadata
Release files for socket.io-redis-emitter 0.0.3
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 |
|---|---|---|---|---|
| socket_io_redis_emitter-0.0.3.tar.gz | 4.3 kB | Without provenance | Details for socket_io_redis_emitter-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| socket_io_redis_emitter-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for socket_io_redis_emitter-0.0.3-py3-none-any.whl |
Total release size: 9.8 kB
Release files / socket_io_redis_emitter-0.0.3.tar.gz
| Download URL | socket_io_redis_emitter-0.0.3.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a18d0f089d9aadcea5b7befca60624419940589e3e8478987e701e610028b1f0
|
|
BLAKE2b-256 checksum How to use checksums |
6fa00ae2bd74113ff4a740a4d3c3024b08661caa016d7657091d588cd00ff67a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.3 Linux/6.5.0-1021-azure
|
Release files / socket_io_redis_emitter-0.0.3-py3-none-any.whl
| Download URL | socket_io_redis_emitter-0.0.3-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
084f9d49d3867cd06ef4c8bfbc102d3c7f5093fb98f60e73a080d3722f6f4331
|
|
BLAKE2b-256 checksum How to use checksums |
3200229afcce321ef47dcc78c61a3264d0819ddc8e1f1762f5937b50ab66504d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.3 Linux/6.5.0-1021-azure
|
Security for socket.io-redis-emitter 0.0.3
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.