Skip to main content

DBAPI 2.0 adapter & SqlAlchemy Dialect for the RDS Data API

Project description

DB-API 2.0 driver & SqlAlchemy dialect for the AWS RDS Data API

NOTE: This is currently ALPHA quality software and has not been thoroughly tested yet

The RDS Data API allows use of MySQL and PostgreSQL RDS databases via an HTTP API, making it ideal for use in AWS Lambda because it allow syou to use RDS without running your lambda in a VPC. This library wraps that API in both a DB-API 2.0 driver and SqlAlchemy dialect allowing you to tap into the vast python ecosystem for working with relational databases.


pip install rdsdataapi


To use the DB-API 2.0 interface:

from rdsdataapi import connect
con = connect(
cur = con.cursor()
cur.execute("select :foo as bar", {"foo": "foobar"})
result = cur.fetchall()

Or via SqlAlchemy:

engine = create_engine(
with engine.connect() as con:
    result = con.execute("select :foo as bar", foo="foobar")

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for rdsdataapi, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size rdsdataapi-0.1.1.tar.gz (5.6 kB) File type Source Python version None Upload date Hashes View
Filename, size rdsdataapi-0.1.1-py2.py3-none-any.whl (4.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page