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.7 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-1.0.0b1.tar.gz (916.8 kB view details)

Uploaded Source

Built Distributions

edgedb-1.0.0b1-cp310-cp310-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.10 Windows x86-64

edgedb-1.0.0b1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

edgedb-1.0.0b1-cp310-cp310-macosx_10_9_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

edgedb-1.0.0b1-cp39-cp39-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.9 Windows x86-64

edgedb-1.0.0b1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

edgedb-1.0.0b1-cp39-cp39-macosx_10_9_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

edgedb-1.0.0b1-cp38-cp38-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.8 Windows x86-64

edgedb-1.0.0b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

edgedb-1.0.0b1-cp38-cp38-macosx_10_9_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

edgedb-1.0.0b1-cp37-cp37m-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.7m Windows x86-64

edgedb-1.0.0b1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.8 MB view details)

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

edgedb-1.0.0b1-cp37-cp37m-macosx_10_9_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

File details

Details for the file edgedb-1.0.0b1.tar.gz.

File metadata

  • Download URL: edgedb-1.0.0b1.tar.gz
  • Upload date:
  • Size: 916.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for edgedb-1.0.0b1.tar.gz
Algorithm Hash digest
SHA256 a0a2ac97fc70a1486fbff307e3ae0cc2e8c8e1adfb2cb83815ec36f82d88f25b
MD5 3c9c93268bb3d41b052658e74640f245
BLAKE2b-256 2eae6992e00d7a9f9fa3401e22c9ce1cac71c3bd50e19c7b2a70b91e2fbd5c9f

See more details on using hashes here.

File details

Details for the file edgedb-1.0.0b1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for edgedb-1.0.0b1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 285815f0abc5cf8b8157e43bb3ee2835739989551aecc95cbe15114e5b44a7c7
MD5 370389052b373d58e37f263b5500a016
BLAKE2b-256 2f19da475fdcb78cd5f91f6853b7f66deb162cd364a8a4a81ff1b908941b1a2b

See more details on using hashes here.

File details

Details for the file edgedb-1.0.0b1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-1.0.0b1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 df35ab92ea3ae5b07e5986767d7189bc562e8c37abb2fac9bba95be50dd57f45
MD5 02792e6d11d520e5a7157d72bd352b45
BLAKE2b-256 f4681acfbb0092a86dba4d85855ec9180d7940412eaf80956bb37e0d1ff25f69

See more details on using hashes here.

File details

Details for the file edgedb-1.0.0b1-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-1.0.0b1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ed07b9dde8651c44eb2cdc58b80edd369da598218129ed35f8fb29ca2079ed28
MD5 afe135dee3108e67166c1f090a4d4bbc
BLAKE2b-256 a8afd86e3f275a897f981219db36847b80b5e0daabe8c2bbc5341770e49d7a47

See more details on using hashes here.

File details

Details for the file edgedb-1.0.0b1-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: edgedb-1.0.0b1-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.15

File hashes

Hashes for edgedb-1.0.0b1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d21aceb78d4d61a6563b171c797e98d08110a412063c804060cfcdcfb405ecd0
MD5 77abb678f45a4ae332913928f5c892e8
BLAKE2b-256 4cbd8ff7d95d8e9eca79665954e5150b075082b3d59b9cd166a330db403465ba

See more details on using hashes here.

File details

Details for the file edgedb-1.0.0b1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-1.0.0b1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d241f5696fbff8856175b22fd6d0579fb01e7bba5c6aa9281bf468416010629a
MD5 e264dc8bee7315c0e2e475e0bc785904
BLAKE2b-256 e39122e655c87d135befdd3dccc3075fdf0506479c3df0af095a0cd6e6cecfa1

See more details on using hashes here.

File details

Details for the file edgedb-1.0.0b1-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-1.0.0b1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 589f7e3c5b2668dd21123ab6a22a0ec60d70eedbfee3fa99d55892f64dcffb9c
MD5 d9ca374a1f435c7232655646fa3bdcd6
BLAKE2b-256 4c89b9c8b9716db898155f62e34d47c538f110148d87fa591a788600c05554e9

See more details on using hashes here.

File details

Details for the file edgedb-1.0.0b1-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: edgedb-1.0.0b1-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.15

File hashes

Hashes for edgedb-1.0.0b1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 dcec27c427feeee9053c27dffbd1884097509527d24512161a5573091e972328
MD5 7b560870c84eb7ff025de2c161fb03bd
BLAKE2b-256 bc177f4f5951da2cf84cac1998c3d8fc947d357a9ac2976ee74c9ec5628fae3b

See more details on using hashes here.

File details

Details for the file edgedb-1.0.0b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-1.0.0b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1ebdc23947398b54ee48bf143255c016ab675c7d34066494e6d592ca460ce4c2
MD5 b2278708f25483e7a95a1a1f0b9f12f5
BLAKE2b-256 36bc40052d261ccf1814f4db24a95b5f683172ffed20cc7964a0872a49b21077

See more details on using hashes here.

File details

Details for the file edgedb-1.0.0b1-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-1.0.0b1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 90dc129ab3a810d1db2083bbae3a6bb53c953a877d1e27e45c46c64dbdc36da4
MD5 2e255fb9fe92682736975b608e04c57a
BLAKE2b-256 8b85b652f1f2cf5f18a83d0a652c828abee386c747470c43c1e7f8f68b17ea79

See more details on using hashes here.

File details

Details for the file edgedb-1.0.0b1-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: edgedb-1.0.0b1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for edgedb-1.0.0b1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 455b490f10ee1005370ac409adde8ec0b2072c43b3fd8d51474ae46b5dc3a28a
MD5 51d5befe0a93ef89944a7495257ac206
BLAKE2b-256 a06a5cd3609043667ea316574311121f9a33cdef449c28f09ea43154ff23c35d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.0.0b1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bfd196ded2530eec54e93eb187aeec6d859289e39bf3e635f26df46bf8809a7b
MD5 ce2d0a5be7fced0fb0d5799f95dc1762
BLAKE2b-256 bb03a8e1f16e26dbfe036150bc3b34a889b638bdf1ce9af210d9d6e394d4b04c

See more details on using hashes here.

File details

Details for the file edgedb-1.0.0b1-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-1.0.0b1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8fea88b4f29aee1dbf846aeb1b8881ab39e55303576fc993566b1efc1807d0be
MD5 a808fc962d111acf69ff3e092a8c2fef
BLAKE2b-256 634b8564e8e1e1a52e242f069266342ef04accd694ede8ff400bc95f99cf0a33

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