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.18.0a2.tar.gz (802.5 kB view details)

Uploaded Source

Built Distributions

edgedb-0.18.0a2-cp39-cp39-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.9 Windows x86-64

edgedb-0.18.0a2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.5+ x86-64

edgedb-0.18.0a2-cp39-cp39-macosx_10_14_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.9 macOS 10.14+ x86-64

edgedb-0.18.0a2-cp38-cp38-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.8 Windows x86-64

edgedb-0.18.0a2-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.5+ x86-64

edgedb-0.18.0a2-cp38-cp38-macosx_10_14_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

edgedb-0.18.0a2-cp37-cp37m-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.7m Windows x86-64

edgedb-0.18.0a2-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (3.0 MB view details)

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

edgedb-0.18.0a2-cp37-cp37m-macosx_10_14_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.7m macOS 10.14+ x86-64

edgedb-0.18.0a2-cp36-cp36m-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.6m Windows x86-64

edgedb-0.18.0a2-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (3.0 MB view details)

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

edgedb-0.18.0a2-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.18.0a2.tar.gz.

File metadata

  • Download URL: edgedb-0.18.0a2.tar.gz
  • Upload date:
  • Size: 802.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for edgedb-0.18.0a2.tar.gz
Algorithm Hash digest
SHA256 510ea3ec24d8a4127b29c765b18eb09f1655f96e243b2f027cba045287362c40
MD5 0972849d5c225071ab8fd93508304df4
BLAKE2b-256 36a5bac0c2e004c55d93901f9dd0b4b865210692bb7cf66e00fbbcc27542f220

See more details on using hashes here.

File details

Details for the file edgedb-0.18.0a2-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: edgedb-0.18.0a2-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.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for edgedb-0.18.0a2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b2f5d7a109463d7fd774d39c77e63ec2c58ba7b5978c42fe39c670adddbda827
MD5 b017e44b2ab820128230c5e43b38816d
BLAKE2b-256 3ad24986e0f52be1e82c6bb505d53ede21d91395b78809df7ecd2461042fdcc3

See more details on using hashes here.

File details

Details for the file edgedb-0.18.0a2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.18.0a2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 77958b09e890327f6495d71ee0f9e5f540e4dd24d08c8da593740447e23ec6da
MD5 4a50b32dce63e9e808e2cba332bf09e8
BLAKE2b-256 9ea518461e63a3b66ed40f76accf8b8a3ad6a759ec63a4f9ebe768b02e7d10cc

See more details on using hashes here.

File details

Details for the file edgedb-0.18.0a2-cp39-cp39-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: edgedb-0.18.0a2-cp39-cp39-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.9, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for edgedb-0.18.0a2-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 0d77ad09587fd4f2d2f012a122d48a86293ed0b7a5745433ff80c15e943d132b
MD5 69ff92c47e05bc48cbaa13b946a72c1f
BLAKE2b-256 52a35335abd814c34b6bcdde0081e4a155a008fb2535a6cf92a85d378693c5d8

See more details on using hashes here.

File details

Details for the file edgedb-0.18.0a2-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: edgedb-0.18.0a2-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.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for edgedb-0.18.0a2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3eb3baf0bd2f9e87c920b5b892d0f87a3c7450e3cd6982dc9fa976a8fc91496e
MD5 6ac3e7edf3a0329cbb3633bbc536d922
BLAKE2b-256 2fa2d3fcc187778b571b850745274b24485aa925b6e9d9e693d9da167a5fa875

See more details on using hashes here.

File details

Details for the file edgedb-0.18.0a2-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.18.0a2-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a80338359fda1d1e25c9f0bf1effd287df702608bb025e018df3a2065957e98b
MD5 b380514cacb6be79393b7faac4fc75a4
BLAKE2b-256 a292f355f21a17d577d2baa655f2620caf4f1bf936f24a8c92b5557fc04344d8

See more details on using hashes here.

File details

Details for the file edgedb-0.18.0a2-cp38-cp38-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: edgedb-0.18.0a2-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.8, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for edgedb-0.18.0a2-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 6148790b9a11976647177c6f57e0724905c5b976d9672e2eec398bf66079b3e1
MD5 6db16e807bff3b389db26e576d116f0a
BLAKE2b-256 3b2a2f4d39af9ca55f0f935d355df635b9d05f79a0a372b22bd5bd36eec3a0fe

See more details on using hashes here.

File details

Details for the file edgedb-0.18.0a2-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: edgedb-0.18.0a2-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.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for edgedb-0.18.0a2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 29799a99880f4eb00ca7b33c0f22049feae8eba4dcff1d9fa4cccb17375d0ab4
MD5 d7a70570673878c1203401af671dd8f7
BLAKE2b-256 04b998b76d288855458635c0981315f6eee5f5380aed61f9cb4a779bfcf03309

See more details on using hashes here.

File details

Details for the file edgedb-0.18.0a2-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.18.0a2-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e164e75fba56325cc451a88a283242c9b58bc32e464976956bbf1de5d7fff210
MD5 24a83570a0855a8894a5138317f28882
BLAKE2b-256 68bc582d9eb1bdeae42111fcde4cd643e61db9fcfedd72e76958f02602be1ece

See more details on using hashes here.

File details

Details for the file edgedb-0.18.0a2-cp37-cp37m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: edgedb-0.18.0a2-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.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for edgedb-0.18.0a2-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 37d57f7d1d0b69f5e5e2ec14ef7cae5c13a3242a7e4b375e549466e3e3eb98a9
MD5 23062cdd4b1ea084d71a31cb56eadc1b
BLAKE2b-256 c255efa04c25e706089e0901cb487ada2e560ab7b7704d295573145f1eaa8a2b

See more details on using hashes here.

File details

Details for the file edgedb-0.18.0a2-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: edgedb-0.18.0a2-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.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for edgedb-0.18.0a2-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 e8ac6745507f2f7f6d1b420594ae17b26e524c40f6b98ace9d022bd243a5ba1c
MD5 4ee5f95cad94921ffc1aaac0d16c994f
BLAKE2b-256 b6a953a5bb434b661596b89d2801793fa62f5770c920edb715f3f1e3118145d2

See more details on using hashes here.

File details

Details for the file edgedb-0.18.0a2-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.18.0a2-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 29e38a75e8d5a49dbec4e342348f115ca0ba0eda9854829971f37a1dfe74cdf5
MD5 5816fed772a7f97560f6473caaeda39d
BLAKE2b-256 5cd93a5da77c125b95d62e7173c440d07fd979dc291491df7588681438051860

See more details on using hashes here.

File details

Details for the file edgedb-0.18.0a2-cp36-cp36m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: edgedb-0.18.0a2-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.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for edgedb-0.18.0a2-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 336d96271a0629ce358e31134edfe618d2050394c78424aeb70a1db6dfb0ca6a
MD5 b12126c62606c6e7b3484df1472fad70
BLAKE2b-256 86717be0919f0de586fccccb64bbcd0262c276b054960fc3f7d6a5c0604f9470

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