Postgres client manager for python-socketio
Project description
SocketIO PG Manager
Postgres client manager for python-socketio.
Install
python3 -m pip install -r socketio-pg-manager
Usage
Asynchronous Usage
When you are using python-socketio
and you have multiple instances of your socketio server, simply pass AsyncPgManager
to the constructor of AsyncServer
import socketio
import socketio_pg_manager
client_manager = socketio_pg_manager.AsyncPgManager(
pg_options=dict(user="postgres", password="postgres")
)
sio = socketio.AsyncServer(async_mode="aiohttp", client_manager=client_manager)
For details, see Using a Message Queue.
Synchronous Usage
Not available now.
How it works
AsyncPgManager
is an implementation subtyping to AsyncPubSubManager
of python-socketio
. It creates a connection to your postgres database and listens on LISTEN channel
, and publish any data using NOTIFY channel, payload
.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for socketio_pg_manager-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3538690d56302116671b18a898d872f1f4b42996f0e0fce3e8ffdf3ed05b7e92 |
|
MD5 | 545caf72cfb7b5de265d189e60e24616 |
|
BLAKE2b-256 | 62dd95c16905f23d192990fb4146a8c49bb32b50282c52a88ee2ef10e4cce402 |
Close
Hashes for socketio_pg_manager-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 715b955867d68ba009bd97457697b7d6c5dc5207e2b26822c59e22f0b91e1894 |
|
MD5 | 5464541269c4a4a2aaaf45a509ec783f |
|
BLAKE2b-256 | 681d61dbfa60e4dd1360263c067b6c020c88c95c4b22d306a01742d1411c4516 |