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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.11 Windows x86-64

edgedb-1.9.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.9.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.9.0-cp311-cp311-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

edgedb-1.9.0-cp311-cp311-macosx_10_9_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

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

Uploaded CPython 3.10 Windows x86-64

edgedb-1.9.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

edgedb-1.9.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.9.0-cp310-cp310-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

edgedb-1.9.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.9.0-cp39-cp39-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.9 Windows x86-64

edgedb-1.9.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.9.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.4 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

edgedb-1.9.0-cp39-cp39-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

edgedb-1.9.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.9.0-cp38-cp38-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.8 Windows x86-64

edgedb-1.9.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

edgedb-1.9.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.9.0-cp38-cp38-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

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

Uploaded CPython 3.8 macOS 10.9+ x86-64

File details

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

File metadata

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

File hashes

Hashes for edgedb-1.9.0.tar.gz
Algorithm Hash digest
SHA256 70da9f5d73f590b01b0a844a2ba9a4bff2a0e11630beeddae71592214c99ba06
MD5 e187aa573814341b3f1376a21dfe461d
BLAKE2b-256 f710c8364bf39b6c31dbbac17e21d65a9196f9714e1cd4e57306cc3514332a64

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-1.9.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/5.0.0 CPython/3.9.18

File hashes

Hashes for edgedb-1.9.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b56b5ce0bf502ff562ef549c78791b69aca49526d41c1ae3095b9ab70437bd09
MD5 4f833c9831aaaf8e76442e5c140ea341
BLAKE2b-256 1f72dd7209d962ee3cf2983f62f153bcb93edc4b34d00b9bfceafee3a039b653

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.9.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c1989038c996ab4ebd765867cf81bcd87fc17d690e3b927342c65eb3f882fb94
MD5 22208cda748d9f3ca6a458e4af55d1c6
BLAKE2b-256 0c0338bb6828b37cc0f59eb1106ba910e8ee63f31479299d3fe9f08f39e35cf9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.9.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a87fc89425ca947874143b6eef79bdb6c20234cc407970eed80cb46156031e90
MD5 e68d1ff8564f53c0a9475a273fa337e2
BLAKE2b-256 19a8eddd9cc06017975f786e5ed40f5a1cc2a0b49fe7dc38748ff39ae7d3fe1a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.9.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1858d339edd57b026422b7f51ea023ffb8be4b69f762993fabc2e7f7e588eecd
MD5 e7bd7e49c8feeb52f6c1d608195e7231
BLAKE2b-256 7063fe9c76f812a8e6431d5e3f20e4a9d287ca86657aa1ab222139af7b2ae696

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.9.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7b241af68acb5e4108284180a728420a826099c1c9e00104b8cf0e7e923d7333
MD5 65bb8d18a508140a07eeb4e713f6317e
BLAKE2b-256 ea484e60628c466cf3b36e5c3e4f6eb0e79a1dc636e46e7333dd3a7cbe506e7e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-1.9.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/5.0.0 CPython/3.9.18

File hashes

Hashes for edgedb-1.9.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 19f66266b11891cbf9aa5f4402fbad4b85db53c5170bd3a3cbcc5cf0d4e3d6d1
MD5 df7f76dd804b6426a06adcefccbaf37f
BLAKE2b-256 4991ab7d4f2e3c5551e725c896f332ef52f9c0d9dfb72f8f0f227f3d6da05753

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.9.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 73a260fe1aaa340950c6bac2c97210faf92c10562d340fe6fd2d155171ea862b
MD5 f08041308b01dd84b0bf1b0d21a6f0a3
BLAKE2b-256 633400b11d6d7522d748e7326bd4cc8bcb32784327746334d9987565b20283e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.9.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 47a04d9ebed361dbbda32ff1bedf90c99c3311f85ff5f047373a1964ab944595
MD5 9eb13f84ac5e332c8cef28a903fa1823
BLAKE2b-256 264963582c3e15e7fb68fcb2845d6316cbaf11c22d431c68579403502ac1bc39

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.9.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a82374dd8390133e213979a7969839b1185eca8759f4c411d4e23c824ffd3700
MD5 af4a42dde3cb999cf74a08248a359687
BLAKE2b-256 66ffdc1a707b709d926d0e1abc3dd9b8d45ded37e36430e6cd4e8e999788a61b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.9.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8304a8e12988b5a367042a6fdf6f9607ab35a4d3c83bc754405981b550c1a91d
MD5 b505b771609ceca80f961d98707e3c50
BLAKE2b-256 98fc8d839e76860009b5bb773c8c3efc52daead3274f2bd7361d832f1f7cad7b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-1.9.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/5.0.0 CPython/3.9.18

File hashes

Hashes for edgedb-1.9.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b8f5be02dfbcace873145bb3847c9d8aa23252280757d90ef3636309f3e947eb
MD5 846d6c38678de25eb86089808fdf69a1
BLAKE2b-256 e3fd36630cfe8d3c7f18d2afecb3ce684082ef7fa790ab917f0e14f39d16aa4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.9.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4d53daae685630bd81492e40f1b2f1ae931e038b41c4d4b97d6a5d48343fcf42
MD5 9cd830e73239c45d658e8177a7be0f10
BLAKE2b-256 1e5dcb51ebab529455f0c135c3e7c1ff40f24f4dd171f12123cc50bfc2cbd382

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.9.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6747d6bd6b68751d3017a597f10ae85dfd1ccc9f49ccaced267c98f21e6d715d
MD5 2e34a5a9678b668a2b6b0749cd598d93
BLAKE2b-256 158a451f713680f62399d8a69327ca0208edc47177db7082e0324b58b449a1d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.9.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7a7da585c05de54351cee29cc7efae7d68eea23d5987cd4f2e508ddbfa6e48dc
MD5 ebdeb6dc49335f7bb7794b184cd63b38
BLAKE2b-256 3f0b693fcaca42fcf19723b66607ddf44557da6aefd72459f7b8ed7fa2eeda5a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.9.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7931ea4b72c5a39071de9b5e06a0cac8bf03ba2d8fda89a0b59f1f6647bc7fa3
MD5 e0b5a9a986850362bf1979fd050bf6f1
BLAKE2b-256 6b6ad668533d7c8e50ed8e1bf134cd33c0d87ba7735a3d2809bcf9dc9bd3b170

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-1.9.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/5.0.0 CPython/3.9.18

File hashes

Hashes for edgedb-1.9.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 fcfd84a3a5b962ec1e89765c05a2b5a83c9510fdfdf2ebf83a67013f21e243f7
MD5 af00b1cdade895bc5ec0b723e910fe83
BLAKE2b-256 362ee18b546e6f988030f49ff1cca2baede7bc17fd50fea10e2109ce630e9fb8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.9.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bfe6d80d8044cd5ea2662afb68e338b1d86f41a0cd02b53c9dd9abe1cfeab5b6
MD5 136365f985efb44a15c126f5b3bb0e87
BLAKE2b-256 822b71b17eb54a655589c3badac8a21e5dd90ad01df5eb06b966d38614793814

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.9.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 06f23e731b8cb00c5474f2d9d3f162ebdb1af7aa5f01f0e5eadf679ff2d5f806
MD5 609460e249e8086c039b44d290813044
BLAKE2b-256 7968a55271018860b2d5cb26b0c0aaa3eeac3a27353b2f7d61685067f80e2556

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.9.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 32db47c89db6397c1f06749ef6c86bdc84c209d1836c4cf395d60bbc24d0c1bd
MD5 fc2f991c5309b091ad867535a0f5b120
BLAKE2b-256 bf1a0b1a05d45cda2c879fac4e6a77860b1c4cb6f5af66c93ede703807bb6979

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.9.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 17c7f83cc04848c645e5e8b7b0ca976c3b504b0aa541a62be8835102fdf99ded
MD5 3028b24f7e76df69a9dac3b3d117a8ce
BLAKE2b-256 e1b283aaa7a2d109bddf345fd94daa957ce54e13ade6de805a20a243a813f34e

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