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

This version

2.1.0

Download files

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

Source Distribution

edgedb-2.1.0.tar.gz (1.0 MB view details)

Uploaded Source

Built Distributions

edgedb-2.1.0-cp312-cp312-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.12 Windows x86-64

edgedb-2.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.0 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

edgedb-2.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.9 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ARM64

edgedb-2.1.0-cp312-cp312-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

edgedb-2.1.0-cp312-cp312-macosx_10_9_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.12 macOS 10.9+ x86-64

edgedb-2.1.0-cp311-cp311-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.11 Windows x86-64

edgedb-2.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.5 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

edgedb-2.1.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.5 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

edgedb-2.1.0-cp311-cp311-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

edgedb-2.1.0-cp311-cp311-macosx_10_9_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

edgedb-2.1.0-cp310-cp310-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.10 Windows x86-64

edgedb-2.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

edgedb-2.1.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.3 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

edgedb-2.1.0-cp310-cp310-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

edgedb-2.1.0-cp310-cp310-macosx_10_9_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

edgedb-2.1.0-cp39-cp39-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.9 Windows x86-64

edgedb-2.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

edgedb-2.1.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.4 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

edgedb-2.1.0-cp39-cp39-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

edgedb-2.1.0-cp39-cp39-macosx_10_9_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

edgedb-2.1.0-cp38-cp38-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.8 Windows x86-64

edgedb-2.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

edgedb-2.1.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.7 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

edgedb-2.1.0-cp38-cp38-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

edgedb-2.1.0-cp38-cp38-macosx_10_9_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

File details

Details for the file edgedb-2.1.0.tar.gz.

File metadata

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

File hashes

Hashes for edgedb-2.1.0.tar.gz
Algorithm Hash digest
SHA256 47925ee05332c08d296014b94689cc91620e466e6ad6bb1cb9a4677d123c49f4
MD5 07aa8a85bbcabd90363c6292b3ccaffa
BLAKE2b-256 e0664ce7a708497b568ad5de1a68821ab9a7c6841bdd4540e1c83a923659ef63

See more details on using hashes here.

File details

Details for the file edgedb-2.1.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: edgedb-2.1.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for edgedb-2.1.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 eb96f9ca512de8664c0ac48c7bae1c6c8b98b86e119737af7e2f6492f3cb13a7
MD5 7a78ef1e1ca1dffa83d410bd0078872e
BLAKE2b-256 17f55d3e5d38e6aadddf88d45da10a313c973feb363b93a33ec361056b20a4a4

See more details on using hashes here.

File details

Details for the file edgedb-2.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-2.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 55fd664bfae943d50430e9e8ddac3bea15a8ba27262fd292fa76e842b37470a5
MD5 c3e008b4d010d8d0e9b32b61352e1869
BLAKE2b-256 a1c02f565ad030bbd35590666f483904eb8ea593e26fcee2f95dd6011f90c9c6

See more details on using hashes here.

File details

Details for the file edgedb-2.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for edgedb-2.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f5dc19ef0070e427835452d0050e55ac083f3cce3606f4ba46cca7a771bac12c
MD5 8d133c8fce6e2215c166f17bce362b36
BLAKE2b-256 2d4e4e4a6313a0692edef060cbe80c095ec1eee09ddfb890d28bebecca297036

See more details on using hashes here.

File details

Details for the file edgedb-2.1.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edgedb-2.1.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 80f2936be48a01f96e8c7e9326ae6ace569f70cf36625ea80217f9ca5690a8d8
MD5 25edaa02693799687b309b1e48f2a6bf
BLAKE2b-256 312e097766e6cfe5724f37fdbb44b532b2aad8536e086f40c07ef7c559aa9c82

See more details on using hashes here.

File details

Details for the file edgedb-2.1.0-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-2.1.0-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 84faf8be5f6d8d4738bc18a12bb01c36d8ae75732d70164b3e0c6d4066d16112
MD5 e242da205d1effa6a3e8550006dee7c3
BLAKE2b-256 6bb299dead416f0758498df3d3d8de13da5689e43b3d75081418344f1a308507

See more details on using hashes here.

File details

Details for the file edgedb-2.1.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: edgedb-2.1.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for edgedb-2.1.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 66c8d8e635b49b3863edf541e3a371cb87d80a4a152239fc84cd1b536dcb49d7
MD5 38dcd678d30798f300ac3e9f0e86d26f
BLAKE2b-256 abfe104fe88f43ea18654c3f05e1200a82f04e671b6ebea256ba5403fa8bbb7e

See more details on using hashes here.

File details

Details for the file edgedb-2.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-2.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b0661c5bc03ac9bbdac64feb06cd0b91cca2be08615199fa6170a1e3b0274c7a
MD5 2ed5085d65484b4097e50cbd6a2aebd1
BLAKE2b-256 a5564f3ffdf66d8d92d753cf251db2978c581635b11cffd2b7ab763ad36e3e59

See more details on using hashes here.

File details

Details for the file edgedb-2.1.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for edgedb-2.1.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 38cdf820ec27dd8d29648f24ab9514029ef8db9423fb5ea0868b48e21de9145f
MD5 1dd7eca693c2aca26b1567dc64fa52bb
BLAKE2b-256 c35c4389b1900d813a7b0e1470ded255490d1e5214c4fcf03551315cecbf4319

See more details on using hashes here.

File details

Details for the file edgedb-2.1.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edgedb-2.1.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ccb231eb18695bdfbaec9803b73f3e0a5dbd0bd423bfb112c9d4c801a49a3581
MD5 74f4c79cfc7292414851a4ee878fbeed
BLAKE2b-256 27d1a389d7ae887a2b776162f02b5403570fd4c6f2e5fc1b8d441bc8b5baca7c

See more details on using hashes here.

File details

Details for the file edgedb-2.1.0-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-2.1.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 82760a36a09b7d09b28d5f9829183feddb11d9380a93d5c6f6c33545bb8fa6b5
MD5 247b5786163ad3ee979b9f7d38c61318
BLAKE2b-256 1af0f8acb51968121b94ec887c0400ccf1cba1029766f17762f33b7e8b582095

See more details on using hashes here.

File details

Details for the file edgedb-2.1.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: edgedb-2.1.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for edgedb-2.1.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1c082bbfb8cde0d52a485cec54b8489656ca262995bb23ae0c62a4a3ce01b4b2
MD5 df4f5d94d063a772b937d42cebd1d8cc
BLAKE2b-256 0f10409491aedd5535b03d4dd983db2157df854ca9b8b4844aab3854b670318a

See more details on using hashes here.

File details

Details for the file edgedb-2.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-2.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8fb5aad2a814ec67cd18fb805456f6018f47f28d458cc1fdde1f61f49bb2586e
MD5 24519a8dc928741f52fff6767293a317
BLAKE2b-256 a5e150479ae03d8cd1ef5f0f6dae7dbe9cadf3b1f6b8bda9d14240cf82d3c65b

See more details on using hashes here.

File details

Details for the file edgedb-2.1.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for edgedb-2.1.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c2f6d464df581ce5c2ba18687efe46abb3d7c3c7d9df07312ab51fb6ec125753
MD5 1c0b1a19685a98309fa7910444e572eb
BLAKE2b-256 3734e1239265b3018c2cdb32344677d56cc065a9fa2e528bf545e29e2b87c9a4

See more details on using hashes here.

File details

Details for the file edgedb-2.1.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edgedb-2.1.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 28fb6920dff41156431a8abbbbac5366bad335bd098d77bd6511e889f18bcef8
MD5 b1fbc0fa788af30758871357db7ae57e
BLAKE2b-256 d7ff72c65aa42dbe25a68366ca36882c79a3610c8fdd54914d48c3921fee4403

See more details on using hashes here.

File details

Details for the file edgedb-2.1.0-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-2.1.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 451240e400a53fa486e6b9d41e149693c4dc6f69917d55716c0a94e52bb126eb
MD5 e48d5c5d5fce080bf331998d59277d41
BLAKE2b-256 51bbc62f3171a4d54c3b2d472834d5f89d368f016c03399c9e0ba5b99e95fc5f

See more details on using hashes here.

File details

Details for the file edgedb-2.1.0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: edgedb-2.1.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 1.6 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-2.1.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 33df727f22b04691b7b2a355a2acff694d1bb50659d842b5add8626b5e56d482
MD5 370bbd10a78acdb3958a88b9770ae329
BLAKE2b-256 6751bc076119075415fa564eafe256054ec4058f70744af62f1ddfdef89599e0

See more details on using hashes here.

File details

Details for the file edgedb-2.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-2.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a8cfc9c792c9c005d55a867556db663a0a0a0ecc0cc41e3f3c3e1d43bb79a2bd
MD5 29deb63d1fb092821e5fc2556bf9913f
BLAKE2b-256 d077e86aeb256ce2add84fdddc385e98a7ce40f9bec7f7edfe3fe8affa45a1bd

See more details on using hashes here.

File details

Details for the file edgedb-2.1.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for edgedb-2.1.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 df9a5521392b0e89611599ffc20eec405dd19d324988c9a0b24f766366b9f801
MD5 5e46ccbbedac1f1f0599dc665f69a58c
BLAKE2b-256 5c004ff207bb25a7b92e48164a1902e10e4b1cebef9598013adc63aabdaae5ea

See more details on using hashes here.

File details

Details for the file edgedb-2.1.0-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edgedb-2.1.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 03a49170535569b1f81d6042b0f7436f6ff3c415839435633d76a0c1d63d7652
MD5 3137c51ad05c522dc299309823a38838
BLAKE2b-256 26e309994411ed6b581753c9c0040f02c2bdd8a5ef76f781147f9e6ebfb2d3b1

See more details on using hashes here.

File details

Details for the file edgedb-2.1.0-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-2.1.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2d14472aa4cf92a88247addc524025d7cda8f31d1e121575ce8ff3321122ba19
MD5 9b5e74713567c76ba299f00c2a550d38
BLAKE2b-256 570970b069486243bfd0fcba2edb46c6b00d957cebf458dc83823e33d8b1ff62

See more details on using hashes here.

File details

Details for the file edgedb-2.1.0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: edgedb-2.1.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 1.6 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-2.1.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d1152c772eedfde40a77efba745727c4a1a51e089e79dacccc0f117275a727cb
MD5 b76669ab76082633115cce14e8810934
BLAKE2b-256 bba6bd9055c62048a07b0b9655215788041f202fbee6454cd4c37ef57ffe1c4e

See more details on using hashes here.

File details

Details for the file edgedb-2.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-2.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 214f59b2491a36b94afe3d69700fbe03c28d4192d8e8b0eee339fe56b1f2986f
MD5 34484ebaa3bd6a17c93053a99f89a96f
BLAKE2b-256 02e57727efe50538a43dfd00eda25d25207b59f59e783a87e95b8f909d6633f6

See more details on using hashes here.

File details

Details for the file edgedb-2.1.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for edgedb-2.1.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7eb95a923fec3314bd0c1e88263ce2fe5b6e08ebd7a1e1338e43b4142dbd98ff
MD5 4568c82220d294c37e6f5dce6ffa1dfe
BLAKE2b-256 6ec9abc11dd2c187cb18df77c57aa0e4c0bcca297ae05d19a6484be438699bef

See more details on using hashes here.

File details

Details for the file edgedb-2.1.0-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edgedb-2.1.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a0aa8b972b9e108052e634f95c6b584c3a57f9f090e6ed19571da0bcf0fabdf9
MD5 22578f426b3d7b15bad1706448cc459a
BLAKE2b-256 eb1ebd54996e2f9623aa5b372884ee8bb6f238f0b683b2ef41f2223c7560112a

See more details on using hashes here.

File details

Details for the file edgedb-2.1.0-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-2.1.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6e48fb3ac3cacefcbbde31b702ff9a7e8b429014963a3e7974d2613600bd1ccd
MD5 7b8f169b652a25f94f5d724f011fbe09
BLAKE2b-256 fcf03ea7bc1c4b1429ad866653af661c036a137464cbebe40519ba77cbb41046

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