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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.10 Windows x86-64

edgedb-0.24.0a3-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.24.0a3-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.0a3-cp39-cp39-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.9 Windows x86-64

edgedb-0.24.0a3-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.0a3-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.0a3-cp38-cp38-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.8 Windows x86-64

edgedb-0.24.0a3-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.24.0a3-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.0a3-cp37-cp37m-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.7m Windows x86-64

edgedb-0.24.0a3-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.24.0a3-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.0a3-cp36-cp36m-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.6m Windows x86-64

edgedb-0.24.0a3-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.24.0a3.tar.gz.

File metadata

  • Download URL: edgedb-0.24.0a3.tar.gz
  • Upload date:
  • Size: 838.1 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.0a3.tar.gz
Algorithm Hash digest
SHA256 9ba052f81be727949e60a94b4a4aaf40e14f2fe03df79802ee5e517262043b60
MD5 8a2d09c7c09b6b9db5e75c0653fc5820
BLAKE2b-256 ad62ff35c0fc30e31184332f9e857f0ad31d013619b889661b615ad08d90b52f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4a155adde750a1ba8a6451cc5691a777495e6a49d23564c07cefc3db1d9b229d
MD5 da77028a9d694eec7338c0a70a6236e6
BLAKE2b-256 07897636a57d4c49fe4e5086e309e2e96fb6732f03ddcee133f79c419bc3a607

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3c05848908b6b684d40f7c47500b180f596ca11ac9cf332ab3e75b14f6872c90
MD5 f18d6b4f85c0edb249e001e59190ece9
BLAKE2b-256 94baffe4f323db5b208650f6af835cb784ee4c46c4b08e962b90998681a6c308

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a3-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 92901bdfa12c8d4a900a2aadd68f3c7196129d857310db7f90e55bf7163972da
MD5 217c75812308e6b927f0ee67d2ca8ae3
BLAKE2b-256 aebd9fbb3edcdd65b100e4db3ec43bc8169798c71b517919a0759e4d3b8aaf93

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.24.0a3-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.0a3-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 40a1bffc2bfb998bc7acc50222adc87ed8c1245ab6e625c7d24ed31ba68ce926
MD5 73a45703ab52a0f5cd3a415483586162
BLAKE2b-256 f2de04b9cc5efbcc7b33ed203611befab7bd0e323617b0a8e9f4c386886fee4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f953ebd933ad3c413798dd0a488b0e318a4604ef41275fe223a9110dd7451f2a
MD5 43f18bbdac9031716fcd216e8347641b
BLAKE2b-256 43d2a28f3ab70ff9d15da1cd4d277abb907c09f22dd124578d2f90f41a716eb3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a3-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d66c2195e84bbf49a3686f32a224ac014e99cd09891f6a4aab1f8ad7b1c5a94e
MD5 d8bf872647ba5d0c939f368a75c5ee47
BLAKE2b-256 86d6dc7fb1a8f99e5622087b6eab8d3e01fb795d70f53096411f27d65eb2c6fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.24.0a3-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.0a3-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d649ad9b650c0a6d2bdeed2d51747f793422153d03f2d415b50fdb9d94b5794f
MD5 6fbf567f4d090f7d29a84e18e8cfc634
BLAKE2b-256 afb468a8ede89736e8dbe136440863fb38713e323a87b166d5a8afe7ed9fa1b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5a8c07ef4dbe142575393da3deb1161a289de7beb8f37909822c13841ceff485
MD5 40fb8f4e8100d0e726fd60faebb09af9
BLAKE2b-256 9c4cff963e28e0af73c2bd38f6205d5a7d36357e9763019c154706d1df0f2ac9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a3-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d185a282cdbb71d157daa830ed822ee963c62efd29bd90b1ac0f9b62cc05d0e5
MD5 b5a4bd9be1021988e14c9274ff6da8a4
BLAKE2b-256 6c97e34d4b1cf72f37438a85a7c9f822332051ce356fc8f500898b0738d05355

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a3-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 b6a2a9e42a10c8862ee8f8e1e46dbf1733299fa11cac48ef597fd03e0346b74b
MD5 133043931088cd11dfdf4964d7a44fc9
BLAKE2b-256 0fe378af47faf1006cec7c2052fba3e8af89a23afb889dad5384de37cd684113

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 981bf4a3e13b416c883cfc091df8e40b839ae7c32196071d549af27e02197c5a
MD5 2aa33400413183c44cd5bf73776c2407
BLAKE2b-256 1df80d5f7df0ba537c7a7bd9de48db285b2badd9d395d7530d472946e6394215

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a3-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f750d547d1b49d8f0657ffddde1cb96d95c21501d88a9b38cf7fa2fa06f2e718
MD5 204eca1cbc20cedfc960aa0df2118148
BLAKE2b-256 db4f7b2690b0c40a648d07206b3ae28f554b1c1aa8727a9bf21c343669bf3a6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a3-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 c37d389e7082c4417475f80dfe77563478a54accea3fbee1678e4ac0802aa13d
MD5 3deef5cae3bfae944d46e981b315bb63
BLAKE2b-256 9275c592c7e674c1470d5699401bb8533679f5d7c12f531e25265a09e7e82646

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a3-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7409e9d28149f19de333c727ecde487595b0b60520cbb59cfa072b9698323017
MD5 e0870f52048aab29ba41667e9cc532ff
BLAKE2b-256 b1b2b45cc0198d6a37aa7fa0d8b037d222f73e9418d722dcb75874295d568ac3

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