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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6892056662aee3a9a861b95e05fa9d26e00173fc5e78220cf58eeff06bb432c |
|
MD5 | 33547d02113c787f3b35de850cbc3a81 |
|
BLAKE2b-256 | a4e0d050db4270dcfe457b30f01b91607bc76a61b3c8b593b5d547ccdc50c8b4 |
Close
Hashes for socketio_pg_manager-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f67869134cb5698a5c70f36ee3d75be3ce19289dfe18ad9b8a6460de32ea79d |
|
MD5 | 9c641f034cafc4b776dab954a1ec2bb0 |
|
BLAKE2b-256 | c87eb5e2b774100bc1211cb31560eb3d107d2ddf314204851fefc12e0bfe2f99 |