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():
    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-0.24.0a4.tar.gz (856.6 kB view details)

Uploaded Source

Built Distributions

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

Uploaded CPython 3.10 Windows x86-64

edgedb-0.24.0a4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.10 macOS 10.9+ x86-64

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

Uploaded CPython 3.9 Windows x86-64

edgedb-0.24.0a4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.9 macOS 10.9+ x86-64

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

Uploaded CPython 3.8 Windows x86-64

edgedb-0.24.0a4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.8 macOS 10.9+ x86-64

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

Uploaded CPython 3.7m Windows x86-64

edgedb-0.24.0a4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.5 MB view details)

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

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

Uploaded CPython 3.7m macOS 10.9+ x86-64

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

Uploaded CPython 3.6m Windows x86-64

edgedb-0.24.0a4-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.5 MB view details)

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

File details

Details for the file edgedb-0.24.0a4.tar.gz.

File metadata

  • Download URL: edgedb-0.24.0a4.tar.gz
  • Upload date:
  • Size: 856.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for edgedb-0.24.0a4.tar.gz
Algorithm Hash digest
SHA256 a8ca84f0afd90d5476abcaf53e55873e1d958ee6e09cbcc76c5c410329e23f38
MD5 ea813814b2d90926c62564599dfdc69f
BLAKE2b-256 c69cf77e304975d9db999c22c251b230f57d1f4f510219867ce45c2defea8fb1

See more details on using hashes here.

File details

Details for the file edgedb-0.24.0a4-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for edgedb-0.24.0a4-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f1f999badfa3e279542926f0f6aa3b3aa049e3132ffe189e71bb403ca973a52c
MD5 adb2c5e251422f5dc76ee4e76072dbe2
BLAKE2b-256 d23a05858ab7112c1dec3789ee4284d043ce3439d4742bc977e22479f0dd19bb

See more details on using hashes here.

File details

Details for the file edgedb-0.24.0a4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.24.0a4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5b7849a77fe5a1148f65eb992becba705b088a617d0a7caaeefc51fc9f72e2a7
MD5 7231d1b6c3dc1c85c8e326b770707b71
BLAKE2b-256 9b42874c5ce19244ec34c5520faf25a5ef5fbc23135adba886986caecbe4e85c

See more details on using hashes here.

File details

Details for the file edgedb-0.24.0a4-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.24.0a4-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 90f449494162e153900bfa1e404875922e26b01d71bc3cc425393a15062cb534
MD5 a5070c3bbd6db99d819076fbe73b0d0d
BLAKE2b-256 784ac48c3057fe38a283f043e58ca01f72fdcca08c6ae4f1befc45a0fe113515

See more details on using hashes here.

File details

Details for the file edgedb-0.24.0a4-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: edgedb-0.24.0a4-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/4.0.1 CPython/3.9.13

File hashes

Hashes for edgedb-0.24.0a4-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 cf2fce29e5af2b301f3652ab0764d7f245ce2078463e451cdacecf55422602b0
MD5 619605a3cc8389ef1d664b0a44702aeb
BLAKE2b-256 2e7a6b3798225bbf8e24b15b5eb263bb55cee70448fe31f297e7b20578cddf7b

See more details on using hashes here.

File details

Details for the file edgedb-0.24.0a4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.24.0a4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e2d94fd49ab912d17cea12d20a824656976bdbdae094950e255a441cfee56c6d
MD5 1408341a9ffd5e9dd2b1f9d29c1cb92b
BLAKE2b-256 55fe2f74e1cec5dee72bb4a6792cddb2bdd7c9c1f22da7f3d5c0839e57225299

See more details on using hashes here.

File details

Details for the file edgedb-0.24.0a4-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.24.0a4-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 66e175d7ea1eb50b35862efeda8bead15a6bd084c3a2c7ee27f7a5d447293cd9
MD5 306d8d8c4b485eec117d2665035c7d08
BLAKE2b-256 5ffc259310f1cd7bf068ae24435ba0e69e41c8f79c490e1648d77aeee75c62c8

See more details on using hashes here.

File details

Details for the file edgedb-0.24.0a4-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: edgedb-0.24.0a4-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/4.0.1 CPython/3.9.13

File hashes

Hashes for edgedb-0.24.0a4-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b74cb20dc97c51ec6e8fa58532a924568fe590e212087571391162abbda176c8
MD5 a879cdd52f11278226ec0d0bbfe16fb6
BLAKE2b-256 e31c4da7fca17e2b3d18798d88823810009cbc8920b5a728a68da4234a361a51

See more details on using hashes here.

File details

Details for the file edgedb-0.24.0a4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.24.0a4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b34a4130865746d5f0f4c95c730778c300c07ec89024527f2d6780cd3fa4d806
MD5 d267a107b43db998cad4ee9ea0c81649
BLAKE2b-256 4a8e0be215d2bc40d7045c449c559c034ab929adb4f8ac83cdeac72bd2628a78

See more details on using hashes here.

File details

Details for the file edgedb-0.24.0a4-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.24.0a4-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 17af3322e382593513f593e5848eee3c9989e69d47773dd1ff23ebd96afde4e6
MD5 2c275d88f6c47da99aea7a89e533104f
BLAKE2b-256 0f96339f02dad7379fb3aadeba165248312aa16b0a1a2bc06603e1cd2d39f538

See more details on using hashes here.

File details

Details for the file edgedb-0.24.0a4-cp37-cp37m-win_amd64.whl.

File metadata

File hashes

Hashes for edgedb-0.24.0a4-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 3de1448a83ca97221ac7b6273e2424b4d9846c4203f62fb3e5b4b31b32d4448f
MD5 949ab375e55c262398b20cb46486308f
BLAKE2b-256 cd42a4fcb7f8cd1b0294bcecf2a94128844ecb46409b06f4fa46100351540fee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fd2ecb4cae3c806113b5dc6b2340af7a8f4f2004db7d23ff838efc12ac2e88eb
MD5 3ff57b8b3eafc10139ad7a41672ec8c5
BLAKE2b-256 15167105747d1e8fefa9b1512e945eda91cbd32ba7a72a34731909de6d7d9829

See more details on using hashes here.

File details

Details for the file edgedb-0.24.0a4-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.24.0a4-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 37274c2305c40117f7af339810b1f61177ba8d5012949e3c08cd0b533f62ae46
MD5 63d8b8ba6d0a099ff41f5aafa5db995d
BLAKE2b-256 c8335b3ead2cc45de849978d0f74e2cb92c5ca799bb58bda3619518b1156667f

See more details on using hashes here.

File details

Details for the file edgedb-0.24.0a4-cp36-cp36m-win_amd64.whl.

File metadata

File hashes

Hashes for edgedb-0.24.0a4-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 3fa32daab843590182bd13428e56504236cf34b7cfec7493ddf1f00c3f58bf2b
MD5 c46648471727677e8c92fc0f3ef993bb
BLAKE2b-256 658f6bc27154e0739e8fb2ffd40d462abdba1c29223a2cd5d9b7f956664b90d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a4-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ab8bc28486db1a3a480ba50e167c6674ff21e078e1481d959502ad6f73bf6f9d
MD5 0ee922b24e3fd80b6391afcbe49a006f
BLAKE2b-256 db413ca50b4179f71b68ef96bc9cd89f1b52377b77f73ffe58945fcc6d9516b7

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