Skip to main content

Postgres client manager for python-socketio

Project description

PyPI - Version

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

socketio_pg_manager-0.0.5.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

socketio_pg_manager-0.0.5-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

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

Hashes for socketio_pg_manager-0.0.5.tar.gz
Algorithm Hash digest
SHA256 d3535e16a401c021eb31d63bb72030d1640be747448a1fbf58ee41d7bcc258c5
MD5 8c46d23b8fe63570e487e7b712e5a70c
BLAKE2b-256 be98b3fea43d598178b1ed8b0904429adc26861d93865654b13039cfd8b16b92

See more details on using hashes here.

File details

Details for the file socketio_pg_manager-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for socketio_pg_manager-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 78e0d520d38f9737466e3e6b8d957f2690e666485c73da200e15e99d2ef337fd
MD5 13ab8730b72f266e74aeb7f3d8270a20
BLAKE2b-256 9ec5ea4614bcbe4ef66876695919c25a6a2a9d44844c0e39b62d478d2e1d705a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page