Skip to main content

EdgeDB Python driver

Project description

edgedb-python is the official EdgeDB driver for Python. It provides both blocking IO and asyncio implementations.

The library requires Python 3.7 or later.


The project documentation can be found here.


The library is available on PyPI. Use pip to install it:

$ pip install edgedb

Basic Usage

import datetime
import edgedb

def main():
    client = edgedb.create_client()
    # Create a User object type
        CREATE TYPE User {
            CREATE REQUIRED PROPERTY name -> str;
            CREATE PROPERTY dob -> cal::local_date;

    # Insert a new User object
        INSERT User {
            name := <str>$name,
            dob := <cal::local_date>$dob
    ''', name='Bob',, 3, 1))

    # Select User objects.
    user_set = client.query(
        'SELECT User {name, dob} FILTER .name = <str>$name', name='Bob')
    # *user_set* now contains
    # Set{Object{name := 'Bob', dob :=, 3, 1)}}

    # Close the client.

if __name__ == '__main__':


Instructions for installing EdgeDB and edgedb-python locally can be found at

To run the test suite, run $ python test.


edgedb-python is developed and distributed under the Apache 2.0 license.

Project details

Release history Release notifications | RSS feed

Download files

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

Source Distribution

edgedb-1.2.0.tar.gz (920.6 kB view hashes)

Uploaded source

Built Distributions

edgedb-1.2.0-cp310-cp310-win_amd64.whl (1.4 MB view hashes)

Uploaded cp310

edgedb-1.2.0-cp39-cp39-win_amd64.whl (1.4 MB view hashes)

Uploaded cp39

edgedb-1.2.0-cp38-cp38-win_amd64.whl (1.4 MB view hashes)

Uploaded cp38

edgedb-1.2.0-cp37-cp37m-win_amd64.whl (1.4 MB view hashes)

Uploaded cp37

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