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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pgwasm-0.2.1.tar.gz.
File metadata
- Download URL: pgwasm-0.2.1.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 |
8133750e15119a7cc8657737917a3511ea424b6cea7b41fe0afbbcad3379059f
|
|
| MD5 |
0462cb931f108707ef3da94eb5cae95b
|
|
| BLAKE2b-256 |
778466926cd526327020cc48ec79a9e7a200f3e5306e93b6e6934afe606301c1
|
File details
Details for the file pgwasm-0.2.1-py3-none-any.whl.
File metadata
- Download URL: pgwasm-0.2.1-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 |
8dbfa2ea64b8bf7c0cdc7d0f5e291e8a59821f8fe5b9033b881428fc8a3df150
|
|
| MD5 |
53075a1b8251214605504416c6b20a5c
|
|
| BLAKE2b-256 |
a82be25a4739727fe0da882784f883e7cc5a8169705e2b189952bf4ce739c149
|