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():
    client = edgedb.create_client()
    # Create a User object type
    client.execute('''
        CREATE TYPE User {
            CREATE REQUIRED PROPERTY name -> str;
            CREATE PROPERTY dob -> cal::local_date;
        }
    ''')

    # Insert a new User object
    client.query('''
        INSERT User {
            name := <str>$name,
            dob := <cal::local_date>$dob
        }
    ''', name='Bob', dob=datetime.date(1984, 3, 1))

    # Select User objects.
    user_set = client.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 client.
    client.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.24.0a7.tar.gz (876.8 kB view details)

Uploaded Source

Built Distributions

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

Uploaded CPython 3.10 Windows x86-64

edgedb-0.24.0a7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

edgedb-0.24.0a7-cp310-cp310-macosx_10_9_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

edgedb-0.24.0a7-cp39-cp39-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.9 Windows x86-64

edgedb-0.24.0a7-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

edgedb-0.24.0a7-cp39-cp39-macosx_10_9_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

edgedb-0.24.0a7-cp38-cp38-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.8 Windows x86-64

edgedb-0.24.0a7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.1 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

edgedb-0.24.0a7-cp38-cp38-macosx_10_9_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

edgedb-0.24.0a7-cp37-cp37m-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.7m Windows x86-64

edgedb-0.24.0a7-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.6 MB view details)

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

edgedb-0.24.0a7-cp37-cp37m-macosx_10_9_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

edgedb-0.24.0a7-cp36-cp36m-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.6m Windows x86-64

edgedb-0.24.0a7-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.6 MB view details)

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

File details

Details for the file edgedb-0.24.0a7.tar.gz.

File metadata

  • Download URL: edgedb-0.24.0a7.tar.gz
  • Upload date:
  • Size: 876.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for edgedb-0.24.0a7.tar.gz
Algorithm Hash digest
SHA256 d5417eaa70847efe391b401776d0b34c18a8a325c518310b300ce23c6a026013
MD5 03c3c38385d5a7b4dce1f191b24d77d7
BLAKE2b-256 b586199f8427668bf146cc382ba8c477b9ab3e2c10020596235eea3b43962b02

See more details on using hashes here.

File details

Details for the file edgedb-0.24.0a7-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for edgedb-0.24.0a7-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a4424e19cb0a2593ac6861db75d9f42d7e3a26b12afedc43dbd92d34f9b66d5d
MD5 b26cea7c6ba70397992f721d6f50e83b
BLAKE2b-256 29d4b1bfa9aa3bd14079742b8809a55f2fcfb39c9f44ba7623cbe5de47219313

See more details on using hashes here.

File details

Details for the file edgedb-0.24.0a7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.24.0a7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5899fe5533c0b3fdc819bdf059d65c131555403034a43352996c0fc35c37e1d6
MD5 0cf49966bf0fc7ac73a19e4d449fb927
BLAKE2b-256 51b3fb2f25c3f6e259e6ce40455f66e4b96e214e7cc8d71cc75e3c832fa7d098

See more details on using hashes here.

File details

Details for the file edgedb-0.24.0a7-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.24.0a7-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 71f43bc4c14bc6006d61e7444f96564ecd9190a74ec45cd1b8d6c3f156aa0c0e
MD5 93f74edf860e482532b100750ad0fdad
BLAKE2b-256 1b73a8d7b87285dd7d124c42e612e6ad1c74aa2a8c33aa5d2cea075b6c1645b3

See more details on using hashes here.

File details

Details for the file edgedb-0.24.0a7-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: edgedb-0.24.0a7-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for edgedb-0.24.0a7-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 560ff9e623e96abf22ab64d3f144b69edf539fc95e06a08e6b31cecc69168d1a
MD5 b1fc535b3db2b7809a295c088fbc5500
BLAKE2b-256 b67389d76c2ef89ffe71616d1d8248203153ad3392644dced4ee5f6174078834

See more details on using hashes here.

File details

Details for the file edgedb-0.24.0a7-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.24.0a7-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ba36687abf66ad852cb504970e4af3274d1c604531580305e790a7beeaf15571
MD5 17d3d94d5e106e37d9e557931eda3a34
BLAKE2b-256 8b485b229521caa7dd721130c3d71df77f3024b4704e6fe6739f2e6a378c794a

See more details on using hashes here.

File details

Details for the file edgedb-0.24.0a7-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.24.0a7-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f7b955ee8279028b0e2f569d2d1ab5cb7d837d33253f911499c491890e52ef0f
MD5 646bdeb5bc1d4544fa95c4e6795a7512
BLAKE2b-256 c52c3d8ac0b4e50712f79cc4328124d2614cfb251490430dd51a656087e38f36

See more details on using hashes here.

File details

Details for the file edgedb-0.24.0a7-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: edgedb-0.24.0a7-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for edgedb-0.24.0a7-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 07153f5f2055940201192e4d6bf66797f1696afc7ecbd3218db97360078a372d
MD5 f95680aa4c1208c79612674ab235ac59
BLAKE2b-256 4fd13e6e2a46e6ad3139d51aa93cc0b40753af42c0a3312a803110e0ccfec4a1

See more details on using hashes here.

File details

Details for the file edgedb-0.24.0a7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.24.0a7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 aeea6f67c8cb1e06009a6beaff1fa95918afd0d8fbe7b7a599f303dea15246fd
MD5 dc5faadcb878271cfd039f40c91027c0
BLAKE2b-256 5262bd5cc105be7110c9a914eb7da9ec6758103199038cf5ed4b3b764941ee87

See more details on using hashes here.

File details

Details for the file edgedb-0.24.0a7-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.24.0a7-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4ba879e85284e4da6b4d2890cf890d9931689be650c4dc903c460dafb38dfd31
MD5 2054d646b9f17d87548f22998c1d9efb
BLAKE2b-256 cb9ae85f2edaf0faf45d58f6f4e88a83db49686cf64267de91a7c35d5e55e731

See more details on using hashes here.

File details

Details for the file edgedb-0.24.0a7-cp37-cp37m-win_amd64.whl.

File metadata

File hashes

Hashes for edgedb-0.24.0a7-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 03bdadbaeba03949c616f2d36597de667ffef2ecd73ec5d9476e2322ccde95fd
MD5 7af532cc200f9dc35e058cc8ded9d63c
BLAKE2b-256 0317dedf9d7ba511567d57b9afe2eac92fcc004a8f623c4e747933bfa86d4d4d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a7-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a4ac13a9290a61ef7ed4e0edeaffde106d242e30c4ca3d2f377a6962563f5fc4
MD5 6533c3c9d30eed1a8b0d3872fc4e696a
BLAKE2b-256 738dbfe76d10f7435640a0838ea2228c2b85a91228036fd406adf1382b4b5cf9

See more details on using hashes here.

File details

Details for the file edgedb-0.24.0a7-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.24.0a7-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1db7734b9bebde1f09f4b6ac9565d7ead1a195905ba5d3b2701405a61f2a6ba4
MD5 b9e3a746c04b4f2a2d3364a6ebcd46bf
BLAKE2b-256 ef12e17edf198fe80f7dc65a75ce39860c2b824f91dd67b071e594e01ea5e428

See more details on using hashes here.

File details

Details for the file edgedb-0.24.0a7-cp36-cp36m-win_amd64.whl.

File metadata

File hashes

Hashes for edgedb-0.24.0a7-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 a3ea97605f450a1d023cceb3b6917380dfe1c0f2fa987d33faca4d3f1acf19cf
MD5 4560e96a5c855c1a6abc44812880330c
BLAKE2b-256 c8668f15d2cabfa584818919e635acc5d2ef2dafbb8dc7d04f35337d20ec71af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a7-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b3349750b7f7f0c738f8f334da6aee90d7adf4be543ac58ccf20b029b5331c29
MD5 4bb59dcc42c2071acee9b375f8881082
BLAKE2b-256 cb78b037d8c6f47a99120e9bf9814ffc12622d78c7904e9de5eb88241e8cdfb7

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