Skip to main content

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

pgwasm-0.1.0.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

pgwasm-0.1.0-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

Details for the file pgwasm-0.1.0.tar.gz.

File metadata

  • Download URL: pgwasm-0.1.0.tar.gz
  • Upload date:
  • Size: 20.0 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

Hashes for pgwasm-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5a9e7631fa5b67dc30a6ee197713604e25675291fabfecaeb1e1a7e14af63e21
MD5 bab77d408bb366e689aa8b434aba5876
BLAKE2b-256 2e076d018fca46cadb82185afbbb2cf96523411161431aa48174c275fd81d6bb

See more details on using hashes here.

File details

Details for the file pgwasm-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pgwasm-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 22.6 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

Hashes for pgwasm-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6005d8f825dfbd660cb7b1bfb777135161fcf2acc5dfc0f52b4b2de0ec345294
MD5 9dc045824f67c1dc9450cadd0a12550a
BLAKE2b-256 ca618d91e220f17d5b087458b0e080fc7d08946bfd92f3b08104196381ce6db7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page