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/internals/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.13.0a5.tar.gz (776.1 kB view details)

Uploaded Source

Built Distributions

edgedb-0.13.0a5-cp39-cp39-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.9 Windows x86-64

edgedb-0.13.0a5-cp39-cp39-manylinux1_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.9

edgedb-0.13.0a5-cp39-cp39-macosx_10_14_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.9 macOS 10.14+ x86-64

edgedb-0.13.0a5-cp38-cp38-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.8 Windows x86-64

edgedb-0.13.0a5-cp38-cp38-manylinux1_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.8

edgedb-0.13.0a5-cp38-cp38-macosx_10_14_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

edgedb-0.13.0a5-cp37-cp37m-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.7m Windows x86-64

edgedb-0.13.0a5-cp37-cp37m-manylinux1_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.7m

edgedb-0.13.0a5-cp37-cp37m-macosx_10_14_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.7m macOS 10.14+ x86-64

edgedb-0.13.0a5-cp36-cp36m-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.6m Windows x86-64

edgedb-0.13.0a5-cp36-cp36m-manylinux1_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.6m

edgedb-0.13.0a5-cp36-cp36m-macosx_10_14_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.6m macOS 10.14+ x86-64

File details

Details for the file edgedb-0.13.0a5.tar.gz.

File metadata

  • Download URL: edgedb-0.13.0a5.tar.gz
  • Upload date:
  • Size: 776.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for edgedb-0.13.0a5.tar.gz
Algorithm Hash digest
SHA256 66e4eef7562a4a69851e95a77eee7923f8b8035848a8e19fded9c8b51b7297a2
MD5 f18c982c429a38a8797dd76bee6f09f6
BLAKE2b-256 8cdf45461613c21f8f3cdfa39f1ed4591e413253c0b8ab273f6787ca2304d560

See more details on using hashes here.

File details

Details for the file edgedb-0.13.0a5-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: edgedb-0.13.0a5-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for edgedb-0.13.0a5-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3e71737b9c30ed697ac2e01a7362a2389b97de3343614d7295e61b84c1e2ccda
MD5 895e333b2bff59cb42d563efe8e715e6
BLAKE2b-256 dc64ca8f1c5c87e22c9cb088a1ef1f73aa5cba47fdaaf5ff8eba7a5a60a462fc

See more details on using hashes here.

File details

Details for the file edgedb-0.13.0a5-cp39-cp39-manylinux1_x86_64.whl.

File metadata

  • Download URL: edgedb-0.13.0a5-cp39-cp39-manylinux1_x86_64.whl
  • Upload date:
  • Size: 2.9 MB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for edgedb-0.13.0a5-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7002b29eb825ec6b6ed2921208f8e8e7860cfe07940a8494e58ca7030806aeed
MD5 d309ab2e35b5618a8aaf9f5b7ac15cbf
BLAKE2b-256 3d3fd0de31dca73968163b7c8363dbea45fb94e5d25b626026cc542b711e546e

See more details on using hashes here.

File details

Details for the file edgedb-0.13.0a5-cp39-cp39-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: edgedb-0.13.0a5-cp39-cp39-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.9, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for edgedb-0.13.0a5-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 6765b0cf4f599931e15b528be6a28f89fd53a0dc7b0d67216bf320a50d97144a
MD5 087d96220d592a1dcbc30c5d9235edf7
BLAKE2b-256 4bd58a9b049c7766c6c05a3cb405d947dd691d38cbfd507455a0d47d3f29f4b7

See more details on using hashes here.

File details

Details for the file edgedb-0.13.0a5-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: edgedb-0.13.0a5-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for edgedb-0.13.0a5-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d56c30b43c4e39410ea8d935f8c5e5a0745790d962a7b69612de0e8f645432b3
MD5 aea793b2ca9eb19f2b716d828bbdff57
BLAKE2b-256 b0aab27a64f8ff5bf69ffa20de30aa42ce35918cc0a31034efffc35891d6615a

See more details on using hashes here.

File details

Details for the file edgedb-0.13.0a5-cp38-cp38-manylinux1_x86_64.whl.

File metadata

  • Download URL: edgedb-0.13.0a5-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 3.0 MB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for edgedb-0.13.0a5-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b2f48356153fd182dfb82d87ecb4c443cff873fe1ada3300207723f546baf5f9
MD5 e4ccb2ddea8ee09d3212f37f949038b5
BLAKE2b-256 2381019bf3f9eea3b4ba49c882d327090f66e6032d5788ccc1fc4e00de6f807b

See more details on using hashes here.

File details

Details for the file edgedb-0.13.0a5-cp38-cp38-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: edgedb-0.13.0a5-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.8, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for edgedb-0.13.0a5-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 4556a57bc61765dbd944b9d7e9fa50cb539aae878a07c52bd56187de09323dce
MD5 b3560139206192b6a39261bc26454c68
BLAKE2b-256 cceef2f122d58072ef1187ee150645a5d5fa0c67ce8694d63ed202431c9b5479

See more details on using hashes here.

File details

Details for the file edgedb-0.13.0a5-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: edgedb-0.13.0a5-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for edgedb-0.13.0a5-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 1fab8a8bb6cc60022df6f43e1c379ae4e383660e102e657f45b27a1aad30a39b
MD5 69f12cd2603978f39bea9054eb6e33a8
BLAKE2b-256 4dd3f8d57df501e2661553308068acd44fb5c5c86ef10961590f79ca9a1842e4

See more details on using hashes here.

File details

Details for the file edgedb-0.13.0a5-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: edgedb-0.13.0a5-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 2.9 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for edgedb-0.13.0a5-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f40b8ef88b61a5e93141c3f8f259dc45585dabd226340e97fc5a87b66b01c241
MD5 7bfc060ebc785b9e5770075c32d09a3d
BLAKE2b-256 8451291bf32a1c05dfba4b93105deb32d0e2691491ade2342ad5a7b9dc8b91bb

See more details on using hashes here.

File details

Details for the file edgedb-0.13.0a5-cp37-cp37m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: edgedb-0.13.0a5-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.7m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for edgedb-0.13.0a5-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 6bd449eb7e13d065dcc1839d646921bfc03c61e054b5e19f9264a3045419564d
MD5 6e1dbecd15f60bfa551c9ae9a169a0cb
BLAKE2b-256 c955b42f50e4bf94692860297b2a0f7d97625984912b590400f1c218c3ab17b7

See more details on using hashes here.

File details

Details for the file edgedb-0.13.0a5-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: edgedb-0.13.0a5-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for edgedb-0.13.0a5-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 2d1644a6b1bb410947dd365c02046c75cccb71e448282cf4b6dae2f50f35a46e
MD5 ba12608fa833073ba1b8419c739469d8
BLAKE2b-256 fb1b5381888091a30d9937134c3ce3775872d184dc1af75890f896dbae6e6e97

See more details on using hashes here.

File details

Details for the file edgedb-0.13.0a5-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: edgedb-0.13.0a5-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 2.9 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for edgedb-0.13.0a5-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 21d5ddc3acc86ca83ccf12bbc6d2b6d310729fbaa2eae1eee7375e4d94aad4e7
MD5 42a40287be97c41b3baa49f3edec24b5
BLAKE2b-256 643dccb80a702e943a8b47da71341efce6ee2a1575fc1c7779abc9db427c3b25

See more details on using hashes here.

File details

Details for the file edgedb-0.13.0a5-cp36-cp36m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: edgedb-0.13.0a5-cp36-cp36m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.6m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for edgedb-0.13.0a5-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 e9878f5d1026f719991e2d554f66afcbaf35e3ed352f81565c6fa7057240f863
MD5 c08708c14e0bd771ba626307c79dab4e
BLAKE2b-256 5a94d9405aed614d12e419ed33abf12536950f70cb9bc6d3e5993fcf1a17d587

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