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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.10 Windows x86-64

edgedb-0.24.0a2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

edgedb-0.24.0a2-cp310-cp310-macosx_10_9_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

edgedb-0.24.0a2-cp39-cp39-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.9 Windows x86-64

edgedb-0.24.0a2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

edgedb-0.24.0a2-cp39-cp39-macosx_10_9_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

edgedb-0.24.0a2-cp38-cp38-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.8 Windows x86-64

edgedb-0.24.0a2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

edgedb-0.24.0a2-cp38-cp38-macosx_10_9_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

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

Uploaded CPython 3.7m Windows x86-64

edgedb-0.24.0a2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.5 MB view details)

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

edgedb-0.24.0a2-cp37-cp37m-macosx_10_9_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

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

Uploaded CPython 3.6m Windows x86-64

edgedb-0.24.0a2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.5 MB view details)

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

File details

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

File metadata

  • Download URL: edgedb-0.24.0a2.tar.gz
  • Upload date:
  • Size: 851.6 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.0a2.tar.gz
Algorithm Hash digest
SHA256 8250b3dbd7e9d82791916b1fc84b854cb207507daa71c6a8f9e3ea2526f07de5
MD5 b8d03cb1f1810d51595e1fb65f259f74
BLAKE2b-256 a990b4e7ca14a95fd550e578fa1f0cb2c000ed6e1eed3f4716671668702382f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 bdfae1be9f6896bbafd17342f4bcd7f380fbd94ccfb826dcf42a3439f33b24ea
MD5 0bffc882c3e547fd7c3438f22ec41c27
BLAKE2b-256 81aa40be02b29415acd70d06ec16a6349c6335b3efc2f5bfa84f4dabca94a4d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a1c0ed8ba6f031358517580be5f9b48c16e86215b90b20b1443d6972744fb2d6
MD5 525088f5a56b3cc6ce55020c0e2ab788
BLAKE2b-256 a71046db85246daa9fc04c9428c1487e366c97dd7e36422d7cb4c615eb5b48d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a2-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 834ded0a94f34acb9168c5025494a806e73807d2788ff3d0c6baf42119c921bc
MD5 0c864f805bbee717ac662d8401f1a2e6
BLAKE2b-256 ea2a4f6ea1a4ed38e48661cdb16bee40a4a0312a20b1f1667f0ebb5df0980283

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.24.0a2-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/4.0.1 CPython/3.9.13

File hashes

Hashes for edgedb-0.24.0a2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 28360b86f75d728adeb4513ac279441461cff0352e46b8e60ed00fa90461c8eb
MD5 020a91ca6919be8675092e3b3c6a5364
BLAKE2b-256 ed6e06f2d88c8dca14e153645a3ebebad8ceafc7c6423ddbbd92a14dc1c30ba6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e2964236005d89117328cddd70f97072064755df7fe200f1547f941b7562f2df
MD5 b86451a085cf4ed61f65fc7138a65782
BLAKE2b-256 1436a7a489a2731d34db594d841f6d3422e823b08248eff1084741c1ae58a700

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a2-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1e8658ed5ab8ac54b536f89116a3c3d912baf7b6b2ab640ec76942d0429b6e00
MD5 63850b070b496561d2d610e6fb69a3ea
BLAKE2b-256 ae8ca059732b860baac803cefdb882d9663f3252ada620d20cf8f557eca7c75b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.24.0a2-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/4.0.1 CPython/3.9.13

File hashes

Hashes for edgedb-0.24.0a2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 99d2ba8ce0ee8a6edd695ba85a6a66b1c3bf615f6ca8080802837344c8a5a032
MD5 e7e6a7d5972f816992e3bd8d705b998f
BLAKE2b-256 7f2379c2a8f36ecd5969ba5a0824f209e29bfea7373b8b816655c89fb974f6f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c11002dd2734160b21a30646bf058f428ab6dc9627894bc34dc8c03a4daa7fbb
MD5 1976d0bb8e3a2344acd886bbd0ff93c6
BLAKE2b-256 9de8c724b687bfbdd665a3ad8e959d9732987bd7be94dc67665838ba9e8efa37

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 111bc05e0c6351b9d956afedcb6a4759a1c4466f84fbdf552cf8919baa6114a7
MD5 d3b88c4febc83341908178e4caebd53d
BLAKE2b-256 90091c71b2a624700a324aba6de8036cf0932774c60b25fbce3607cc464fff73

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 b0b62a74b214a4bf635c16ecdf9ee3e7dc5ef47c8d4b00f0d20d90823562f302
MD5 5c579d27e6906f8152728a4ca64e96aa
BLAKE2b-256 2f8fc68381eb2e9faec9ad9ca6f6ce087ea4625f9aeedb14e163fed9f17e789c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7bf81ef977e1937ac62fdb15b0f5010578037d0554b39407fb71cae6d25c0248
MD5 e0e57685ee76bcdab764d6bfc0af3c57
BLAKE2b-256 0dac88a3b6be11082fb5db232a0e6ddd39f77d78ef92281ec736d1599161c56d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a2-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a3d0ac7e055cc150e4d4c441dec8ec171c7720f331a89aa066f292bd43dc1224
MD5 d60eb40cca31c0e946da5a7ebb23a079
BLAKE2b-256 431fac450b2b67583034e77ba36ea3d6f98d9c85620b005acebf2f472dd36641

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a2-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 51c7accee55e5e6de397851fe45a937e35a131331970dac50e214841be777094
MD5 be216f7cbcb828e0f076903cb4eb1afd
BLAKE2b-256 b8141869cfea6a7cb2866f41782f0521ab34c6a55bf02438fe65235299e753d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1d33e977324b35e3463e86fbf8f8b643cc4e8a2ab06608bd14a3352cb9c709fb
MD5 2a2ba9dc3e2d6df2f76b1f6a69ee1856
BLAKE2b-256 930e11040d39308805d16c36b65cb8d1c815bfe832d15416e1447fc09416258d

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