Back to Yugabyte Db

Python drivers and ORMs

docs/content/stable/develop/drivers-orms/python/_index.md

2026.1.0.0-b252.3 KB
Original Source

Supported projects

The following projects can be used to implement Python applications using the YugabyteDB YSQL API.

ProjectDocumentation and GuidesLatest Driver VersionSupported YugabyteDB Version
Yugabyte Psycopg2 Smart Driver [Recommended]Documentation
Reference2.9.32.8 and above
PostgreSQL Psycopg2 DriverDocumentation
Reference2.9.32.8 and above
PostgreSQL Psycopg3 DriverDocumentation
Reference3.2.92.20 and above
aiopgDocumentation1.42.8 and above
YugabyteDB Python Driver for YCQLDocumentation3.25.0
ProjectDocumentation and GuidesExample Apps
SQLAlchemyDocumentation
Hello WorldSQLAlchemy ORM App
DjangoDocumentation
Hello WorldDjango ORM App

Learn how to establish a connection to a YugabyteDB database and begin basic CRUD operations by referring to Connect an app or Use an ORM.

Prerequisites

To develop Python applications for YugabyteDB, you need the following:

  • Python

    Ensure your system has Python3 installed. To check the version of Python installed, use the following command:

    sh
    python -V
    

    If not already installed, download and install it from the Python Downloads page.

  • YugabyteDB cluster

    • Create a free cluster on YugabyteDB Aeon. Refer to Use a cloud cluster. Note that YugabyteDB Aeon requires SSL.
    • Alternatively, set up a standalone YugabyteDB cluster by following the steps in Install YugabyteDB.

Next step

Connect an app