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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.10 Windows x86-64

edgedb-0.18.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.18.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.18.0-cp39-cp39-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.9 Windows x86-64

edgedb-0.18.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.18.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.18.0-cp38-cp38-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.8 Windows x86-64

edgedb-0.18.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.18.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.18.0-cp37-cp37m-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.7m Windows x86-64

edgedb-0.18.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.18.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.18.0-cp36-cp36m-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.6m Windows x86-64

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

File metadata

  • Download URL: edgedb-0.18.0.tar.gz
  • Upload date:
  • Size: 821.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for edgedb-0.18.0.tar.gz
Algorithm Hash digest
SHA256 11e0a4e51e3a6b471a8dbc8324d523ea01d357d66c8619f9c99d80affa119a21
MD5 0e6bb2f268e76ddc1be797e5d17aff9c
BLAKE2b-256 434d6b767fcf70985f997b68b949da610f54c862fe5142ba2c9fc18f80d103b1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.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.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for edgedb-0.18.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 777006abb1206db9b112b70d13fcbe28763429a787663142c5e573de2ef8ca02
MD5 6258f88b83db4ca12be282e2a9cd992d
BLAKE2b-256 08092f3189107ce9eb87e5e201370bbc9b907b304e168cade72bb846871e9cc8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.18.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f66380bd5f3b4e2cb1da29e39c990cdbcd1b9cdeb629870f3d070d75f956c9e6
MD5 fefe9d7a7e8a8c020c95d152c53f6120
BLAKE2b-256 da8126e55722c8f91eb63e8777130b6ab94927be39c6960092ef4460b3e2d4a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.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.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for edgedb-0.18.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e8589d5ee14286ba3428a43247cc734b7586b5bb514b98882d15acfb0308d48f
MD5 efdc1e968fba2652cdb78653462f0bfb
BLAKE2b-256 faf1cb597121832e2774a29564168e097da5897fbcf831c237ceaec6b622d433

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.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.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for edgedb-0.18.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b2bd8d6b80fd7c7a4b89933a2d20321a02757ac76738a49916fe1031685083f3
MD5 40336b9f18ed283094c442e8ce4de240
BLAKE2b-256 ca3ebccb253b371cd51b8ea4b765ef3867d68e7165778ec5bc612bad9497484e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.18.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a4406420d34a93de1705d4bc4d991b4943ea80acb32c14847e29bffb1d064e2d
MD5 a011747488f53028cb12aaa5adc2624c
BLAKE2b-256 b4655920e53c896bed2c81e285dd37ba46ad86063575c136ce33221528a0f509

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.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.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for edgedb-0.18.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 36daa70ee30b9b0756809c752140e4d90bbb6bb91b0f8d5b79773d52c1f387a2
MD5 6c4a7cc35bc69ed993487585fec58a4b
BLAKE2b-256 6109cfa5d2465a8ae22cb33854263d4141e1d375b9cee1f0f4ef4a4a72e083d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.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.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for edgedb-0.18.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5de2179abd619a1a6d27b7d6c4ed1b935c72e3ebfe7e07ccf04bdd84ddd484e2
MD5 16d28151fdcd0d420d1e96b260119e73
BLAKE2b-256 f49fd1b501ed1a263dba32bf8884ef64b0c005f23f4b535cc20f4814d09c4af3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.18.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cb8019a745262cbd3e0636923e42ef83b56b9f6c1d00ea1d26706cd787317cef
MD5 a4125e970f3295aa126e3191264ecaf6
BLAKE2b-256 e7713a9d839f36bbd2d08551ab86d594f971516700f6da2dccf6c423323b820a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.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.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for edgedb-0.18.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 09cd876be4bf6a695e0426b7634e15ce9a8f4879e32ce439cc84ec903d5a3485
MD5 e62ba9c1c8c6b8bb53a50c754648586d
BLAKE2b-256 251b97314e8027cffec7fec7f1c4ffeb6508fba1a3c9199d9bc808e4f09252d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.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.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for edgedb-0.18.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 eedbdf09db2edbe056521b05cc3a26ec69233e9f94dbae05578330f17e8cd0e8
MD5 d2b45f1129570ac0151701e4a69a61cc
BLAKE2b-256 58c93422bac7151b12ae9a1da036b1fcdaf2145130b01a69f576fcd86a4b85a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.18.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 534607de5b3ed04430bce75084972643f2f5c8ed7e8bd1f27010278822c45c80
MD5 23d592fbdb77618f2fedb028373a10c4
BLAKE2b-256 c548c9e847e6738f28fb97a191fd2b452ec816ff973a026948bb311cb4b65d8d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.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.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for edgedb-0.18.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3d2e4b8527c9abdf6b5294c1ecc9630e60ba5be151e67a6ca6d08cdbf876dbd0
MD5 9af161f5f4881ac10c84d74efa6dac01
BLAKE2b-256 f388b94a83ceb79e181b5862b66bacaafb88041df3820cee4ecac105581cec72

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.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.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for edgedb-0.18.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 8fa593b7c46356ff59503a79860d277f5605da146e98cadd7b10dbbcdb71c197
MD5 1f56f5ada7009044f76045378623366d
BLAKE2b-256 9681f961b75fcb8de60febdf380c918bdd9167693f67c890bbf412e3a473d2e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.18.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a8fd4b2f562bec1cf1ff5ebc7663e4dd0dec94111789eca8fe6862e6d5540bf3
MD5 4f2a0b37b725109a3a0154713a50d77a
BLAKE2b-256 2b0fb46f753e9a3aa248753f6627085886dcbdafcf3be8b3c273b44c8792a550

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