chalk-sqlalchemy-redshift
Amazon Redshift Dialect for sqlalchemy (Chalk fork)
What it is and what it does
This package is a SQLAlchemy dialect that translates SQLAlchemy's ORM and expression language into Redshift-compatible SQL. It acts as a bridge between your Python application and Amazon Redshift clusters, allowing you to define tables, run queries, and manage schemas using SQLAlchemy's familiar API instead of raw SQL.
The dialect handles Redshift-specific features like materialized views, spectrum support, and Redshift data types (GEOMETRY, SUPER, HLLSKETCH, TIMETZ). It requires either psycopg2 or redshift_connector as a separate installation to actually connect to Redshift; the dialect itself provides only the SQL translation and connection configuration. Recent versions support SQLAlchemy 1.4.x and 2.0.x, and Python 3.8 through 3.12.
Use it for:
- Define and manage Redshift tables using SQLAlchemy ORM models instead of raw DDL statements.
- Run parameterized queries and aggregations against Redshift using SQLAlchemy's expression language.
- Reflect existing Redshift schemas into Python objects for introspection and dynamic query building.
- Integrate Redshift as a data warehouse backend in a larger Python application using SQLAlchemy's session and connection pooling.
- Support Alembic migrations for Redshift schema changes with column comment support.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a SQLAlchemy dialect for Amazon Redshift, enabling ORM and SQL expression language support against Redshift clusters via psycopg2 or redshift_connector.
Yes, with conditions. The package is permissively licensed and has low install friction. However, the current version (0.8.15.dev0) is a development release with no changelog entries, and the last stable release was 425 days ago. If you need Redshift support in SQLAlchemy, this is the standard dialect, but verify that the development release is stable for your use case or pin to a stable release. You must separately install psycopg2 or redshift_connector.
Install
chalk-sqlalchemy-redshift on PyPI
pip
pip install chalk-sqlalchemy-redshiftuv
uv add chalk-sqlalchemy-redshiftpoetry
poetry add chalk-sqlalchemy-redshiftInstalling chalk-sqlalchemy-redshift
Before you install
Low install friction with only two runtime dependencies (SQLAlchemy and packaging). Maintenance status is aging—last release was 425 days ago and the current version is a development release (0.8.15.dev0), though the repository remains active with a recent commit on 2025-06-15.
License in practice
MIT license is permissive, allowing commercial and private use with minimal restrictions.
Quickstart
pip install chalk-sqlalchemy-redshift
import sqlalchemy as sa
engine = sa.create_engine('redshift+psycopg2://username@host.amazonaws.com:5439/database')
with engine.connect() as conn:
result = conn.execute(sa.text('SELECT 1'))
Requires either psycopg2, psycopg2-binary, psycopg2cffi, or redshift_connector to be installed separately; the dialect does not include a driver.
Verify before relying
- Whether the 0.8.15.dev0 development release is stable enough for production use or if a stable 0.8.14 release should be preferred.
- Current compatibility status with recent SQLAlchemy versions beyond what the changelog explicitly documents.
- Whether redshift_connector is now the recommended driver over psycopg2 for new projects.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — SQLAlchemy, packaging |
| Maintenance | aging — 425 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 228,293/month — #9,155 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: chalk_sqlalchemy_redshift-0.8.15.dev0-py3-none-any.whl
Tags
More Front-Ends packages
SQLAlchemy is a Python SQL toolkit and Object…
permissive · top 100 on PyPI
psycopg2-binarypsycopg2-binary is a PostgreSQL database…
copyleft · top 1,000 on PyPI
alembicAlembic generates and manages database schema…
permissive · top 1,000 on PyPI
weaviate-clientA Python client library for connecting to and…
permissive · top 1,000 on PyPI
databricks-sql-connectorA Python client library that connects to…
permissive · top 1,000 on PyPI
psycopgPsycopg 3 is a PostgreSQL database adapter for…
copyleft · top 1,000 on PyPI
sqlalchemy-redshiftProvides a SQLAlchemy dialect for Amazon…
permissive · top 5,000 on PyPI
redshift-connectorredshift_connector is a Python database driver…
permissive · top 1,000 on PyPI
sqlalchemy-cockroachdbA SQLAlchemy dialect that enables ORM and SQL…
permissive · top 5,000 on PyPI
iomete-sqlalchemyProvides a SQLAlchemy dialect for connecting to…
permissive · top 15,000 on PyPI
sqlalchemy-hanaProvides a SQLAlchemy dialect that enables you…
permissive · top 15,000 on PyPI
sqlalchemy-risingwaveProvides a SQLAlchemy dialect that enables…
permissive · top 15,000 on PyPI
teradatasqlalchemyProvides a SQLAlchemy dialect that enables…
unclear · top 5,000 on PyPI
sqlalchemy_exasolSQLAlchemy dialect that enables Python…
permissive · top 15,000 on PyPI
sqlalchemy-pgspiderProvides a SQLAlchemy dialect that enables…
permissive · top 15,000 on PyPI
sqlalchemy-jdbcapiSQLAlchemy dialect for JDBC and ODBC database…
permissive · top 15,000 on PyPI