PostgreSQL interface for WebAssembly over WebSockets
Project description
pgwasm
pgwasm is a Python interface to PostgreSQL proxied over WebSockets for use in WebAssembly (specifically using Pyodide). It is based on pg8000 and uses wasmsockets for communication.
wasmsockets handles the proxying of WebSocket calls to the Javascript interface when it detects it is being run in a WebAssembly environment. When run in a native Python environment, it instead uses the websockets package. This allows pgwasm to be tested in a native environment. However in both cases, since all network traffic is proxied over WebSockets, a WebSocket proxy is also required for the Postgres server; it cannot connect to a PostgreSQL server directly. The websockify package is convenient for implementing this proxy to PostgreSQL.
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
Built Distribution
File details
Details for the file pgwasm-0.2.0.tar.gz
.
File metadata
- Download URL: pgwasm-0.2.0.tar.gz
- Upload date:
- Size: 21.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.6 Linux/5.15.0-53-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b29ee7a1ffa94ab8d3c68c6ddf497043ca5f203c98db433202310e923025eb3 |
|
MD5 | c046dd7896576faa8688adf22e19cf6f |
|
BLAKE2b-256 | 2ca9086dc548404d96535353359665cbd3e1b19464e66b6ff45ec847e282e6f8 |
File details
Details for the file pgwasm-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: pgwasm-0.2.0-py3-none-any.whl
- Upload date:
- Size: 23.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.6 Linux/5.15.0-53-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c096fad42cc0d32fce94af484d8e6fdd2d1d89fb4d23bf46a05c27277ebdc7b |
|
MD5 | 7aa888abe8d509fd1169793b1cee571c |
|
BLAKE2b-256 | d17626cd3653b0eab17c3828421475106f5fb2fe374af1b3eb405d3067cd5f38 |