skillfed

sqlalchemy-aurora-data-api

An AWS Aurora Serverless Data API dialect for SQLAlchemy

sqlalchemy-aurora-data-api v0.5.0 98.1K downloads/30d#13,100 on PyPI117
Permissive license Apache Software License DORMANT released

What it is and what it does

This package registers two SQLAlchemy dialects—`mysql+auroradataapi://` and `postgresql+auroradataapi://`—that translate SQLAlchemy operations into HTTP calls to the AWS Aurora Data API. It depends on sqlalchemy and aurora-data-api, the underlying DB-API 2.0 client.

The package solves a specific problem for AWS Lambda and other serverless environments: traditional database drivers maintain stateful TCP connection pools that break across Lambda freeze-thaw cycles, while the Data API uses stateless HTTP tunneling. It eliminates the need to open database ports to Lambda's IP pool and enables role-based authentication via AWS IAM, removing the need for Lambda code to handle credentials directly.

Use it for:

  • Run database queries from AWS Lambda functions without managing TCP connection pools or handling database credentials in code.
  • Access PostgreSQL or MySQL databases from serverless applications that cannot maintain persistent connections.
  • Integrate SQLAlchemy ORM or Core with Aurora Serverless via HTTP without custom connection management.
  • Deploy applications on ECS/EKS containers or EC2 instances that need stateless database access via the Data API.
  • Avoid opening database ports to AWS Lambda's public IP address pool by tunneling SQL over HTTPS.

Worth the install?

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

Provides a SQLAlchemy dialect for accessing PostgreSQL and MySQL databases via AWS Aurora Serverless Data API, enabling HTTP-based database access without managing TCP connections.

Yes, if you are building on AWS Lambda or another serverless platform with Aurora Serverless and need SQLAlchemy integration. The package has low install friction and no known vulnerabilities. However, dormant maintenance (last release 958 days ago) means you should verify compatibility with your SQLAlchemy version and test thoroughly before production use, especially if you rely on recent SQLAlchemy features.

Install

sqlalchemy-aurora-data-api on PyPI

pip

pip install sqlalchemy-aurora-data-api

uv

uv add sqlalchemy-aurora-data-api

poetry

poetry add sqlalchemy-aurora-data-api

Installing sqlalchemy-aurora-data-api

Before you install

Low install friction with two straightforward runtime dependencies. Maintenance is dormant—last release was 958 days ago—but the repository remains active and the package supports modern Python versions through 3.12.

License in practice

Licensed under Apache License 2.0 (permissive), allowing commercial and private use with minimal restrictions beyond attribution and liability disclaimers.

Quickstart

from sqlalchemy import create_engine

engine = create_engine(
    'postgresql+auroradataapi://:@/my_db_name',
    connect_args=dict(
        aurora_cluster_arn='arn:aws:rds:...',
        secret_arn='arn:aws:secretsmanager:...'
    )
)

with engine.connect() as conn:
    for row in conn.execute('SELECT * FROM pg_catalog.pg_tables'):
        print(row)

Requires an AWS Aurora Serverless cluster with Data API enabled, database credentials stored in AWS Secrets Manager, and AWS credentials configured locally or via IAM role.

Verify before relying

  • Current compatibility with the latest SQLAlchemy versions (fact sheet does not specify SQLAlchemy version constraints).
  • Performance characteristics and latency overhead of HTTP-based queries compared to native TCP connections.
  • Whether dormant maintenance status indicates the package is stable or at risk of incompatibility with future AWS API changes.

Package facts

License Apache Software License (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies 2 — sqlalchemy, aurora-data-api
Maintenance dormant — 958 days since the last release
Last repo commit
First released
Downloads 98,142/month — #13,100 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: sqlalchemy_aurora_data_api-0.5.0-py3-none-any.whl

Intended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: MacOS :: MacOS XOperating System :: POSIXProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python Modules

Tags

sqlalchemy aurora data apiaws rds data api dialectserverless database sqlalchemyaurora http endpointlambda database accessstateless database connectionaws rds data api python
aws-lambdaserverless-databaseaurora-data-api

More Python Modules packages

idna

Converts domain names between Unicode and…

permissive · top 100 on PyPI

setuptools

Setuptools is a Python build backend and…

permissive · top 100 on PyPI

PyYAML

PyYAML parses and emits YAML 1.1 data format,…

permissive · top 100 on PyPI

pydantic

Pydantic validates Python data structures…

permissive · top 100 on PyPI

annotated-types

Provides reusable metadata objects for use with…

permissive · top 100 on PyPI

typing-inspection

Provides runtime tools to inspect and…

permissive · top 100 on PyPI

aurora-data-api

A DB-API 2.0 compatible client for AWS Aurora…

permissive · top 15,000 on PyPI

sqlalchemy-rdsiam

Provides SQLAlchemy dialects for connecting to…

unclear · top 15,000 on PyPI

aws-advanced-python-wrapper

Wraps Python database drivers to add Aurora…

permissive · top 15,000 on PyPI

sqlalchemy-jdbcapi

SQLAlchemy dialect for JDBC and ODBC database…

permissive · top 15,000 on PyPI

sqlalchemy-firebird

Provides a SQLAlchemy 2.0+ dialect for…

permissive · top 15,000 on PyPI

snowflake-sqlalchemy

Snowflake SQLAlchemy is a SQLAlchemy dialect…

permissive · top 1,000 on PyPI

sqlalchemy-pgspider

Provides a SQLAlchemy dialect that enables…

permissive · top 15,000 on PyPI

iomete-sqlalchemy

Provides a SQLAlchemy dialect for connecting to…

permissive · top 15,000 on PyPI

databricks-sqlalchemy

Provides a SQLAlchemy 2.0 dialect that bridges…

permissive · top 1,000 on PyPI

sqlalchemy-spanner

Provides a SQLAlchemy dialect that enables…

permissive · top 5,000 on PyPI