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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.10 Windows x86-64

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

Uploaded CPython 3.10 macOS 10.9+ x86-64

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

Uploaded CPython 3.9 Windows x86-64

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

Uploaded CPython 3.9 macOS 10.9+ x86-64

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

Uploaded CPython 3.8 Windows x86-64

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

Uploaded CPython 3.8 macOS 10.9+ x86-64

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

Uploaded CPython 3.7m Windows x86-64

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

Uploaded CPython 3.7m macOS 10.9+ x86-64

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

Uploaded CPython 3.6m Windows x86-64

edgedb-0.19.0-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.19.0.tar.gz.

File metadata

  • Download URL: edgedb-0.19.0.tar.gz
  • Upload date:
  • Size: 817.4 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.19.0.tar.gz
Algorithm Hash digest
SHA256 92d60d57b978ae6a2e3af7c9616014311409749a0d49198d64f90482358a1d7b
MD5 8401cd749181e961c41cdc8f0e4fb934
BLAKE2b-256 9887db654ff5ff63982a96601acd93953ac88f325b1c926f40e7f83609dfca27

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.19.0-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.19.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ba00c7c410d962121acd9e90050fb52bf3c8dda153a32f1f9882b19646a09cd2
MD5 ea821c1511a2b08e1cc90e1e54bbdf42
BLAKE2b-256 8b9ed0312f3d94568153064d99d23af6ce044874f73bf2ec7a71590a1059e76f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.19.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 711133697b73d852c48e0b09b6e6d0c1c93ee8fb4f46f0b86fcc9a1e24746aec
MD5 64cd35ac989c6082a1e103e68d09bb50
BLAKE2b-256 b9f4450302f9c96625313285b946d1d9c1f9e50f249c5c547d181d4e1e2be2df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.19.0-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.19.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2252b76c301b4702c085dc47c221d643770f5fabb78cc0688a1523e2898b0e95
MD5 bd5dd7f05815e6c6a3b84390fccb6176
BLAKE2b-256 de21b6627d64ab3bc1a327dbea967630207054d8077dcfcc04538bf6fd403ca6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.19.0-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.19.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 fa5ffba8325e36f05e145ac61a5c31e75b0b83ed94dc95c572321ee2c153bc89
MD5 7eb24343c1cde523dc69b03662f7e10f
BLAKE2b-256 a7a5c72c593a872222049729af96f34295cab56213fc8c6cd41c738c553c7515

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.19.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ce5d7b45e8ad47e0b25e17b5dace63454466dfdd85413350478a30867552ad1c
MD5 000c78d8bb274af87a0cb6a3067cdbd5
BLAKE2b-256 beaec483f107fdde768465543fcd4f3afe21110a98d3e20361e81fdf3c1b9770

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.19.0-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.19.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3861bcb9d88b060719e0b102aacfbd9bf181dbac43351d64956548187cbc763d
MD5 08d74cf7b045d81c7f52e4b082d83730
BLAKE2b-256 f428f172b8dcda232b87f9ad99a60fc2b62704a6535688973ec036ab8b69f08b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.19.0-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.19.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 14b3fa03b3e64ad0db0831416cb93e2a1314f18fea7e8a744a35d18ca383c423
MD5 7cc7ccb2fdfbb9d6788930be7fdd7213
BLAKE2b-256 8473aa03d0ecf9244dc6e31bf8983456707a69d8200c600bef2b418f3410d3f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.19.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e6239f810aa95dc2cc205a8303b800bc1adf6efc0fc77b2dce387906c13d447f
MD5 7706ab8622067b063a91c467fd038ea2
BLAKE2b-256 b11846d193d34d1559c2fda686f19b281be0b01003e2c767b5c87db5dad633fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.19.0-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.19.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3676d3b45ff644a714096252464fd82896a485d0b8520137e1611c4224101226
MD5 4d381c52199044295c6d11dee2b4b29c
BLAKE2b-256 45f0097ceed1dfdd0261c52368740726e0c3eece139928756e59b2753942ab6f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.19.0-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.19.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 a7b4e0bbd82b531546202f55535cd884a17d27b0f535bd6abe234b19fac04907
MD5 2a2a3f8fe8d30f06a8fb7385ca63fa20
BLAKE2b-256 2e770dbf86335e5996894648e2df7103ea937218e84209d9fafa7e2bc02a9e9d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.19.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 31b3da6a66725b2c6319da7e4363d9b8632609456ed6bace59f0d63b0aca5dde
MD5 862e5034fe2c9cc47e2c3913e4948a4b
BLAKE2b-256 64a3ac5b8623f9e1050e758f59e3006ef4b3518e5053e8b5cc81df5a59eaf38e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.19.0-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.19.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8e9b933a8f688668683458e4620b775899c1d04c18721d79b49853ea84df28d6
MD5 f6bf8847d30220c235a16c6f59fa47c2
BLAKE2b-256 c88c99acf547031a8289881a004562d8052233d5798da8e0fe063e061e13b721

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.19.0-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.19.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 183e2bc9053bad17c23408799d9a3fdd43b89ead41c528e4a8fb220cada743ca
MD5 49d32d42bee73708c101eaaf95a7f2b5
BLAKE2b-256 d196350f2ab6c62ddebea0c79cdca68dff9c5a4401f52699336530195cbd725f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.19.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4bb47e52d9367b6c415ecf1e8f6847a3d2bd4733b4ab5987eb09d2cda53697d4
MD5 e14aa0b72bdb12948e9e02dc3e6fdc0f
BLAKE2b-256 671c4d2dd4909e125894090841b68f9276eb4b36c20c730817286f36dcba8fcf

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