Skip to main content

EdgeDB Python driver

Project description

https://github.com/edgedb/edgedb-python/workflows/Tests/badge.svg?event=push&branch=master https://img.shields.io/pypi/v/edgedb.svg https://img.shields.io/badge/join-github%20discussions-green

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

The library requires Python 3.8 or later.

Documentation

The project documentation can be found here.

Installation

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
    client.execute('''
        CREATE TYPE User {
            CREATE REQUIRED PROPERTY name -> str;
            CREATE PROPERTY dob -> cal::local_date;
        }
    ''')

    # Insert a new User object
    client.query('''
        INSERT User {
            name := <str>$name,
            dob := <cal::local_date>$dob
        }
    ''', name='Bob', dob=datetime.date(1984, 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 := datetime.date(1984, 3, 1)}}

    # Close the client.
    client.close()

if __name__ == '__main__':
    main()

Development

Instructions for installing EdgeDB and edgedb-python locally can be found at edgedb.com/docs/reference/dev.

To run the test suite, run $ python setup.py test.

License

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-3.0.0b1.tar.gz (1.3 MB view details)

Uploaded Source

Built Distributions

edgedb-3.0.0b1-cp312-cp312-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.12 Windows x86-64

edgedb-3.0.0b1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.8 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

edgedb-3.0.0b1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.7 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ARM64

edgedb-3.0.0b1-cp312-cp312-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

edgedb-3.0.0b1-cp312-cp312-macosx_10_9_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.12 macOS 10.9+ x86-64

edgedb-3.0.0b1-cp311-cp311-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.11 Windows x86-64

edgedb-3.0.0b1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.3 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

edgedb-3.0.0b1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.3 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

edgedb-3.0.0b1-cp311-cp311-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

edgedb-3.0.0b1-cp311-cp311-macosx_10_9_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

edgedb-3.0.0b1-cp310-cp310-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.10 Windows x86-64

edgedb-3.0.0b1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.1 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

edgedb-3.0.0b1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.0 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

edgedb-3.0.0b1-cp310-cp310-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

edgedb-3.0.0b1-cp310-cp310-macosx_10_9_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

edgedb-3.0.0b1-cp39-cp39-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.9 Windows x86-64

edgedb-3.0.0b1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.1 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

edgedb-3.0.0b1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.0 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

edgedb-3.0.0b1-cp39-cp39-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

edgedb-3.0.0b1-cp39-cp39-macosx_10_9_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

edgedb-3.0.0b1-cp38-cp38-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.8 Windows x86-64

edgedb-3.0.0b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.5 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

edgedb-3.0.0b1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.4 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

edgedb-3.0.0b1-cp38-cp38-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

edgedb-3.0.0b1-cp38-cp38-macosx_10_9_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

File details

Details for the file edgedb-3.0.0b1.tar.gz.

File metadata

  • Download URL: edgedb-3.0.0b1.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for edgedb-3.0.0b1.tar.gz
Algorithm Hash digest
SHA256 cd1146675eb32810ba7fd6c87600d1ae82d21359ee5ceb0073786e0b65fa97a5
MD5 3ed937b264846e6ac6bf708762fd5408
BLAKE2b-256 aaf0f46dda123045ad2464b7cc03e3880c23d2cc589754bdf45c04c0c37ca579

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 33ce3e7d0eb97c4a32b45628ca31510b7dbff97fa733e80dca1d3383e7ba0de0
MD5 c5d17962c464b1c59e95f1c359206019
BLAKE2b-256 4649feebb492d5954afa62099a6488ee3add91eb5c4d739363680731e8fcd8a1

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3c7dc270351fd5c947a256a79ac9da27fd9f0cfa71a24c19fdb43ce3840ed495
MD5 cecc6af186e4346d78a8c1f28f3a93f1
BLAKE2b-256 9214fe789b6a0da3755b42c73b8fe3b9430abe088b64997f3e338e9aca8f5c7a

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d758edaf320b9f6338970a4f7ae83c26714df3963415c365b345b17335b6ab0d
MD5 b0fda117bd4dd574ba38c466f0c51af4
BLAKE2b-256 f64ba2867147843b729d1646549e1dbc81c836a583bd201d4bc23cf86807ae63

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5c0b37f869efa9c35dfe16fe74a31ee474baca28b4f8c7834ebcd1820609e1c6
MD5 eb181cf7b659e0f2aa93af7ed536145f
BLAKE2b-256 55467490b0a0fd36c0667fe9e05a8fd3db34c5c2b9baa082c5569d2008d7951f

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b1-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b1-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e2e1a71eaeed27f9040d0bc5af74d2a673d6785eee2e6da1d5f17f57a4f15f80
MD5 1210dc6e346bc8da0efc3d5760a33a22
BLAKE2b-256 68e15382e1121e9b60747e08ac6b887fe340919c036bd0e0e4e77aa5dc9d83df

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 891e4c3ed620c20fd9e017fc27e1bae972e753779e97c4be0a24ae89ba735b6f
MD5 192ec00a33f2f2d9cbb741e282d37624
BLAKE2b-256 e33c30037ebbe9b8efdd864df2eaf7e28e2ac7c09acb2b75cff6094dd9afeb05

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b5709b355ab886cb5a6b7343aaf997d04e93af5aefd7e3f680f035079c000f2b
MD5 fe01cfa624c15fd5ea0e4432d747d44e
BLAKE2b-256 3bdc5952f59ac80b2f754950a66afa440b8cd2f32bf44ea1047065e92ed9ab30

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2618dac6c79bf0bec680dcea7e5b3dd4ba2f47f3292bd44209afdeb7a7b62c2f
MD5 09cd1a707d47210c2a09f4170d52fbf6
BLAKE2b-256 28147ffdf424769fd5fd3e6dcb5fc01a98459a9427024f6757461bc308a58043

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b6faed3e6870161619f81541de47b8eecc61bbd09fb74dbd7f1bf6abe7d6cfe4
MD5 7afdd166a6fbc03e09c97686d39a9fd0
BLAKE2b-256 fe12ec36b15c07bcdddbf490d64f4705fc825da0c6210ded04ecb4524e1a9913

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b1-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f7bdd41f7c54ecd71853308a50fd99201e028b43f8cf892c48119e444c570a5c
MD5 0d16efedd0732bc8bbf7940eafad652e
BLAKE2b-256 232f991c8cd2ba672c609e15d420bf23c95bef78fbfd589512270e1abc140210

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ef23ee583ad29ca9879297c33a47d4ef06f0c9f42ea9532673b2edf1eb999f51
MD5 32b790d2527531718f5666acba3f3ee8
BLAKE2b-256 9c932b63ae4329f8a6d116cf6516d19aef26cd154f07f9f5f103e121ad2226a9

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 53973b5d749ca7296bc414bdbb896ac024e1d7d2211754a137a0825642973a93
MD5 aa78a35f0abb62318e3313d8594d4ca9
BLAKE2b-256 2bd7a7b44c2758cfceb08b01871c0f6a675a0f87a153d747f350a4798439b780

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0d50f73ac390809bba44dd8b1bbd45c95881b3cafa4dc78082826667343ee290
MD5 c7ace69ea7c0579897a236742649fa36
BLAKE2b-256 d5d544510141576025e00177385e489a49f51a55e9bba09ee048765b9ebafc7d

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6037c36919c4ef11fcdc253028be313b5355f3172c89c868331ca2454b395633
MD5 9888e945af73e76cc1fe43d7c7803d42
BLAKE2b-256 16727a09e3ca6859c61a910aa6168306a21c39a03eeb39fe5f677e0ff527cbfa

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b1-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 50daf46614985eeaf529ec4baacfcbbd5349c53ead0091765dd80796e4550c5f
MD5 f0f7900fdaf058d1aa719fca7a963244
BLAKE2b-256 39339bbf78fed23dae72ae41b8d4e6798e5c9bddfbbb859cb455429b75dd7c3f

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b1-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: edgedb-3.0.0b1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 2.0 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for edgedb-3.0.0b1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 fc616b5b05bdd53238640d1eb08ba0a9d97ec78e1b225407b93dfcb13b34c48e
MD5 66e8b467dece4a5e91025e8404cb7a93
BLAKE2b-256 d91b95947ff326af46078c8d4cb2ee85b56bc14405cd0f40fd10e81918c8ebff

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bf42a8d38279c14b2b19f8ea31521308e40dba65ab1e90df0507459d588437ce
MD5 572f2b9f441f855cc5066a38008d5a88
BLAKE2b-256 73fcd552b30baf5b87cca3a8c9177df5a87b96d81eb7ab16c9917f391cd2ce2e

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ebbe82ab68330041ba42393e1b7e41bb43338154db16da39758086e61e2dc4ae
MD5 4c479b9b17f3e0de9f1f2650785379fc
BLAKE2b-256 3ff0e830d54246fdbca37837874260ec41202044f0efaa9c594dcb3359651c00

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b1-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3b5bc58a477697a88a52f03ebdbb069d63e6023daa02c516b493324af3ef0fe1
MD5 463d66ae894626a33c738de300ad52f7
BLAKE2b-256 4b28f5841c1273b745981972453fa9bf754f7ef8947144e507a5156fc7f712a8

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b1-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 98742c6479dc327d778d560ca7ae12ac1c2eae9f3215a51961167711c80295a7
MD5 689e1523f72eb1bf7fb4c79ea9ac516f
BLAKE2b-256 48b098c37e69a9300e4bf83a0ec27a5a181bbc3557cc3659d82691f4181007bf

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b1-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: edgedb-3.0.0b1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 2.0 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for edgedb-3.0.0b1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e577f8564d1104fc618d1a01e37281e94afe2effe1306f764368c84ff0f934e5
MD5 085fa5499ebd641c86a11c550553014c
BLAKE2b-256 85c93c50ea9fab2d621500dfc982aec33e4c50edcc8850db9d77c82a7d7c551c

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6305bfa94f26cdcfc8003baa9944e30772626b242e09fbc482d1f531aad6337e
MD5 fd3425628c7eea53590af50eb588ba41
BLAKE2b-256 928fccc8cf77a8047502396c595ade4d81aac0dc4e1ab549bcc4da7ec2bedd3d

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e353ea89e9edf2598142a57be8a2aa95392f50e09c6e06273c2002afc40c309d
MD5 d43aab12a91cb9c08a48ad27963d48df
BLAKE2b-256 0f62a785984f777feff585c43de504c6d0ed2a7f48cf070746052d981bd58f4a

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b1-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b1-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 744f9862ff135635dd5a52ee87072bb1fd8d93a84b547bd4707e1d71a0261e3c
MD5 66a0468ee794954084c270069fab9190
BLAKE2b-256 5e85343edd1ebfc4d1ea0b730f70e41379f8e36e7b50756edb7f007c3fb49aa5

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b1-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ad8714bb92bdc3514153610b65b9d78f2669f7714629e68242b549346e8c1c13
MD5 15506067ad7a9471e6017f6fafcfd0c7
BLAKE2b-256 45f1d40e92e31e13bc9b96e9ffa6dc815ece929537d8389b2e8d1d499cc34930

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page