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()
Project details
Release history Release notifications | RSS feed
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.1b2.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for pgwebsocket-0.0.1b2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87ed4e20a350297ded07cd53acdd145e8c1f6bbb2e86b8efaf684e901fec097d |
|
MD5 | 23177a846e67f3d9fbb6ffa84ce65e9f |
|
BLAKE2b-256 | 0967bd23928bba5ab8ec2950bceb047fcce2ab9d26fc1a4f5c0a57168b10a202 |