pgwebsocket 0.0.1

Creator: railscoder56

Last updated:

Add to Cart

Description:

pgwebsocket 0.0.1

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

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.