skillfed

sqlalchemy-pgspider

PGSpider Dialect for SQLAlchemy

sqlalchemy-pgspider v0.1.0 211.4K downloads/30d#9,480 on PyPI0
Permissive license MIT Abandoned released

What it is and what it does

sqlalchemy-pgspider is a SQLAlchemy dialect that bridges SQLAlchemy to PGSpider, a distributed PostgreSQL system. It inherits from SQLAlchemy's PostgreSQL dialect and overrides version-checking logic so that SQLAlchemy recognizes and connects to PGSpider instead of rejecting it as an unsupported database. The dialect retains full PostgreSQL functionality while working exclusively with the psycopg2 DBAPI driver.

You use it by specifying a pgspider:// or pgspider+psycopg2:// connection URL in SQLAlchemy's create_engine(), then interact with PGSpider through the standard SQLAlchemy Core and ORM interfaces. It is a thin adapter layer—all actual PostgreSQL features available in SQLAlchemy 1.4.28 remain available.

Use it for:

  • Connect to a PGSpider distributed database cluster using SQLAlchemy ORM for application development
  • Execute raw SQL queries against PGSpider through SQLAlchemy's text() interface
  • Migrate an existing PostgreSQL + SQLAlchemy application to use PGSpider as the backend
  • Build multi-node database applications that need transparent sharding via PGSpider

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides a SQLAlchemy dialect that enables connections to PGSpider using SQLAlchemy's PostgreSQL interface and psycopg2 driver.

No. The package is abandoned (last release June 2023, no commits since) with zero community engagement. While the MIT license is permissive and install friction is low, the lack of maintenance means no fixes for compatibility issues with newer SQLAlchemy, psycopg2, or Python versions. Install only if you are locked into an old environment and PGSpider is a hard requirement; otherwise, seek an actively maintained alternative or contact the PGSpider project directly.

Install

sqlalchemy-pgspider on PyPI

pip

pip install sqlalchemy-pgspider

uv

uv add sqlalchemy-pgspider

poetry

poetry add sqlalchemy-pgspider

Installing sqlalchemy-pgspider

Before you install

Low install friction with a pure-Python wheel. However, the package is abandoned—last release was 2023-06-06 with no commits since, and it has zero repository stars. Maintenance has ceased.

License in practice

MIT license permits commercial and private use with minimal restrictions, requiring only license and copyright notice retention.

Quickstart

pip install sqlalchemy-pgspider

from sqlalchemy import create_engine, text

engine = create_engine("pgspider+psycopg2://user:password@localhost:4813/dbname")
with engine.connect() as conn:
    result = conn.execute(text("SELECT * FROM table"))
    for row in result:
        print(row)

Requires SQLAlchemy 1.4.27 or higher, psycopg2 (or psycopg2-binary) 2.9 or higher, and Python 3.7 or higher. PGSpider instance must be running and accessible.

Verify before relying

  • Whether the package works with SQLAlchemy versions beyond 1.4.28 (documentation notes only 1.4.28 was tested)
  • Current compatibility with modern psycopg2 versions and Python 3.10+ in practice
  • Whether PGSpider itself is actively maintained and suitable for production use

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.7,<4.0)
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance abandoned — 1,165 days since the last release
Last repo commit
First released
Downloads 211,369/month — #9,480 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: sqlalchemy_pgspider-0.1.0-py3-none-any.whl

License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

sqlalchemy pgspider dialectpgspider database connectionsqlalchemy postgres forkpgspider orm supportdistributed postgres sqlalchemy
abandonedpgspiderdistributed-sql

More Front-Ends packages

SQLAlchemy

SQLAlchemy is a Python SQL toolkit and Object…

permissive · top 100 on PyPI

psycopg2-binary

psycopg2-binary is a PostgreSQL database…

copyleft · top 1,000 on PyPI

alembic

Alembic generates and manages database schema…

permissive · top 1,000 on PyPI

weaviate-client

A Python client library for connecting to and…

permissive · top 1,000 on PyPI

databricks-sql-connector

A Python client library that connects to…

permissive · top 1,000 on PyPI

psycopg

Psycopg 3 is a PostgreSQL database adapter for…

copyleft · top 1,000 on PyPI

sqlalchemy-jdbcapi

SQLAlchemy dialect for JDBC and ODBC database…

permissive · top 15,000 on PyPI

sqlalchemy-cockroachdb

A SQLAlchemy dialect that enables ORM and SQL…

permissive · top 5,000 on PyPI

sqlalchemy-risingwave

Provides a SQLAlchemy dialect that enables…

permissive · top 15,000 on PyPI

aws-psycopg2

Provides psycopg2 with statically linked…

permissive · top 5,000 on PyPI

sqlalchemy-bigquery

SQLAlchemy dialect that enables you to use…

permissive · top 1,000 on PyPI

pybigquery

SQLAlchemy dialect for BigQuery that enables…

permissive · top 15,000 on PyPI

sqlalchemy-redshift

Provides a SQLAlchemy dialect for Amazon…

permissive · top 5,000 on PyPI

sqlalchemy-rdsiam

Provides SQLAlchemy dialects for connecting to…

unclear · top 15,000 on PyPI

sqlalchemy-solr

Provides a SQLAlchemy dialect that allows you…

permissive · top 15,000 on PyPI

sqlalchemy-searchable

Adds fulltext search capabilities to SQLAlchemy…

permissive · top 15,000 on PyPI