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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.10 Windows x86-64

edgedb-0.18.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.10 macOS 10.9+ x86-64

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

Uploaded CPython 3.9 Windows x86-64

edgedb-0.18.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.9 macOS 10.9+ x86-64

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

Uploaded CPython 3.8 Windows x86-64

edgedb-0.18.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.8 macOS 10.9+ x86-64

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

Uploaded CPython 3.7m Windows x86-64

edgedb-0.18.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.4 MB view details)

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

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

Uploaded CPython 3.7m macOS 10.9+ x86-64

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

Uploaded CPython 3.6m Windows x86-64

edgedb-0.18.3-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.4 MB view details)

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

File details

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

File metadata

  • Download URL: edgedb-0.18.3.tar.gz
  • Upload date:
  • Size: 822.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.18.3.tar.gz
Algorithm Hash digest
SHA256 47a1cc26a898edd96426fa6464b84e496396ddbba99f6ee53d6cb3841b56bd55
MD5 79e14bda9428e532d132dd150c184f92
BLAKE2b-256 dbcfbe02dd87fc8eba4b77ce5db98716e483a4ee6576a23bbaef152f56624a24

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.3-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.18.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 75b8486353c1e43703011c471903c2d6bad72c633cd7014d68ef262faa3c24c9
MD5 fc7dad5f8847dd95469a8f8983815397
BLAKE2b-256 45969543fef1fe68f3064d69cd855d3b4df1e0ba31ef1dc1b11647ce8e7e767b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.18.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 86e11641fe2b3c2f6ec8d30b3bafdd0772ab92ee93808750c10f05d364c5be91
MD5 c90637e191802536fffc930c7fcaa2ac
BLAKE2b-256 9bdbc93d478dc5433899086d0cd0ede57157f1ee9b26466e5c750c309087c105

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.3-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.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.18.3-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 22326c80cf0d37d09c1345a118bf84b3b8b2eaebac89a55ea3f5aefb05ca2747
MD5 bf2d7a733804a658d50273cb438ca935
BLAKE2b-256 872def11dd11bf1d6078be35d39e19312f4649d01754d3a44388e6f53fef245f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.3-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/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.18.3-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0773bc8a4e47e17cec58335486c4577a68a1b7fbe9aaa5775ebe6763b214ae21
MD5 a4eb69152c81d87ba5d655a09e091247
BLAKE2b-256 d18eb2e5a2e8deb45a5b19bffffdfe1124333ebf2133a3d10bd411edf93b0943

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.18.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bfdc6af956b2c9174e1e87acdacb597b6197069d1ec5f168a48b9348249f2b83
MD5 ceba2ede0fd3fbe442d6e8534664dcc0
BLAKE2b-256 461c59cc539e7140d176b0cee5e1c9f1ea209647aedf135e135db8aab28575b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.3-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.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.18.3-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d3be11a4f7e6a1a8079904a3ffd7168f565263b8dc624e89095028c8db181da0
MD5 62619c525e6ef981d202c3d8c00a150d
BLAKE2b-256 b390074bdb1e372882bbe8f2838b3f50c32c26e9133a8bb0411234980f7684fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.3-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/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.18.3-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ae2d9dd2580e3e74a9cd3cf2e7f943ef74e9f342b5730d6aa02b2e733f5ae688
MD5 b45cc51a748dd7d8c243222bf4b337b7
BLAKE2b-256 b5243ab0359cd5f67a82b5221d938360be25063c10cba1707e2168b9744ef2be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.18.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c0b58b252dcee4f8f5c2351c7c1d21666c7c609683079b7c4e71f66bf429124f
MD5 7ffc34cbf7584c28a723740ec0632763
BLAKE2b-256 2cf22812555e845dc8e055314f3c4619f454a9db521c604b9aaf6da475c4c7ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.3-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.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.18.3-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 30f83914f0489322a2f4d425519682e3fb45c4c0bcb29415168b8881e204ce65
MD5 3419fd24f06810597d56a8418d35ed59
BLAKE2b-256 fffaf74e6bbbf8db6de06206a16514677205ca48502c2ff111ea07ac9edf7c36

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.3-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.18.3-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 664f7b8a2b48445ba011950a4e2cdbe89ec216f97aa6b5222db37458798abc7d
MD5 aa118f3e740c68d4d89c94fdf118d796
BLAKE2b-256 49e26ae54e282dab6e5e3e20ed7e24691079314385593e4936f0799ab836524b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.18.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 881961be1f487439c32098446a093c65e17e54eb8d712142f897c96a12c35d92
MD5 42ca0d86c089848d410c8c72445e8b46
BLAKE2b-256 81c69597cd61cbd7fde7e2b0c2fa9626836d8de54eb023e1100b7b42b1c68c96

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.3-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.18.3-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f1a09aead474819e65a94505a514e230af9789800ddf4ceba9ea2ebcfc0018d5
MD5 f80d61901715a7d495b54ce5ddaac0b2
BLAKE2b-256 7ddc37c655917cbf2bc7fc0585ba7838164536561f255949c595ae2c1ca73a12

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.3-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.18.3-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 6dca790530e8bd8304efc303f0dbad796e95971b7c73aa9121338be326592cc7
MD5 cab5bfebc8ec1425f5d51b39dfd2220f
BLAKE2b-256 bebcc5bc3a1aa6fc8c268bcb818c59478a191f04643439e3af022087dcdb16a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.18.3-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 36dea35232647d64a7c36b699f44cb5833afcd727751533b78aa26719c2b3753
MD5 99324c2c647d09a9921a569d3f1da94f
BLAKE2b-256 89e0ef5ddd7e9a7cb619f026b011a10729249c60378f294692687e1c48806d1a

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