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.22.0.tar.gz (808.9 kB view details)

Uploaded Source

Built Distributions

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

Uploaded CPython 3.10 Windows x86-64

edgedb-0.22.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.22.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.22.0-cp39-cp39-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.9 Windows x86-64

edgedb-0.22.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.22.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.22.0-cp38-cp38-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.8 Windows x86-64

edgedb-0.22.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.22.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.22.0-cp37-cp37m-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.7m Windows x86-64

edgedb-0.22.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.22.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.22.0-cp36-cp36m-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.6m Windows x86-64

edgedb-0.22.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.22.0.tar.gz.

File metadata

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

File hashes

Hashes for edgedb-0.22.0.tar.gz
Algorithm Hash digest
SHA256 ead71f722ec65c30f1478e504cae43fe00bec2cc1414093b1b436b949814605e
MD5 6fd26daed5492350365cb2ffbd0c23d6
BLAKE2b-256 250a76618377b74531914d29e4943fab65e48832fd6a19d6c3513c450d601b98

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.22.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/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for edgedb-0.22.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4c745019cf51f533374db663222c4f390b0c05a26da33e79fa042161b28b4570
MD5 3a6fd03d538983e506b0bebdca2cbfe7
BLAKE2b-256 0ba711e145dfdfac04fa65d5972b059bdfd9bf5a4a6c827b3059e63bb89ae648

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.22.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/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for edgedb-0.22.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8fe370d3effadc082db97dc2e57854c141ff626790425a71c5ff6ed28ca066bf
MD5 762ac48b28d47e66bd02e24e873d35e8
BLAKE2b-256 75578592718b5ff7eaab43ffdead86ff51dfbdc75fae6f6435e7a993e1d226b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.22.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/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for edgedb-0.22.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0586e5c62a33b41638017cafce00f83aa2358988803ec7a66b60779336ebbefe
MD5 e8ba512fa7ee83c26291cbc141e17561
BLAKE2b-256 c9c4b2fe0437ca4620378c1c5dade2ee33a22737ebfd54b75f1e844bd35d921d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.22.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/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for edgedb-0.22.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3bba78c3c62bcdfc4be5e84282e91a85ce6703a897012933d9aa2280953851af
MD5 543c3e360b90deaf817bef1c2041db86
BLAKE2b-256 1a3dda07bc817c57a2c50e67c32646a26287fd9fdef22877d7d71b13b6f9030d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.22.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/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for edgedb-0.22.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8a45e8f8d035dec5c6fadf8739cd892a3f5c3bae326709d73eccf529a5a13b36
MD5 1fd629f21643d2b9bf7fc8e6c9354cb5
BLAKE2b-256 f17a7634b14f55e323e19f7c7f8ef4ea97b67aedec674736a710f153eea42f06

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.22.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/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for edgedb-0.22.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b8e21ef27ac45b645de5c54f5b3a9a7dc2aae072911c857bec8d0b2283760196
MD5 903483200e15f09b82df2742307de9e7
BLAKE2b-256 c355cd9d28ba70b282b201120ae667d93ea315875cf26bbd27ba1e3476701fe2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.22.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/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for edgedb-0.22.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 71b99c0cf2d1837078162a2306e0fa8b3880512d7d36f995157766bce4e1f39e
MD5 52f9ff032d6ec528105bdcb2db78bc99
BLAKE2b-256 dbb62496c750de6630cc4c1f757a4dac2dc8787ea9234750ce281fd6972cc090

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.22.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/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for edgedb-0.22.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 60e14a1d6950f7ff916530a7becca46a569320e386a1aaf063a8dd6defa1a183
MD5 ff961d9c41d6b60f4a7525dd98605b4f
BLAKE2b-256 29bb446ddade10eddb514c9000fe675eb2526c1e9142c6cd915ec2628bffd5a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.22.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/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for edgedb-0.22.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 12aca429fab474bd70cffe5240d2d12a068375755d84231509f8403aaaa3292e
MD5 ecd9c1f233f45c3c94d5ce6afe391885
BLAKE2b-256 072034ee9aba29a2f009388c2282d21ab74384c981c430af9e82641d2e343ad3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.22.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/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for edgedb-0.22.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 bcb0b62097e4d6d6174444265d8b37e425e258a2c75fa32453fb35addb9a7c1d
MD5 9105be154e8fbe05309520d0b1f2e208
BLAKE2b-256 62947dd0fc1ab93ea15351b4af9bcf907b8c674fe4d41278befd0c1e3cf04691

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.22.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/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for edgedb-0.22.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b731c792d933b04f35f49ec8e91464fc3aaba9edc9033726a383e2a67176aaa3
MD5 207322c60a10bdb8e7ed982734d24570
BLAKE2b-256 3da4954e6e42fb2ac1842e25d9b1f96e337f671595b4cc30a4cf8c334af925de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.22.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/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for edgedb-0.22.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 19450656f94f53f5bc787a427337276ba3f0442e5d71f80c286ae9a47b67b7d7
MD5 10d03040d1dcadf32732f8c2a8af1317
BLAKE2b-256 030aafca22547216668ba65972466e9557b676bef9c4edf41f1760c3c3cc64e4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.22.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/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for edgedb-0.22.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 2e3879790261cb739c4d3d82b433e7ec29b22b3ee4bbf61a4741b386484a2792
MD5 7d7cbfe064b44b2569f1c32dc70327cd
BLAKE2b-256 5f8083e90a3386a94463c7a10139f8a2374aa8b80165bc839719bd6b6509b283

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.22.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/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for edgedb-0.22.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8c15dd990a368717e774f4dc6be325363f4a7c279aa1b15017377f9b039669e9
MD5 eba61155e307d032fd1715e76467f630
BLAKE2b-256 8fb64b8ce5ade9b45cbf95e86b1d761a01c924b0e6e2efcde707f3eb57d128e2

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