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

pgwebsocket

Package Overview
Dependencies
Maintainers
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pgwebsocket

Async websocket to PostgreSQL proxy.

  • 0.0.1
  • PyPI
  • Socket score

Maintainers
3

=========== pgwebsocket

.. image:: https://readthedocs.org/projects/pgwebsocket/badge/?version=latest :target: https://pgwebsocket.readthedocs.io/en/latest/?badge=latest

.. image:: https://badge.fury.io/py/pgwebsocket.svg :target: https://badge.fury.io/py/pgwebsocket

Async websocket to PostgreSQL proxy.

Install

::

python3 -m pip install pgwebsocket

Usage

.. code-block:: python

from pgwebsocket import PgWebsocket

app = PgWebsocket("")

@app.on_connect
async def _on_connect(ctx):
    await ctx.execute("LISTEN clients;")

@app.on_disconnect
async def _on_disconnect(ctx):
    await ctx.execute("UNLISTEN clients;")

if __name__ == '__main__':
    app.run()

Keywords

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