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.7 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

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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.11 Windows x86-64

edgedb-1.6.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-1.6.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-1.6.0-cp311-cp311-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

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

Uploaded CPython 3.11 macOS 10.9+ x86-64

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

Uploaded CPython 3.10 Windows x86-64

edgedb-1.6.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-1.6.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-1.6.0-cp310-cp310-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

edgedb-1.6.0-cp310-cp310-macosx_10_9_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

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

Uploaded CPython 3.9 Windows x86-64

edgedb-1.6.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-1.6.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-1.6.0-cp39-cp39-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

edgedb-1.6.0-cp39-cp39-macosx_10_9_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

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

Uploaded CPython 3.8 Windows x86-64

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

Uploaded CPython 3.8 macOS 11.0+ ARM64

edgedb-1.6.0-cp38-cp38-macosx_10_9_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

edgedb-1.6.0-cp37-cp37m-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.7m Windows x86-64

edgedb-1.6.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

edgedb-1.6.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.2 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ ARM64

edgedb-1.6.0-cp37-cp37m-macosx_10_9_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

File details

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

File metadata

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

File hashes

Hashes for edgedb-1.6.0.tar.gz
Algorithm Hash digest
SHA256 99989d00306f396c3283abaa69ebb482e6a75e6b2e12ec15d3b9fcc9a7eafc99
MD5 ecae86a2de48e89f69db9bc4c1149d78
BLAKE2b-256 e7f1a0780042c51ddf74202e4f51cb71445e0bbcd20da35ac9d96ba8a35daf01

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-1.6.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/4.0.2 CPython/3.9.17

File hashes

Hashes for edgedb-1.6.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c98c35f3000d077b0639330ee30336626f7390cc0a3307532b16464ecf482a4e
MD5 bd0d8466f24ef64b728390827933260f
BLAKE2b-256 9795b16c9b46c06a52c0833a42557d399ffc0dfd7690250ceb49c09e9c790556

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.6.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3cebe6e3128e61ef7e3d41f27782d33e6937af8340eb688e3dd2d065387f4f3f
MD5 57d99e154603acf2eda564473d7db7c9
BLAKE2b-256 f7cbb8d737def8999fd57980565710f5c4a874a7f172ea972c988a1d8e7ce8de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.6.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 bec2a077b9416f26568bca2f1fcdc822f742a66febc071381e203118248b5c70
MD5 2aeff8850fe4f9a18a25d4c617e2635e
BLAKE2b-256 9ddc32a1eda980c0fecf05932df4ab3844ff0f32353aa17372a0387e96593c4d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.6.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 663faf34d33bff93770f9cc6ce8f8457270258a1608c09c9b02bb5db65c917c5
MD5 2d74bf330e74982f71f7743f04b8ce46
BLAKE2b-256 261cd785ab680b22ff13d1dedac849b349d95f95b472198d6130a052a464431f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.6.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4a41fabd80caf04e048db9e8dc7345c24ec04a8fed17a3641b54d7af210b0c45
MD5 abd63b6a5919b70e6181e2cb862fdd6b
BLAKE2b-256 a6d6e90318766cf50318eeae559a1702e3af586e0b5915983d6e78ab26b046ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-1.6.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/4.0.2 CPython/3.9.17

File hashes

Hashes for edgedb-1.6.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 312389df1f7d96b050accbe0901cecd46076de948c273f7ed717f5cb3618df8e
MD5 62f95bc1ad6ac19a90440566bcdc4814
BLAKE2b-256 344dde9168e7bf7d837ed78017aca1bb4d6045063c5dff6373b8de1467e376f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.6.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 aa2d2d5b1e43a75e99ba07ac880b9f2ebef11937494576763dbc0539cde5bc0c
MD5 4452f906137b347ab2f87a3f82abe435
BLAKE2b-256 1b1c08b7a6d20de9ee796b5f444971b36195490d70fa3a287fcbfa856c9627d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.6.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f161f4593381a9153164cc22b4b4a5428e1f7f2d007c9f98b259fd61f35b9194
MD5 d7ed84c0cc679c24cc131b81257bfa3c
BLAKE2b-256 011ecc8f2f69d3c09b3bf2a34683409ce032eb1f23164eb0c77518c1f6bbe660

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.6.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b4c2e1fd41431bb168f5bbaa43e92d2b14940baf215f86c4c3a513a7d162b304
MD5 c6160aead21f2bc6cf5aa0a41dd4715d
BLAKE2b-256 6e044c68b14768c414a0b0267aaddc52640cd9433d14b6ceeb84e6a4de3ce0ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.6.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2485bcf1c279c428e0c4cd96aaa1523e073687eff12c28631b4e16d7492ac5a9
MD5 748e6aee66c601c1a408ab294146b926
BLAKE2b-256 c8947fc40093be66d71a7533ca5e427968331f62740831e2f1e8a87a401c27d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-1.6.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/4.0.2 CPython/3.9.17

File hashes

Hashes for edgedb-1.6.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ce11c2daccf3ff0b6259838a123bc9c07c6077179871e0e373c3f04d0afd507a
MD5 42856e0105bfb17e68ede96404d6bd70
BLAKE2b-256 ce91c31a8a3dcb87a221f81c76513c99557ab46465fedf5211ba1edbc4226240

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.6.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 865842f0be41b78c4e10312d093e0cee2a5d1088e2b6f5ecb23aebe7f2327768
MD5 e8e1089bcb15aea4462a7f29acfe9e48
BLAKE2b-256 d02b579b53d5beff268d06411c4e2337a1c6fff0b1d89e27c8480daf82c65445

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.6.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5587a994539a5026fb1ea3c3e3e33aea961a453e8db5f7a3b99e2f51d8d9e4b7
MD5 6c4a6981532661e698e57e1d8680adfb
BLAKE2b-256 6213f10a1018809c9d22a1d3b66d69c53cd81615919ddbef43789b857342ea69

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.6.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c1e601abbe201ff1fbb5a05546aad663d36b6d48e2f449d38df5e26a24fef527
MD5 75f2187860fa1e180f5bae19a3ca5327
BLAKE2b-256 c62c543ad1e934321714550bcb0eb919e5a513cd8be2eb12fbde1be2814f450e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.6.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 717074c531244dc379cd6fe991c11775bebb290fcb21566ad2cb000bd24443dc
MD5 a32848d5a50a87eb276ab46b1ad4b0ee
BLAKE2b-256 9fa5b041ff75fcd89a10b8d83ae3b5c923a6030e589a806f983cb74a7e83ce07

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-1.6.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/4.0.2 CPython/3.9.17

File hashes

Hashes for edgedb-1.6.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0ff5195a17972758f56644ef65ef57fa972ab251ebea1f149ada97e57bbb2f41
MD5 20d0fb1dfe9c43e65164dc0ea25699bb
BLAKE2b-256 fb0d6cbd3b485f8ae94f5840bb797456b57f67b8d1566c90663cc4099e5c235a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.6.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f0045d02423dcc384c4b52c4521466d000ff3849eb2dc679cc3059a7d5ab16b7
MD5 15aba11ec53f7e01281053a22632691d
BLAKE2b-256 2305690543f44c0472dab2746607f45728708da48d2dda8e58296eddaeaeb4ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.6.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 41513ece7cb9cc2c53e269c5e89dc9e7a0784bfab83de46be088a371b9981b15
MD5 435d8de4bf38d41090c421f186be628f
BLAKE2b-256 1bf83bb882d62f1f8433ce4f75a409c99392d1365b79b7a33de9a6e53a4eea11

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.6.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 10563d67e115ae64daad4dff9ab3237a6fb5bfe837199ce0067862974d4a223a
MD5 058ce5679d717184547ce20390176862
BLAKE2b-256 1af5e1c2a3645520b81ff9c75e41507214557e969132881e72c35c3bef72e926

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.6.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d424acd1da80dbf34640ad08adcda365cddfbc4ba14c51d28dcbdd628af85a47
MD5 44bc545657966193117fdca5536ec0b3
BLAKE2b-256 fdec0bfda7b000d03f42fa894bd61c6cc77ac5a9b0f161d5904866b0bbf7fa1a

See more details on using hashes here.

File details

Details for the file edgedb-1.6.0-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: edgedb-1.6.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for edgedb-1.6.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 17059cc078fcdd152c1aaaf182ad61d698ded28a314d6d6fa2aaf1c865807949
MD5 2551f43318e3ebd3551b2d674bb0ff97
BLAKE2b-256 6fff78ae8c2f9dfac4944785f9991fccfbe102157a446c55a38b8011ad6939a1

See more details on using hashes here.

File details

Details for the file edgedb-1.6.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-1.6.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7ae6242826069718a894d2d17284f1268b71032dc49ca1175baa5ceb4de78dfa
MD5 f9f4fcdfa1900af29873aa9f97454461
BLAKE2b-256 eb72199552e2a8718f6f28fe5b0541ab6a64c50abdf037aff8e2eca1afbfb68b

See more details on using hashes here.

File details

Details for the file edgedb-1.6.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for edgedb-1.6.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0239ee3d918390a8b7193bb211fcad245c1b7f77f1b9c2df452895bffade584b
MD5 74a61a373500059a2c28dfc74477ed4d
BLAKE2b-256 fc91f25351357c7597e94234b7afb884c0dbc241942555e8b650fe638525850d

See more details on using hashes here.

File details

Details for the file edgedb-1.6.0-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-1.6.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d4d2245b284ce2d7952d1cbdd7b90fed05253bfbb7a64c1dec32060bd3a5a134
MD5 2470e82186d634190d975d0423f74b81
BLAKE2b-256 77da9d9277e8960d41de6615cad04ad8eabe9529f3fe18bd5c42fd6d42075961

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