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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.9 Windows x86-64

edgedb-0.14.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.5+ x86-64

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

Uploaded CPython 3.9 macOS 10.14+ x86-64

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

Uploaded CPython 3.8 Windows x86-64

edgedb-0.14.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.5+ x86-64

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

Uploaded CPython 3.8 macOS 10.14+ x86-64

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

Uploaded CPython 3.7m Windows x86-64

edgedb-0.14.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (2.9 MB view details)

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

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

Uploaded CPython 3.7m macOS 10.14+ x86-64

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

Uploaded CPython 3.6m Windows x86-64

edgedb-0.14.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (2.9 MB view details)

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

edgedb-0.14.0-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.14.0.tar.gz.

File metadata

  • Download URL: edgedb-0.14.0.tar.gz
  • Upload date:
  • Size: 779.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for edgedb-0.14.0.tar.gz
Algorithm Hash digest
SHA256 ad438335a91a42abf03a6bdcbd95f9e811a1fabfe7e11928599b199a62e0bc4e
MD5 dce278da86ed8843dc4b4fd5a5d286a9
BLAKE2b-256 d1f80f6f7e4fb4de659a3344ce254514099456377c9b29a1d15676fc52eabad9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.14.0-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.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for edgedb-0.14.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 674936ff47fae01afbd9aa5aedfd311a3a8a8644b2c8a6e1a663805a37b4e0fa
MD5 0e3664cfe810fcc33f65f2c2b7a3131f
BLAKE2b-256 f08513a5e71260196492d4b6140a298c64c0637faf106dd8f3c246ffd44156fd

See more details on using hashes here.

File details

Details for the file edgedb-0.14.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.14.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 88bd2c280ca755b37f9e863a2713444448dfb63a23fb58285a2ebc7be9b39cec
MD5 f1e8a6a805fdaeb5818aa659e6be6f04
BLAKE2b-256 8bb38d7cab1e239081fe7961c7a29423bdfbce1af92baed77de8225367421276

See more details on using hashes here.

File details

Details for the file edgedb-0.14.0-cp39-cp39-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: edgedb-0.14.0-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.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for edgedb-0.14.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 0e59e45def8d64d3f238a9bab1b7454d577e859f1e0f0cacd9354df7810922be
MD5 e13ff84cad0ab51911980e530dd9d77d
BLAKE2b-256 3d5eda2bf332dae66d211cca6d4e74f20726e471c75cbf6cbe5278cbbfd1b609

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.14.0-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.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for edgedb-0.14.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c62ebbcdd3ac817b69e4e7b205ce746e0f01162c789ef34d0f35407cce9aaa53
MD5 4ae8858d880c5a660826d8df2f488f9e
BLAKE2b-256 f612a820c7eb5eb16831b3707436dd7b23ac9582abf09ab485d0d59c8c281b05

See more details on using hashes here.

File details

Details for the file edgedb-0.14.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.14.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 651762c374efed5c3cfc971f9df8da81052817a7ecb7bc565f66a8e5ccde2fcf
MD5 decd063ce7843eadcb74b2e92b5ba54f
BLAKE2b-256 41c09482c23adb22ffdff20cbe3856e6b38ecc4bc8c396642bd55660e20252fc

See more details on using hashes here.

File details

Details for the file edgedb-0.14.0-cp38-cp38-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: edgedb-0.14.0-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.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for edgedb-0.14.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 428f503ee6372c88a2c7cb3298e2103210d8236802e7cdd748dab843ec8fa7fb
MD5 831af20eee741c613a9e12579cc9e793
BLAKE2b-256 7b352f110ddc0669787b18a644ee9cd0418173a14a36d3915a1c3dda78f05eff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.14.0-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.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for edgedb-0.14.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 bfc3e8c7c75ab7dbe27dedda9e01d6208790d6114d909563861bd88358348faa
MD5 fa62f431a0c0f36708a5a47531270756
BLAKE2b-256 3ef40259af2e3b9f741648eb3e9c73f8590cdc2720ffc42f6906d1749abb1e14

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.14.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c8682271308833701efc269885267e1b4c8efde3ad57965947cc7c113a98872c
MD5 bd176b7b54e2a201e8c6c556f25c9a24
BLAKE2b-256 c2bb277aa669d361ae410187743f8d6e756248367bdacab529c253bdb415865e

See more details on using hashes here.

File details

Details for the file edgedb-0.14.0-cp37-cp37m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: edgedb-0.14.0-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.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for edgedb-0.14.0-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 95247833ef9fce2c8e94b9680b139ad1e563d728ae1b2437afa1e05efe592081
MD5 bc55d15d58bc1e4c756fe07ee80f9dc9
BLAKE2b-256 ddd4e0fe2fba65765d22337c69eb599ccd00af67b6136f6e86bc0303e6107a90

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.14.0-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.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for edgedb-0.14.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 eb76bf6e0fdf805d1fb32e919ae27b8506eab1585c951b707433da880dad2587
MD5 49fb5cd88d07618182763de54d5d3894
BLAKE2b-256 ffad70b2bd66b50ec97703172271f65f7f4f278bacb8cde805c8ee693e09966f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.14.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 cd031d3365157d3d0197cc7540574247209a470a61db04dff339c933bfc84382
MD5 79181815dcdf57d896a53f78382337c2
BLAKE2b-256 9c07521784c4f2a6c3190f01e24a4a17a40a770cd1d5b2a9325076a7e18a55b1

See more details on using hashes here.

File details

Details for the file edgedb-0.14.0-cp36-cp36m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: edgedb-0.14.0-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.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for edgedb-0.14.0-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 76557a271bb654aa0dce2a019420220f610fcb30e0b3406ae6e1ab177ef454be
MD5 79a53e26defef72305206025c81795fa
BLAKE2b-256 2ed8be5dda73f2bff2e85993cf5b7f5ce23205a6d6bd35d0f8f9aabce23c9081

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