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-2.0.0.tar.gz (1.0 MB view details)

Uploaded Source

Built Distributions

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

Uploaded CPython 3.12 Windows x86-64

edgedb-2.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.9 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

edgedb-2.0.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.0.0-cp312-cp312-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

edgedb-2.0.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.0.0-cp311-cp311-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.11 Windows x86-64

edgedb-2.0.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.0.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.0.0-cp311-cp311-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

edgedb-2.0.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.0.0-cp310-cp310-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.10 Windows x86-64

edgedb-2.0.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.0.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.0.0-cp310-cp310-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

edgedb-2.0.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.0.0-cp39-cp39-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.9 Windows x86-64

edgedb-2.0.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.0.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.3 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

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

Uploaded CPython 3.9 macOS 11.0+ ARM64

edgedb-2.0.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.0.0-cp38-cp38-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.8 Windows x86-64

edgedb-2.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.7 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

edgedb-2.0.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.0.0-cp38-cp38-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

edgedb-2.0.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.0.0.tar.gz.

File metadata

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

File hashes

Hashes for edgedb-2.0.0.tar.gz
Algorithm Hash digest
SHA256 35a5db34a2a291e126214c124bba78e8f6e5fcf3df7497be2db23a3c9be8d995
MD5 fea6b4dd2edd4fecc58b14abaffb1d96
BLAKE2b-256 bdd6050a4258bcc3e0b137175d6cdef3c384d83e6cdb2634b174b5f344d369bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-2.0.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.0 CPython/3.9.19

File hashes

Hashes for edgedb-2.0.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5d1089d34fa007a36ad14a4b4e8c03404ec5df72d6e334c9b7b96fde64d6b1b0
MD5 3d7ace6ac3424ccbe5a6281e43dcaebf
BLAKE2b-256 532bcbe67645e25ddee6d627d73edc4d4926ce12643169f0373ddf86efee94b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-2.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f6c51f8999b83320974895540f51e0d48a94a59d7b53cf404f386f9045a78a57
MD5 3e2ae4465645ffb42e8725c38c7659fe
BLAKE2b-256 ba5c54b0dc9b6b1c4d363ca4d6b7c81465c3bdc17faa2af40586c1fd231098b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-2.0.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 82a9e7d7c24104cbcaf7cf9d05884d9f305aa208db0ecfbeb1dcb78b6e852685
MD5 7a49a6808b50db4661c866645f2954c1
BLAKE2b-256 3f94b55919898ac33dddbe64e097e43f49bfb8ab0b0e781f24dee1a5996f8aed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-2.0.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f8bec00e4cbd43ddfbeead078f0828adfe4bd01cb554f16cdd64f29df35c49af
MD5 3a9a6d74da1e6f4e6f78e411dca71621
BLAKE2b-256 09ec8594d37c579c137f5f906ad46f597ede70358851ef48e416709db2232752

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-2.0.0-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 12600c6650e4576c8362e7e0150328a25a0635702bdf1267965713a13a8d98ec
MD5 90f653cbefbecc7679542cbf128840f6
BLAKE2b-256 79bb8ec4cd59a8692659b60d4b3fa39b1813c74378157f948fe14bd1593c85b1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-2.0.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.0 CPython/3.9.19

File hashes

Hashes for edgedb-2.0.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 dce0fc7ed524929f5499704471bb63cfef7b1cd846801f232bc0fa1ab69fe2a3
MD5 033235b90cda489371a50c1761f416e5
BLAKE2b-256 895db961c6e2d29239288d4425feedeaa6a8b5e7c855545388a1b3d943867706

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-2.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0f41a3f13c2c54f40dab79cb4051e6384ce0764bc943f7771d1e3fcf0099bd14
MD5 d176dd610f18cd7b649f5e1faf46fa9b
BLAKE2b-256 40a6160f64eacd35943a5d17039172995f84d25f607954bb6ea6126a9b9a6d5a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-2.0.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a621c150f2c406cda46066f5d22549063c906833935c7d242214dd764c9c4734
MD5 fefcab425876cde871d02cde03e260cd
BLAKE2b-256 831cecb3f6bddbabedfbf37f64dd613fcdfc96da739320f4662ede6b5ca792d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-2.0.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 653c6921c01209a205e7b7711456953807666b80fd159f9bdfda179d8ce192c8
MD5 6dd920b3bd63bc3540dacf898a4dfea0
BLAKE2b-256 70025468aafe11f4d6801b6e3b2fb62d625aa512503bd96dea586f6d8fd22254

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-2.0.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 359474e1d430fce083d2b41712ef6c5fcead6812820fc4d1d0b4747c40052eac
MD5 ff5b00cbc4ed3fd3412951a12a7f67fa
BLAKE2b-256 01dd60fcb2d9a3268fdcbc233f304bf34b3c4c8b2d18560a2e564a616da58d57

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-2.0.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.0 CPython/3.9.19

File hashes

Hashes for edgedb-2.0.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 83af4a96e0f6a2e20bf583bec7feb10f172e5ffdfba9370b52ea31137cf65cae
MD5 282be109a8b1a63ffeddeca53923fabc
BLAKE2b-256 5c34795b5519f9ca3581eb77d701ee4bdc99768d86eb082942007383a42c3520

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-2.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 33c146ec2c762040c42a637d7ecbd59d5a42207ff240614b572dc84f5af8cb04
MD5 2c5201b88be9fd6b784cda54b8e424f5
BLAKE2b-256 e7c38c824b99f2946a6c1a666aaf9cde54cab07c29c3f5024522ac9e169e137a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-2.0.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1f354ddf4ae375eaac3dc7718a6b3ed5c73a042f7b93e82615712cb5a84790f0
MD5 f23726b1c67fb38c750d20d97af71539
BLAKE2b-256 da3e8bcfbdbc410dade75018ad5b61cdcf15e897c65be8f1ec5db21341ddb8cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-2.0.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5990ccad80115dd337a1bf960862c74e7e9cbccb6bbd5a30fd1de3a2fdc38d91
MD5 13eb367e03ab2628213b7f4d1845357a
BLAKE2b-256 527597fe3440d7f59a1d6313e4d6651a24e7049713e1ac45e66efa137b20bea7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-2.0.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 84d6657026aec4846d352f9ce2e7317f1bd05424a5d4b6478bb6e9ffb58cc706
MD5 b68e62ada45d7ff47734d4b7754dd940
BLAKE2b-256 aeb198b18944aef8737f2bc34388a9feab09acb91c8bdd645de09499ea3deb92

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-2.0.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.0 CPython/3.9.19

File hashes

Hashes for edgedb-2.0.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5ae739d9790dee7ba98a1f6f51291746752e639598d9ec300e862289bd082d9c
MD5 56317f4cb090834c3a396e86803bca49
BLAKE2b-256 9c7299990d2175d588fb28e87c20f9b150a2566d1fa62f34e7431ec528d7c664

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-2.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1e87986a6053748038a2b2cd9b03504f72931f25fe2cda572fb9ec40dab6fe59
MD5 37566faebfcfd5caff466b144adceb3b
BLAKE2b-256 dc882616b1f9076a422726aa92c23ea615f14e004730d564446195e3af590d0a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-2.0.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e276032c7e6b230a28d4281ee42525058374113eee15ed459dd70071498aef70
MD5 29486f4c6123b03dfbaacf2cd2fea751
BLAKE2b-256 85a4e2e2813f50910bee304be34fb3b67315a2c2299541c6a562c9877dce7e81

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-2.0.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 54539b9e95748f89f4eca127a2ed523a18a608f4843111e834d3f2ef58b0247b
MD5 bad67da2272c28654bc406beae2a046e
BLAKE2b-256 13e3cb65f321e8d5fd5e058e76cb49f55bfb94ea3f466fea08d287dd71204ab9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-2.0.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d9c0474ebf0c9b0f52d2e052361bab9c1a0aa124d379e70082046061a1cb4a88
MD5 05bac19e05db1a8c9060dc79f83d3372
BLAKE2b-256 387ef192095ad8a4ac1938da5234523d61132a3054a25a25d3e1384322ab407d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-2.0.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.0 CPython/3.9.19

File hashes

Hashes for edgedb-2.0.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 40b579e42a418900f27ae0550fdb30ddce6e97f5b93ea52332bbd4fceff156eb
MD5 9d72d61eb42c01fb24462f06645d13db
BLAKE2b-256 f9db3b767bad71307184aa6782d612e47818806473feb6669b7abcfc3e0b78a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-2.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 adc659e208f5af7801e601c3639e951d4949a7ac11b0facc2eb7ea5ae78e3357
MD5 202d22f92d14e78b479514fed5683a7f
BLAKE2b-256 a61e16e6cf0e728aa188e3cb85509c8c0b01fae76f93c92bb42e0bf3b8347a15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-2.0.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ae680c568638afbf4e5f9aba518ac32272b70a914285fb1f3baed8835be7fe55
MD5 793c1a4a1d57c3465c78434584d88d8b
BLAKE2b-256 e2283fbec261648381fc246f6aca41a50cf0e97f822b6b48305e6b82e67ab695

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-2.0.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2b8eb4612700025220351fc593c16e62d725c368b5e765d2b1f4c85990018b0d
MD5 5f0d4cd2708be17a13e218aa60332fcc
BLAKE2b-256 57a00b88c69372514cd96fa8d1bf57ea85d4a63cbc25e92a14228fe069145264

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-2.0.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0a1cd918e62a8a2fe130f9318e5c764339cd6e9f03e737167ddfa66fdfd1c0f1
MD5 68134035b6bcf0f4856630310930dfe0
BLAKE2b-256 1fc45cf42fc68ec5382d372fae9ea4d1cfe6be9a5d8621e2cec0270e1894d824

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