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():
    # Establish a connection to an existing database named "test"
    # as an "edgedb" user.
    conn = edgedb.connect('edgedb://edgedb@localhost/test')
    # Create a User object type
    conn.execute('''
        CREATE TYPE User {
            CREATE REQUIRED PROPERTY name -> str;
            CREATE PROPERTY dob -> cal::local_date;
        }
    ''')

    # Insert a new User object
    conn.query('''
        INSERT User {
            name := <str>$name,
            dob := <cal::local_date>$dob
        }
    ''', name='Bob', dob=datetime.date(1984, 3, 1))

    # Select User objects.
    user_set = conn.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 connection.
    conn.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.18.4.tar.gz (822.3 kB view details)

Uploaded Source

Built Distributions

edgedb-0.18.4-cp310-cp310-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.10 Windows x86-64

edgedb-0.18.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.10 macOS 10.9+ x86-64

edgedb-0.18.4-cp39-cp39-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.9 Windows x86-64

edgedb-0.18.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.9 macOS 10.9+ x86-64

edgedb-0.18.4-cp38-cp38-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.8 Windows x86-64

edgedb-0.18.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.8 macOS 10.9+ x86-64

edgedb-0.18.4-cp37-cp37m-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.7m Windows x86-64

edgedb-0.18.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.4 MB view details)

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

edgedb-0.18.4-cp37-cp37m-macosx_10_9_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

edgedb-0.18.4-cp36-cp36m-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.6m Windows x86-64

edgedb-0.18.4-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.4 MB view details)

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

File details

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

File metadata

  • Download URL: edgedb-0.18.4.tar.gz
  • Upload date:
  • Size: 822.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.18.4.tar.gz
Algorithm Hash digest
SHA256 9f76a11dab2923b3977b6a2a85387bb32414e7a3bc02957ecbe4382231b3cafe
MD5 e866bad9da109f6b41c67b1940177cea
BLAKE2b-256 53493851acda3d014c3485c16bf35b953ad27cf8d24a15c960fa04d04c2db727

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.4-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.18.4-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a55d2d871f1877307a6335ae9fe64a170562b98fc3c59483b40a3f87813acd83
MD5 7bee8811d59453fc4b887f5d4fd634e1
BLAKE2b-256 36c49f88338059140d4e384445947d0f156d17c1350ebf6296c0e78c73e150f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.18.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8388b8fc6f20d30493a6dd1b82cf863f92282b0765e0b6b0b492fb958a21233f
MD5 c68187c9b91e460a48211314406133c6
BLAKE2b-256 d10974ffc6476bd10322715f916553c06896c1b24eb451a34455087deb9c9b6e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.4-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.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.18.4-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4d748ce462f5f908ef494b64838b50ff544575d637971159daf83dd9861609d2
MD5 98d0d98681843bf09255a9c1ff48c127
BLAKE2b-256 b7926f0ac8e43a6a2f4d4692f27ffdb346fdd25087a3983ab69ec542f3ec0de2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.4-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.18.4-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6425fc2a44fd02ce6a03aeda3b9fe4a17bd07d0ac5541b7fa735449a1a89b9c1
MD5 466608e1959fe37ab4fcb47b667d9820
BLAKE2b-256 0d2d93c067f81d4927b5bc8586d2b680cd998980048eb284a90aac6938ce0615

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.18.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 68aff677822647a551be8df1e2b66a4b7ae93c555104f9180677361764ae06e5
MD5 1542928b0f13924834e8ed13d3316b4e
BLAKE2b-256 3a6ea0c2dbd58915240bf671bbf8d85fde0349e2267960b2c24c09ef55d44a9c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.4-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.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.18.4-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 22f8cd59fea2d9db0a21085009246e7b1ff2613e96ba2b9322b38ffd0256b3ed
MD5 5d1bc83625784243e32b5382005a2ed5
BLAKE2b-256 5285c8733b7226b301a43e7b01630c46f6447ee073c977a17dd85b5e7be07923

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.4-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.18.4-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e8285ef0a528d603e1c261956041b865918f7a740796f2592d68d2626577a87c
MD5 cf0cf245119b1cce93a03e9759318fd4
BLAKE2b-256 ba89e4d024594013dc0ed973cbf9d59ba32ddf5672abcf53bb2c89fb8456cc1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.18.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 89fb97a3f6066e006d7b7721371142c6187104a28da0e18fcd893054d9196e33
MD5 4a8211526b2617e759808ac0a7dbcb74
BLAKE2b-256 2a8300e585b589e0f49e06369c3c57571021f29db06e2700b83f79ca0e630ad6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.4-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.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.18.4-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 06fc7ad7982bf5c028b184ab1b7633707dce4a15bb83978291c6d90255719250
MD5 80124e42fc4be59fc7c88996e46ad0af
BLAKE2b-256 d9aa432beac82fb74ae8b30937e5b70d1c8eccb7cde79746ba56a46651bb54a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.4-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.18.4-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 618ae06ade49c1cde2acdc8d489865814e69267a32f633550898be80ad468693
MD5 8e5c1194b33761e5d042143c49110d18
BLAKE2b-256 88d24c211b5dc5230c90f3d222a2fdeff349d21ff41c11480ba9fef8993260e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.18.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b3200a3ea92128436eb1add05d738e903c4f87ffcf94f21f2388ec0998b250a4
MD5 3f292f8811e13f207285ba2b07b6352d
BLAKE2b-256 4342273603603317251479fc0a8f8b0902e34cf5490a271b91043b8cea6b4b6b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.4-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.18.4-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d4d8762fdf8b751af77e441c8cfe04becac2ae73a78e384088d3b70d71569264
MD5 40289a44aa56e7fd9a82f0d0c711429b
BLAKE2b-256 b0e7be8565d8e75c2044e5e323bc223ad307e874de2aecd5eb2ca8ea2b5b9b95

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.4-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.18.4-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 d421d234eb7a48c1baf12ce1785036b905c9d47f538577aff2cb91b815c12996
MD5 cfb3327bc18fa83c08e783ea5554fdca
BLAKE2b-256 5ce2919f746583b7257f889094ad032e9a74c6780ba3e50b4a4e0f6c7583592d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.18.4-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 181eb7bf4ae6065797d79eff21bc6f5f13caf884c43ef50efd0ae05927458246
MD5 40b19d9079908db2e96d13731f47ca9b
BLAKE2b-256 6d35adf2ce7d569e1119cfc798bb100c99ae09c7b3430882f07de7d179fefef1

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