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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.10 Windows x86-64

edgedb-0.20.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.20.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.20.0-cp39-cp39-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.9 Windows x86-64

edgedb-0.20.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.20.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.20.0-cp38-cp38-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.8 Windows x86-64

edgedb-0.20.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.20.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.20.0-cp37-cp37m-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.7m Windows x86-64

edgedb-0.20.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.20.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.20.0-cp36-cp36m-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.6m Windows x86-64

edgedb-0.20.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.20.0.tar.gz.

File metadata

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

File hashes

Hashes for edgedb-0.20.0.tar.gz
Algorithm Hash digest
SHA256 a4c3a2af2ddad95f0859fc2c8ab0db0f824e15ab72b66ba691768ff298f6c633
MD5 a4ad63183e67ad951f10aae90da26b1e
BLAKE2b-256 b29fc77e75b61fe050148049090d4b1ee489fed2b17d0bb229e002c8c90a1c99

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for edgedb-0.20.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 daa42d7856e12603f21656b0b1e29be07e373c5a58784b25edb91ba060954b15
MD5 593497f182d799633b399d8aba75aa3d
BLAKE2b-256 87dee5c6c87d249871b73f57ba9592fd51acaed92549c0b51660b9af2cc409e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.20.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 22ab0f44811f85662586c3e7913db6502ecbe238a35771feb0ac1cf993403a54
MD5 d05c994d1dd19bcb9c72f9f2eeef60f4
BLAKE2b-256 5b947366a7f2a08504c9aad7f0710ad7e390f1ce21ddffacd5465610a2ed0e0e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for edgedb-0.20.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a0c3aea9ed7bed9190f5e91dd0b3158a1af9e7401fad464ed0f144f859aeefc6
MD5 6f7689e5535c627aeaa3294ea5b8b59f
BLAKE2b-256 a6a6a6c8122f3786f137f3d67b5c2c8f17b5416818108b5645ce32dc281e2ef1

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for edgedb-0.20.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 395eae3bcf4926e137be3f62367a53d838c206a1287d38f35bbcdd9a1d702875
MD5 87f247a62d6defea6c4350f2a3361e95
BLAKE2b-256 8eb9f92b5a981c0ef194ddaf01dac7029c3c87c839dedb64b7e3ebd144408f39

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.20.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4966b28634ad7e705d29e2bedd08757dac3c33163741cdf11ec83e7e8d100101
MD5 2bbb8dd93e9512e253dea66bc31f73ef
BLAKE2b-256 1baa254687c98827751f9822206684a4befb2c89dc0f7b246f1c1e905c4bff67

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for edgedb-0.20.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 df4cfa5356d17cbe3fffb3ace2b41781c9469a7afe18a44e801aed3efcf990e1
MD5 177a3df43f69d78561a980c6c7b674cc
BLAKE2b-256 bb164bb6ccac91046d9e3a2584afc89e4e2beb83c838aa55a0201e90876119a5

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for edgedb-0.20.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 db1adef87ce83541ca7d4b487dac100dce498e67a6c66d74c643ca4e0047ad39
MD5 68f38463c928d54e28f883fa386f178b
BLAKE2b-256 dbb83b7e5dba7f0c446cc7f8e7957ff62e6a911ad45f2c0b3a84fb3688b96589

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.20.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6c550bdced82ef583102167c89b9715704c8affb50794ef308af2dac4fa49564
MD5 495f983c8e6b707f69524d91d65e061f
BLAKE2b-256 e0978258991749dbc6619f29cf7080515bdbfc2502d40915eb76928c2ae9e384

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for edgedb-0.20.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 288c1d227ac891d363499654a39d4cd331eb1268cff5ea1487b339cd397ab4a1
MD5 2b90bcdfc192866c9b9e1f3d259737c7
BLAKE2b-256 479aa82a6071df40dd27d16c55c2c713405c7c7c83c7dc5c073b19ee6e748783

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for edgedb-0.20.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 40fc04bcd33ea6d4f43d3474244ad58a18ac19da91d50525cfbd1e1b73a851c8
MD5 0d68dde698d8e26a38644dd8410c216e
BLAKE2b-256 c17df91f9e0e61e56ad646f3930273dcdc7ddb2360d67e06a349937a26f19fa9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.20.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 41f88f36d031c7d1ac66415aee0671c1f69fa483f5a17838c6d0ad5cf460d78c
MD5 9e3944107c59008c6d1ed1ae5c6f7fae
BLAKE2b-256 5bf94a325e4bba43d7e11290f189b32d2f3fbd872410df9ee3fb3a2e019f833c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for edgedb-0.20.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 85f45ba399f3ff74c7e17bc5580714e97949ebd32e030ce8713a6c94c6a15300
MD5 ac6cffc4169960f5d67657677f4a3907
BLAKE2b-256 eef49dbe4c974b6d5ebf5b63ddc52b37be58d6f8c0510c8391167cde0c245546

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for edgedb-0.20.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 5624f2ddc1928bbcca2e6d2de1af105605355ab5a6eaaa0295a376d2bb963521
MD5 4e54877d5f5e07380f73823934951053
BLAKE2b-256 8450f6a75ac5241558bb3fcccc00769d49359e2d72d16cd023b1115078d32e64

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.20.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a2c7eb0e246b4758e301ad6a08ffec0b06a4b73150a7a39a493d1de1a9822291
MD5 96ba1173f9419d618977cfb723d45b6d
BLAKE2b-256 f1b91fbfd6a45d0298e462526e0337ce264015eb654cfcacb11987aebe3c9a0b

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