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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.10 Windows x86-64

edgedb-0.21.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.21.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.21.0-cp39-cp39-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.9 Windows x86-64

edgedb-0.21.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.21.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.21.0-cp38-cp38-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.8 Windows x86-64

edgedb-0.21.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.21.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.21.0-cp37-cp37m-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.7m Windows x86-64

edgedb-0.21.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.21.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.21.0-cp36-cp36m-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.6m Windows x86-64

edgedb-0.21.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.21.0.tar.gz.

File metadata

  • Download URL: edgedb-0.21.0.tar.gz
  • Upload date:
  • Size: 823.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for edgedb-0.21.0.tar.gz
Algorithm Hash digest
SHA256 a33e79ee0c211d80db53e898a3c29c02561a206b1666c79f43b55d69836a4cb3
MD5 592b2c6e6df911b8c00f94feddbc3f81
BLAKE2b-256 cc94ce0d52b1c175f94b169ec5b7692e7c186b20f9a34d36bc9507ca986e7e4a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.21.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.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for edgedb-0.21.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 bca3bce0447f1205be2065a3d4185b8849a3ae9ad1e67352fb571b2f9a5a30d4
MD5 afc6dbc637b0c4fe54da7c97856f7a83
BLAKE2b-256 4be6688cf7f9f29bead950d8fecf0f4c829b135895efe346e5802c349ac96cd4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.21.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 83ab16d740fff32bde21142edcea098f56bf8d6099520588c2659be0141ec65a
MD5 021842f7b79097812b561178100e703b
BLAKE2b-256 eee121086a2ad6fe0ee0be28bfb3c8791350df297d3c24663804de263090c20f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.21.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.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for edgedb-0.21.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 c93d68cb24b0804b6e6711ee9fc2d731e0b8bed8c0dd5f8abd343870df9fadc0
MD5 486ba24c5f0d7048466034c02cb03657
BLAKE2b-256 fb37e6d280b4541b5ffe10e9c9f50e530e85bfbd15f543afab7d94e8d05a82c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.21.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.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for edgedb-0.21.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 80c71252d74c2f6af5cef5ca24f65b18ca79027bc9265bc54c3285913ec19636
MD5 47162f69adc7f68f85a3a8441f7c99cb
BLAKE2b-256 12e17bb3c63b78eb0f3ed52d6f0556a3ad320d8ba58562d19e991972ce33ecce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.21.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 81ff75bcb7ba7cffbdf66ad29236dc09aee4e25bcb6e8556154004793e5a9b9d
MD5 921967e546f1fa036669f88d825dfe35
BLAKE2b-256 dcc1ec3fecea9c4ce6a3533e21f47fd235fe4864520ecead4375c2b276579d9c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.21.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.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for edgedb-0.21.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5f08800f703e1f21ac50c723cec286b164f886bbc4fadf6fcbc550a2b8dedb79
MD5 d94e9c476bcfac3b830a5b9312363fe3
BLAKE2b-256 68de7f41d7bf36a5ce364cce1dd6222095420493d8dcc001baec326e2b1b3550

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.21.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.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for edgedb-0.21.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e4b37dcd313c221b42755e3637cfab0d430e7667cd61d45719fc0ca00f03dcb6
MD5 e8e71f3c47a6b1142677d02cb6595302
BLAKE2b-256 e658948582d66f948e66b930d56d6fa086a6e7911ae62b2d56adb013deda0b51

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.21.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9f1aa343c8d844e739ef523365a87eb608f3b1fbd28e780faefdcec462fa75e0
MD5 02a3aad1aca1e1f477895e2371bd9c01
BLAKE2b-256 233295e37b18bd6723afe108ee1b952c4d14926a2b9856a1bb3ed3d299248fc4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.21.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.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for edgedb-0.21.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f75ac7d3e2fc834b303e3f2c85014c89da5e583460e423115fa6cb54fd5e2173
MD5 2893225dbd7fe5494e309d1ac2581acd
BLAKE2b-256 2111ea0377a1bd63e34c227316a80f6cedf1b3e36ddcfc478ce4f21a432fdac3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.21.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.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for edgedb-0.21.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 0d3d9ea3a56d6ffd3506253efb29a5c184c5f939f0fbd39bdad1e953092875c0
MD5 664ea5a843bec8defa22db1bc0dd2bef
BLAKE2b-256 d54d6fa3ee9b95308e448268175f2b25f85a8efaa95d8cbb723ce8c0f81aa5fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.21.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 72c5b4965438f4c7c039dfc80ca0032393f3af98cef2fa7a33dd1b6fa04dd16f
MD5 359377e8d093618c437f3c39cef54098
BLAKE2b-256 2199efb2a593edb78d2545f1de004ca17e5f52160c1b133366afeabca142faaf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.21.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.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for edgedb-0.21.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6bc3c162a5a2e2ef3c0f7ca7fa2cb68c53e0d538fe005b46ee0b09c2e91e71f7
MD5 14da17dd02e528420e28981a0103fe81
BLAKE2b-256 53c944141e463363aa9fc6586081bdbebabdadd8b03562a4b370e028b6f603d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.21.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.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for edgedb-0.21.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 5e4a1c4a1370a066d7d10b6ee7ef7ef24c74b237e7e5949e9aa897eaa8f95802
MD5 99f2da4378dac5594f8744834a081daf
BLAKE2b-256 bad29ce9d7faf005c611192e82fa8a560e0b049ad9a50ea01c8a76d3918725a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.21.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7fa77e76634e1d409200c08f0a1fe714813a5a3cd790bcc75fa417c2724af6c7
MD5 1ddbd1bcb7149f8517701088995cb21f
BLAKE2b-256 2943612ec0e8ff5b6f2c3a09e56495ffa3577468284151d68ef1f34bc10f58f1

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