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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.11 Windows x86-64

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

Uploaded CPython 3.11 macOS 11.0+ ARM64

edgedb-1.7.0-cp311-cp311-macosx_10_9_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

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

Uploaded CPython 3.10 Windows x86-64

edgedb-1.7.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

edgedb-1.7.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.7.0-cp310-cp310-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

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

Uploaded CPython 3.9 Windows x86-64

edgedb-1.7.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.7.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.3 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

edgedb-1.7.0-cp39-cp39-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

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

Uploaded CPython 3.8 Windows x86-64

edgedb-1.7.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.7 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

edgedb-1.7.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.7.0-cp38-cp38-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

edgedb-1.7.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.7.0.tar.gz.

File metadata

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

File hashes

Hashes for edgedb-1.7.0.tar.gz
Algorithm Hash digest
SHA256 6d881e9fac1185863e9e664e4e8f4f6b4b1e086fb1e30b9a52fb969252b28257
MD5 5d2b398cf4275f2dc8e2fde50ad13a2f
BLAKE2b-256 1293cf92163b7d3bf464dde6f94f77c8584625f29559e8df7c19cf7e2bd10020

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for edgedb-1.7.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1e14e35de20ed44222de8bd6689c4a3571ca314b386e36a4e324504637c1bf2b
MD5 70f29bebeb26fe62faa849b5ac5526ee
BLAKE2b-256 ebfb7c8c0d080733d10bc90495d05221b3582954053a1ca34a86bca82f2b1288

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.7.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5e8d3e11088978248e4fc8fce833e59c1915b36f0b16d507e5fefae5ae91eccc
MD5 3d002d8a2c1a3c6b36a2a32e4095a9dc
BLAKE2b-256 2a01a091f2b36c199abe5b0574b973f90b69ef3b0d472e03d3e51a06be2df894

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.7.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 485e1c6c82714f94f610186deb597f784b79f5deb3b6939b5ea69f8599077625
MD5 79572fa09afad7f94ca85d4efd564038
BLAKE2b-256 e334b890513d93c1f4024e4ad5292402355e9a6086f4b0d21d8f2e5f4799a125

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.7.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f00f2b3ed43aea2e6095d19f895058a6a3f9124fc8412cd9dc3bfbe98e5cab8b
MD5 9eea067053a1fffd6d299fbdd6fb9a88
BLAKE2b-256 ef55e4db4c1ceccb2c6ffc443a1c29a36d93ce8f072aefb3f7963601dc6634c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.7.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 38983e6c5a48b56d27eefc0af1e6bf905eb883f8423086a05bdc9c9133366115
MD5 4b8eb3e3e1eda878b0724cc99c08bfb9
BLAKE2b-256 00786ae6d3afd6b4a43d188c800a39aa25b3dd5362c1aab35ff9f59ebdab6adb

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for edgedb-1.7.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5f8e024ed214d8973d5c3779681ce27a3e882ee9070cc557a8ea1d6915eaab64
MD5 9f972c5ebd30abd45525b3bf8e4361c9
BLAKE2b-256 313769aed5cc4062c19ff98fafa991702721801053baa27c2843f77dbb574e0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.7.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f7d2686ed26ac41ef78b6d41fbab53618490ebb24cf4e30e4c45bc0337a0d744
MD5 93e7cb4860a87a2ac700cd3b8430101e
BLAKE2b-256 f63767f11a59fd0eb8349a50ae2f51023767770c0c2f49c009e2f33b24a5dbf4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.7.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f91d40aa56a6c67bfc78afaaa36c3d441a2dbd2ebbeb81988181b1f01234bd77
MD5 647f108c1ce9be958e724e47db5a3591
BLAKE2b-256 4b2096ed89dbe4dba85b338437bc44d1afd46b6af7982a5ebd7c322042d3bfb6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.7.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cd0e8d8b94e2382a421df78bdcd48fc6b74768017389713309105cd833ed9d6f
MD5 e702cbd24986f271ef940d789e9d5ffa
BLAKE2b-256 9034d01a59bb8a60584e0c3a6a790dc96613c0e28457746bd6fc76e7e28c0046

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.7.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d16a3182282cf9a6c1ae2f5ab4e72ebfea84856f7bcfd31e05f0da013a297f23
MD5 4b846f7ae1dc3e59bd43a7112d7c16c9
BLAKE2b-256 ba901ef677e054f6b40c0cd62c105b9a72472828e61b4d979dcb5314b05d147f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for edgedb-1.7.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3416b9ac172ff3a9ea481171702f98bce0565f16d7fe8ccb5f67dd751d8b7ef9
MD5 4342d4ea4d41db65cf87a04f9a3892f8
BLAKE2b-256 0557283d73d7cfe6212030ad7b2df1f373ffb111dc387a2cd01e110d703a347a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.7.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b27d0f76ac36d3fde3eeaab09a26f50da10f7dbb7d6cd657c6e4ed1aaab29a8e
MD5 77d69c290fa9b20d3dd42601b9542592
BLAKE2b-256 f3235f19c472d09e14f01afe8d8d09e2419f1bf4c4aa98f7ae04221b90de66ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.7.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 73b0423d05ed470f9eb2382d0301e80886c88bc55ab88e4fba44a02e44d2e469
MD5 855251423a68cec96e67c94ee6ec3ab0
BLAKE2b-256 f71a02fc68821e702bada3e918a31cbe8e4f5b091fe6ad76a894f6a6347ee0fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.7.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3281363a76b8cf256fda3217a9506d33f5d86f0ee1c23ff42c277a10e192d70a
MD5 125a779abca7ad7e7260fe8dee5f34d2
BLAKE2b-256 935dcf1b1ea5b5e622d2c289574ede98a863c64d095c21a685469c9ca9998fc4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.7.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 285524addd0aff991d30314f7f0d11d1e2eeb46f05635249b2675b62790d2360
MD5 2f56b0a80db82f9f67ac3a19581e51ea
BLAKE2b-256 6b89b3d081a697fc88a43973d5a9f813f10b1d31a1906e46a560e5a550707a46

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for edgedb-1.7.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6c1535382ef03e0d47ac49bc2b363d4a026535177ccfb6e13837bf7f153c9a85
MD5 103b77677739f9f5e4cd554e3943ad91
BLAKE2b-256 1405b3250be931afe00902dd211d99562ac8d778fc2ea60faa3a373478552482

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.7.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6851a3dd6b9baba5c9cdbdb0d8db68089f897347c417539599246208e1deb5a9
MD5 ee8d0f8d85e64866eb460a4419dd090e
BLAKE2b-256 e67682d889c6169f1d27bc91fd33ccb39f0b2eec7fb131aaf7c225b2e56d8c8b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.7.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 55bca1c6e1e15af85efbc0c1454a0dc712b4de4c9293a6edd2e15acc44cdc0f7
MD5 fd3088ece32aea7dc9a96009729884fc
BLAKE2b-256 e13d66586df488cbbeb0575af4797b2e759e2d1058850c5071a2ca1102f8b46d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.7.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3d579a243789d1f800109f47f106688c9ada02332139fff47885d70469933333
MD5 38f366a276719cea3ed9a938969e033a
BLAKE2b-256 d30561697eb212df43024fa07c2aea35756014508faaaf5064ecd1123b73e93d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.7.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2edbca83c61ed0098c45089fe50ab880698d0ae389073fa7fb1242c94bfcae6a
MD5 72c19a8b74ab0b3ad38f93e87819fd54
BLAKE2b-256 26720e6ec2140746f3150b1cbe61e15ca4a746c65d24b63dfa2966abdaa6915d

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