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.6 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():
    # Create a client for an existing database named "test"
    # as an "edgedb" user.
    client = edgedb.create_client('edgedb://edgedb@localhost/test')
    # 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-0.23.0.tar.gz (808.8 kB view details)

Uploaded Source

Built Distributions

edgedb-0.23.0-cp310-cp310-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.10 Windows x86-64

edgedb-0.23.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

edgedb-0.23.0-cp310-cp310-macosx_10_9_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

edgedb-0.23.0-cp39-cp39-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.9 Windows x86-64

edgedb-0.23.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

edgedb-0.23.0-cp39-cp39-macosx_10_9_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

edgedb-0.23.0-cp38-cp38-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.8 Windows x86-64

edgedb-0.23.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

edgedb-0.23.0-cp38-cp38-macosx_10_9_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

edgedb-0.23.0-cp37-cp37m-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.7m Windows x86-64

edgedb-0.23.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.3 MB view details)

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

edgedb-0.23.0-cp37-cp37m-macosx_10_9_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

edgedb-0.23.0-cp36-cp36m-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.6m Windows x86-64

edgedb-0.23.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.3 MB view details)

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

File details

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

File metadata

  • Download URL: edgedb-0.23.0.tar.gz
  • Upload date:
  • Size: 808.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for edgedb-0.23.0.tar.gz
Algorithm Hash digest
SHA256 8d156f84cb1c937ce73cfd0c09ea9e6c41a37992941e32fcaec7fcefc1d4186a
MD5 0c1d7af4f57c22340ee764ce0b7931a0
BLAKE2b-256 9672e998c538ba658f668a58f5d546b7e66b701160d839bfa61832a13cc8e68b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.23.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for edgedb-0.23.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b155c19f8f096f1048160de4fa5cd31ac643ca5d34f6a7a0f3d2f230bedc8f29
MD5 963e96f1e065657631f8f33a00e62674
BLAKE2b-256 25ceb61a54da2af78df5f4649b71847003045c032d575ddde8fc44a5253810bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.23.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 3.4 MB
  • Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for edgedb-0.23.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1d251c9e2e3d9649e65c60ec683b34d2fc0e683f25eaa6225f9ca1e6b4246831
MD5 18144f915f28d8157c15d5b36408abc4
BLAKE2b-256 c95217dda657e9b551bf97a694b452afe9e2ff88d66c3eeee5d12b02c2602860

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.23.0-cp310-cp310-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.10, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for edgedb-0.23.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ce14321d70be7c1013ad408c1f1355c89646392ed41238f123211d2505034e59
MD5 905afb43d3af5c662e4095d7ab973a45
BLAKE2b-256 24a234f7185321c69373467af228f9d4e3644e8d406c48aa249ef86041edb26f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.23.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for edgedb-0.23.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8617dfa1aa77d168574bbe2bdf5dd6ba5364a84ca0f502e7c336a664c582269c
MD5 cfccf5828970bfaf3a17aef290edb863
BLAKE2b-256 36fd2d29a77eccb3aabbd6d3cb82df5c0bb333404a38ded3e4003d82f773ebca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.23.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 3.4 MB
  • Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for edgedb-0.23.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 73ecdb0f0d1bab6786ad01531ff29caaec437af578bbf22b44374219983a287b
MD5 decb886d1b2af32cddd501228bf13727
BLAKE2b-256 554935cb1ea3a7f49d7d88406b9844c518e6d8d2b71d2dec76c89197528401cc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.23.0-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for edgedb-0.23.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 dd2024953ecb26d92d9f498f05ff66a17ce4830a9e9e1c56fdde0074646639dc
MD5 9f460fb551b65bb7608b79a3beaefb64
BLAKE2b-256 4a2d90843dea410e8bfa4e044694561514b3b4129515c1369d54deb3756de94b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.23.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for edgedb-0.23.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 9357b787d9b7c895fa2b7904e300cd30b28ec168687be4bdc59ce023e9f90b21
MD5 9888542e727467a9a120e1e0481c7be8
BLAKE2b-256 b1e969a145dd6668f1e83038ec9fc85a7b0887743538111aee7a646ca9c3f7d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.23.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 3.7 MB
  • Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for edgedb-0.23.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9f7f8c09835ea59622ebaec703f92ca8810830cb4c68738f4dbfeb92edfe9d24
MD5 153e6a4ad9ce67aba2512652280d1617
BLAKE2b-256 227d0cb0684c384683ad94e47784cfab55236a6968eb4020307004d649044310

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.23.0-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for edgedb-0.23.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2370e97d3bc6db84c5a474caa80ca95f6ae35c96a85b551075f6ade722d05947
MD5 1f7240d45372cd4b1ca9880e7dbf53de
BLAKE2b-256 3a77704ee6eb63d7d04eb33b81a1b7f98f023fac911ade694aa91adc317d1911

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.23.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for edgedb-0.23.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 e7925e37b13255a427e1727a5dedda9164c8559019994aa422fde870d831ee91
MD5 6fad8b10df22cf528283891c7bcc62aa
BLAKE2b-256 f75b36de661e35b1c2b9859c3587cbb7f7f7f19316dfca588cda8fdbd5b56246

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.23.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 3.3 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for edgedb-0.23.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fc71aa865ead0faa880cfef62f3ff44442a78c30397a48c96501b82a63f7b963
MD5 7d786e49abefe0dc64feef3fb18fab5c
BLAKE2b-256 f3d2433099b75f5d6aaa5595328cca2c089d315694edb375ef05af8b7c1adf1f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.23.0-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for edgedb-0.23.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a19ca32a4e6ed7218b65509f096538d239f6d01cebf323176574aa4691cdc01e
MD5 790589221994bfeb555f49da3bc6df98
BLAKE2b-256 e0af3a43fdff29c0516782724e1c3285c69d233b353306013310dd7687888b9f

See more details on using hashes here.

File details

Details for the file edgedb-0.23.0-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: edgedb-0.23.0-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for edgedb-0.23.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 cff72f809b3b8afe833de3d5f099424276a250ee01cbcea552a8fc92357b039d
MD5 bd5f33953c41f1623b97b2b186cb1b5c
BLAKE2b-256 7c47863214409684e973fd9a07b82de9f87e53e76b62f1f19c81ab09e13f3393

See more details on using hashes here.

File details

Details for the file edgedb-0.23.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: edgedb-0.23.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 3.3 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for edgedb-0.23.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0743c4f8fe105aa2ef0f0323fbeb7ae60514c5474c7c39612eb933d048364880
MD5 6b1b5fe86ef52b3aadd4080057df0f9a
BLAKE2b-256 a9a9908084e3ab1bbd6952602f8e6c882d96653e9811634d65ab476d2ef14e47

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