Skip to main content
Help improve PyPI by participating in a 5-minute user interface survey!

Async websocket to PostgreSQL proxy

Project Description

from pgwebsocket import PgWebsocket

app = PgWebsocket(
    "postgresql://"
)

@app.on_connect
async def on_connect(ctx):
    """"""
    ctx.subscribed = []
    await ctx.execute("LISTEN all;")

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

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

Release history Release notifications

This version
History Node

0.0.1b2

History Node

0.0.1b1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pgwebsocket-0.0.1b2-py3-none-any.whl (4.8 kB) Copy SHA256 hash SHA256 Wheel 3.5 Aug 26, 2016
pgwebsocket-0.0.1b2.tar.gz (3.5 kB) Copy SHA256 hash SHA256 Source None Aug 26, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page