Skip to main content

Async websocket to PostgreSQL proxy.

Project description

https://readthedocs.org/projects/pgwebsocket/badge/?version=latest https://badge.fury.io/py/pgwebsocket.svg

Async websocket to PostgreSQL proxy.

Install

python3 -m pip install pgwebsocket

Usage

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()

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

pgwebsocket-0.0.1.tar.gz (14.7 kB view hashes)

Uploaded Source

Built Distribution

pgwebsocket-0.0.1-py2.py3-none-any.whl (11.2 kB view hashes)

Uploaded Python 2 Python 3

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