skillfed

chalk-sqlalchemy-redshift

Amazon Redshift Dialect for sqlalchemy (Chalk fork)

chalk-sqlalchemy-redshift v0.8.15.dev0 228.3K downloads/30d#9,155 on PyPI0
Permissive license MIT AGING released

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-redshift

uv

uv add chalk-sqlalchemy-redshift

poetry

poetry add chalk-sqlalchemy-redshift

Installing 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

Development Status :: 4 - BetaEnvironment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

sqlalchemy redshift dialectredshift database ormamazon redshift sqlalchemyredshift sql adapterredshift connection poolingredshift table reflectionredshift ddl compiler
redshiftsqlalchemy-dialectaws

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-redshift

Provides a SQLAlchemy dialect for Amazon…

permissive · top 5,000 on PyPI

redshift-connector

redshift_connector is a Python database driver…

permissive · top 1,000 on PyPI

sqlalchemy-cockroachdb

A SQLAlchemy dialect that enables ORM and SQL…

permissive · top 5,000 on PyPI

iomete-sqlalchemy

Provides a SQLAlchemy dialect for connecting to…

permissive · top 15,000 on PyPI

sqlalchemy-hana

Provides a SQLAlchemy dialect that enables you…

permissive · top 15,000 on PyPI

sqlalchemy-risingwave

Provides a SQLAlchemy dialect that enables…

permissive · top 15,000 on PyPI

teradatasqlalchemy

Provides a SQLAlchemy dialect that enables…

unclear · top 5,000 on PyPI

sqlalchemy_exasol

SQLAlchemy dialect that enables Python…

permissive · top 15,000 on PyPI

sqlalchemy-pgspider

Provides a SQLAlchemy dialect that enables…

permissive · top 15,000 on PyPI

sqlalchemy-jdbcapi

SQLAlchemy dialect for JDBC and ODBC database…

permissive · top 15,000 on PyPI