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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file socketio_pg_manager-0.0.5.tar.gz.
File metadata
- Download URL: socketio_pg_manager-0.0.5.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3535e16a401c021eb31d63bb72030d1640be747448a1fbf58ee41d7bcc258c5
|
|
| MD5 |
8c46d23b8fe63570e487e7b712e5a70c
|
|
| BLAKE2b-256 |
be98b3fea43d598178b1ed8b0904429adc26861d93865654b13039cfd8b16b92
|
File details
Details for the file socketio_pg_manager-0.0.5-py3-none-any.whl.
File metadata
- Download URL: socketio_pg_manager-0.0.5-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78e0d520d38f9737466e3e6b8d957f2690e666485c73da200e15e99d2ef337fd
|
|
| MD5 |
13ab8730b72f266e74aeb7f3d8270a20
|
|
| BLAKE2b-256 |
9ec5ea4614bcbe4ef66876695919c25a6a2a9d44844c0e39b62d478d2e1d705a
|