Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

socketio-pg-manager

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

socketio-pg-manager

Postgres client manager for python-socketio

  • 0.0.5
  • PyPI
  • Socket score

Maintainers
1

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.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc