SQLAlchemy-PGSpider is a Python library that provides a dialect for SQLAlchemy, enabling it to connect to PGSpider databases. As of version 0.1.0, it offers fundamental connectivity and query execution. It is a new project in active development, likely following a release cadence tied to upstream PGSpider and SQLAlchemy updates.
pip install sqlalchemy-pgspiderVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to establish a connection to a PGSpider database using `create_engine` with the 'pgspider://' URI and execute a simple query. Ensure you have the `PGSPIDER_CONN_STR` environment variable set or update the placeholder directly.
Install a suitable driver: `pip install psycopg2-binary` or `pip install psycopg`.
Review the official GitHub repository for updates on feature support. For unsupported features, consider using `connection.execute(text(...))` for raw SQL queries.
Double-check all components of your `pgspider://user:password@host:port/database` URI against your PGSpider server's configuration and ensure the server is running and accessible.