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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.11 Windows x86-64

edgedb-1.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

edgedb-1.5.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.4 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

edgedb-1.5.0-cp311-cp311-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

edgedb-1.5.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.5.0-cp310-cp310-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.10 Windows x86-64

edgedb-1.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

edgedb-1.5.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.2 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

edgedb-1.5.0-cp310-cp310-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

edgedb-1.5.0-cp310-cp310-macosx_10_9_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

edgedb-1.5.0-cp39-cp39-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.9 Windows x86-64

edgedb-1.5.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

edgedb-1.5.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.2 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

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

Uploaded CPython 3.9 macOS 11.0+ ARM64

edgedb-1.5.0-cp39-cp39-macosx_10_9_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

edgedb-1.5.0-cp38-cp38-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.8 Windows x86-64

edgedb-1.5.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.6 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

edgedb-1.5.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.6 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

edgedb-1.5.0-cp38-cp38-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

edgedb-1.5.0-cp38-cp38-macosx_10_9_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

edgedb-1.5.0-cp37-cp37m-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.7m Windows x86-64

edgedb-1.5.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.2 MB view details)

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

edgedb-1.5.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.1 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ ARM64

edgedb-1.5.0-cp37-cp37m-macosx_10_9_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: edgedb-1.5.0.tar.gz
  • Upload date:
  • Size: 997.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for edgedb-1.5.0.tar.gz
Algorithm Hash digest
SHA256 ea3bed4b6beea803a70b2937d5f3acf3d4cadc7b9d1c57058aa8103aa86f3a5f
MD5 a5efac4606b2230a840b8a9281cbc759
BLAKE2b-256 86813275d116a031578556bcd9b31beba689742ef343279351fc41e336568900

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-1.5.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.17

File hashes

Hashes for edgedb-1.5.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 455f3c884f56a21df578a578d2bf37b63d8d9ddd6b7fd9299e90ee5c98638265
MD5 d2dc4a054b49b0460e7b735f62455497
BLAKE2b-256 e8b44f9438b8807a7c481de9ad665b650a5935e46cc5a20d04c617d28750374b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0529792a14250eaade5d5b5221ec25da66bdd5744670060f7a848136a57ec804
MD5 83388bacdef1fb30e80e80ca539399d3
BLAKE2b-256 55fc44a704e5d317d128f4227e799d868b68ef575b284c4a3b321468aad6d0f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.5.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9596e2acb96ab6c122f73727b13a7f45e933a809a7cc1bd758a4276d5c2c0537
MD5 b44c858281be2646d90d11afbbc5a2f6
BLAKE2b-256 5cd0d9189d4a5c3a60e9e3d68e6d2289af65b39ff7e3fcdcb2690e2d0255bcc6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.5.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 354a702f0106cf5502d2b7b30cb240091c38c94de0222c8452648e762c04b63c
MD5 02d3e913a578ba3e7a4aad82323bfadb
BLAKE2b-256 a0f8aa30647e82ed5cf58c73a87ac219b313840be11dce86783b6419fe3b1edf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.5.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 12fe69481c6b0908a1c3305ac7cbf7ac963c0cbd8e675330d65bbc5cfeaa45be
MD5 8d2678e398196869c33c94f7dd3dab8b
BLAKE2b-256 e2008e90b1d06e573daeafc39d31a7c88364823d1764f9c36865a54e58ef00e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-1.5.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.17

File hashes

Hashes for edgedb-1.5.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 54558a4f655bc937a6ceeb349c73dbc59d75b8ced0d1b820584249549f84f8b0
MD5 8a389ba05a5bb6428f8ce32cc0f05bd5
BLAKE2b-256 fef1069b79700854fbdc545047db786f198cea1bc06380f684ed2c79db722541

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e4fd4fde729891459223f54823d14ba9d94ef436b91572ed969fc3b648d8d6ad
MD5 bdb31ab307f3f1101f99610dffc09978
BLAKE2b-256 b1253f2980d36c87f415dd7a3dcc92dcd199b68a05d4e18f5efa058e8dbc17d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.5.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3035eb0531a3ce30815eb3ef61328957214143fc5c6bfcbf9b8d0f065b952334
MD5 192149ad9363635c082ffd1e55e4080b
BLAKE2b-256 514942a205948946fe76a1040ab14ef9c2d0b7db4b8de57a48d749a64902ccd2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.5.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d8e6f8cd1a4213146d21a3c413a78c45e50261d3451ab3abd4590c72fe5c44a5
MD5 38c8a25c36e3cc2f8e80df7c1b126ad4
BLAKE2b-256 266a5896ffec4c69f183b829cb37b5420ec22886360f970bd6f7ec5c50797788

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.5.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a3b3c90afaf87869e12de9707695e9024d0565ad655bba4115a23b4f70fd2070
MD5 00861376523fd97367e6ecd2a4a51162
BLAKE2b-256 0646a789a48be299da66bb255e3ac9fbc2eb55021f090015f263f48c1862773a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-1.5.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.17

File hashes

Hashes for edgedb-1.5.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7690270468b45136824f6f31f8b9e3fd3556306285192d5b68586955974dd938
MD5 c05fa119e989502be64ae1e463516172
BLAKE2b-256 3f15e229f1ae5584325d08269ff429b395f377c9962254af609791716150f8fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.5.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5d11386fc5a80f7c7494125205f58a4e8563e4255b4a77dc7262e1914f4b81ef
MD5 8fc7105ca50ba1bd5cc4406075045bb7
BLAKE2b-256 6fa1d877272272a1a64a9dc33d488de77a3ede09b479b711bd1fbb4a29e585ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.5.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0313634473253962f9619935d6cfa53dd1cebfd242464006110f01f5388bb0bd
MD5 87d837279d2149833f7785fa6f388388
BLAKE2b-256 a0de30c8732b0bf5ee901b5dde816292aa93534704f255728f50b14ebeba4554

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.5.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 99895e0eda671523035c801d1e64a7a421b3bacfa3557e5abd13274e44a2c195
MD5 80c9df5e14595d80cda865d1949aa4aa
BLAKE2b-256 beb9782695e76a3ecca1cd2b41f688882c6d8a50bd09b9b4da67d5b080356e30

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.5.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6b13a0292d7e14c93e9500ef8b6887669feef1ac579294e105e79fffa50518bd
MD5 17ca48580273be37142ffed2fcdf8dde
BLAKE2b-256 056f2df9e8baf4f7b6fb1038882a0226a59446e10f4fe6d6ec587b4e10801416

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-1.5.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.17

File hashes

Hashes for edgedb-1.5.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2d5978f336a078df6da0b9fc9d287e8b674d33831c88ec0d6a0b95cdb86bae68
MD5 739e0158d445e7b94a21a8b5507cc25a
BLAKE2b-256 4782ee8c5ad7c72cd76a47603026ecbac7f49ce7a63ade86c6a01d88a82f27b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.5.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a4835983d17aa61c7a7f8a24661ae55902a6921a0d8133d7bda7f65f979a1272
MD5 283279e65c719ab2cf78747214145dc5
BLAKE2b-256 a8c8b7151b8ef5a90ee5535681a3c319c3e454eab86f68f226ae2e3b214988e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.5.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0cc6401686efe9a634b084a91cefb27182fcfb73aacb6392519ecf2b5213b4a5
MD5 477a9aa26d452571f218521ac62edd5d
BLAKE2b-256 97793a757ddd2042b12ae2827c2249b5805081e886df3cb53f55e4eb4c5433fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.5.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e7fc6b50f3c58f45b3569e7122a8d6813255e2fa183addc771bb4e413dcaed88
MD5 1d8466034fe14c51f82e61bcad4120a2
BLAKE2b-256 fab6060809d8329592fd0d5c98a42fa497827d07309daa5b935dac7d3a62a98d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.5.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 36383dbe0b527d156e8aa44c3631f9c346502ba6acae3c43c6dc1c0e190be06f
MD5 e1985af5184da5f9fedc19d0a2aa0ce3
BLAKE2b-256 4ac44ef38dba41a80932fceee1a1127224b47e47545c76f1481937f3d525b126

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-1.5.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for edgedb-1.5.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 e82c9913e82749f83fd4bf0dd86c1db091d1c6b3dde566507ec559aa43fa0dda
MD5 0fbf5de46dd478f28e2bdd54a543a5aa
BLAKE2b-256 c8c221d372ce8b6b96cb6347121820446e5d5f3f9764a78ae89d0fc891bdc5b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.5.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3cd4d40691a91cabd29811821c25fbf1f6e6577aa9f233d402e191b3c06a5b04
MD5 076d1c1331397791331ab45df8b36c3c
BLAKE2b-256 97b68a93c3a3255d6d10e2bddc2143284aa029a2eefac9051c7c0b951fb6d43f

See more details on using hashes here.

File details

Details for the file edgedb-1.5.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for edgedb-1.5.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 138c64dff7c0e97182146ae5aef77f427e1ae2bafd85f1c9d711d73c9bf36513
MD5 6ba6f72db022cbcc2a2703aa1fc9928b
BLAKE2b-256 6e8d21369258ae38bcbc03da260d884647ef69f824ba979f19019d6c68c5585b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.5.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b429925ff50a043f4f696fe2fc4a1a70798bf598f9348370836c3ae2f0ea212e
MD5 14db033d313b626ca46298adbf736a31
BLAKE2b-256 1172110d2ca5fe358bb2130dfeaac37652ba90778051ac2a54f1dc0ed3617ea3

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