Skip to main content
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()

Release files for pgwebsocket 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pgwebsocket 0.0.1
File Size Uploaded
pgwebsocket-0.0.1.tar.gz 14.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pgwebsocket 0.0.1
File Interpreter ABI Platform
pgwebsocket-0.0.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 26.0 kB

Release files / pgwebsocket-0.0.1.tar.gz

Download URL pgwebsocket-0.0.1.tar.gz
Size 14.7 kB
Tags Source
SHA-256 checksum
How to use checksums
720513144342bf388b1fad18970c3124f0125782ce3c841961bfd325db0f783a
BLAKE2b-256 checksum
How to use checksums
f155ea630aefbec31a0c3b117c50a894c0c5968d1a05aac605db4f8cdb0bc405
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

Release files / pgwebsocket-0.0.1-py2.py3-none-any.whl

Download URL pgwebsocket-0.0.1-py2.py3-none-any.whl
Size 11.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
efd53a10aafeb72a476a1f28eeb757b7bdaa3f7c81b07f1aff37776b1e268203
BLAKE2b-256 checksum
How to use checksums
c638f1e86f3dc3cb5715f70cd3aa614ca7f2d65f3d63fc697ce1310ef5a3b979
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page