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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.10 Windows x86-64

edgedb-0.20.1-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.20.1-cp310-cp310-macosx_10_9_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

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

Uploaded CPython 3.9 Windows x86-64

edgedb-0.20.1-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.20.1-cp39-cp39-macosx_10_9_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

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

Uploaded CPython 3.8 Windows x86-64

edgedb-0.20.1-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.20.1-cp38-cp38-macosx_10_9_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

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

Uploaded CPython 3.7m Windows x86-64

edgedb-0.20.1-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.20.1-cp37-cp37m-macosx_10_9_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

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

Uploaded CPython 3.6m Windows x86-64

edgedb-0.20.1-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.20.1.tar.gz.

File metadata

  • Download URL: edgedb-0.20.1.tar.gz
  • Upload date:
  • Size: 822.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.20.1.tar.gz
Algorithm Hash digest
SHA256 6aaca3c110f145e56dede986eeee6b1baa657c4a9fbf667bf0da829a37cf3747
MD5 52dcad38a966e1e0b1f5fbdc85991944
BLAKE2b-256 1a931e1169ef028eeb04ca5a7b5d204263a240286af13461629cdeb32e3f470e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.20.1-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.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.20.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 73be9cdf166465c7b64cb40d276927a94f7f4cec97c7bd7fa620452abdbf0c64
MD5 d534b321a2e8e44fd9748931d92a08c7
BLAKE2b-256 93c144954b7a94a172293a55bab59312f9cc77f28ca634b2112b4343a482eae4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.20.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 88e1dc446ceb0941fcf2c68903e1ab1d912d484dfdf871a9aff366c7c122a8cd
MD5 01a1415afd6884ad6add9b69ce4dea8b
BLAKE2b-256 a5a4b3f0b1bb2bc4971372e50e3c3ab8da532aa3dcb9b85eabf55fd157e4ae4a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.20.1-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.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.20.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 98753b8fb380424cebfa5c18da8b1de8f43bc9bc546c099d48ad6f0f72e6c23a
MD5 306f15612a77ff05e29cfcd2b7b5e310
BLAKE2b-256 1c152cea546244adafb320231d23aba25d665f13af24f4d08042f8c12e21261c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.20.1-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.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.20.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 208342ddc6e8a8f85d5ffe2e5703617026984dd735bce93a976457d0138792cd
MD5 1cca7e17c95e6f380cdcb82a74dae334
BLAKE2b-256 c182395b59f723c404b96695721676eeb4a055652734cb297977919ad1339cda

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.20.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 12bfcb97e2415a7c427c5684224c31404760a1af2e66ee4e5b2be565c18592b6
MD5 ae79998b87ad8b36ba82cedde9c44416
BLAKE2b-256 d5229fedfbd610ec9ff6ebbaf50c0d1d1390aab0b7a7afda58cd07598ac9b957

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.20.1-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.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.20.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 67d94375d8146ed1c120a9a7321e1599f71a28fc68f10c656d0c968a2d62cc56
MD5 6a25578d762478f384448d081195a6d4
BLAKE2b-256 3c45398738be637d57a9e7d0ee3a8dd78c4785d34670e7c3fc16e0fb911e8108

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.20.1-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.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.20.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 947a28a036fa2e915207f7979259b0de8d6212f7c3e9a36057b7bcb931abda16
MD5 323badcc50ed842ac9704321900c432c
BLAKE2b-256 85dcde7436572e48c66fa284fa10bd60e7e7b0ba939e601744d33e1047a3fc93

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.20.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 76cea456d637f4c3c3fb584674af8bb7fca3da4ce80f3fd49daf6247ba44ae37
MD5 21b13ce9e0d19916ed8e3d37610d5ab5
BLAKE2b-256 46e2e748f278f5af35dd3a2b22703f126d05c7f25c0c7414f6452f189b771180

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.20.1-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.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.20.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 bb07dd969b58ceb36085762b156851aa3b40a24aae363f158af0682c184d1934
MD5 47dfeb6f95c8d55ae6b1f8d0cbb3fa41
BLAKE2b-256 2ef0f7f8900aa1812b2d73e820b5a6164f995f35e39543ee2cc13935cbfb46d9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.20.1-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.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.20.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 7ba1ae64b1e5efd774e747e687a505275412906081de0d4a8e9b8a83a0a1d503
MD5 ea01e68b11462992a16c87995dd3daa0
BLAKE2b-256 5794f6622c1345222ea7613277598c965ce6e87e2151173f210ee6fafc7ee101

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.20.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1186f18795d0616822b238d327a9f313122d1f0086cef25bf66275e112ae47ae
MD5 baf95fa3f888b97703a1a338fc3f80bc
BLAKE2b-256 9a4cb8ec3f8cd1719f757350f04bed02ecc8f5a6e59365f47c1dd20267135ce3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.20.1-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.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.20.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4bf639035a306bea56b07f4e161bc5b1a98f0a1e4cba3ea3b8a2b1269cd39345
MD5 78199039352ff3f472d505c9c17654cf
BLAKE2b-256 50e7c139e547c48c490b184ebe3504179f5e3056f9be57b44abb0322f4b2fa54

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.20.1-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.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.20.1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 19881eb325b9beb50a2df1ab774edc3b4363e7c5b21c9c9569dcafce92b14d8d
MD5 4589681b848ed37c320b2f5d96babdb0
BLAKE2b-256 b6ddd08213f7087eeecf0c7093c9d860eb869db047adb004e42177b17439350a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.20.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 60078cb510cb1fa6b0b101b7e920a2bf3e4180b311e515200f213c1d1e723736
MD5 874847fa3897529de04aec36a504f1c8
BLAKE2b-256 10856595a7a42cb879f66666e9d4219a79d624d8662ddde28684fb265f2135b2

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