Postgres client manager for python-socketio
Project description
Socket 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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3535e16a401c021eb31d63bb72030d1640be747448a1fbf58ee41d7bcc258c5 |
|
MD5 | 8c46d23b8fe63570e487e7b712e5a70c |
|
BLAKE2b-256 | be98b3fea43d598178b1ed8b0904429adc26861d93865654b13039cfd8b16b92 |
Close
Hashes for socketio_pg_manager-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78e0d520d38f9737466e3e6b8d957f2690e666485c73da200e15e99d2ef337fd |
|
MD5 | 13ab8730b72f266e74aeb7f3d8270a20 |
|
BLAKE2b-256 | 9ec5ea4614bcbe4ef66876695919c25a6a2a9d44844c0e39b62d478d2e1d705a |