🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
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
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

postgresql

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