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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.10 Windows x86-64

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

Uploaded CPython 3.9 Windows x86-64

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

Uploaded CPython 3.8 Windows x86-64

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

Uploaded CPython 3.7m Windows x86-64

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

Uploaded CPython 3.6m Windows x86-64

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

File metadata

  • Download URL: edgedb-0.24.0.tar.gz
  • Upload date:
  • Size: 880.4 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.0.tar.gz
Algorithm Hash digest
SHA256 832581fec4cc842a225092935d3950411680ee28f524368cf122e3f35b500668
MD5 7369cddee1979724cbcfb0a5dcb77910
BLAKE2b-256 7e3dd0ecdb7388230542aa86098f41db53173ff89bdd74fbfe1e8c4ec39f9ed7

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for edgedb-0.24.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d7ae2ac1e814831b32ed9eddc1621b65435a764aa51a9c8213c8746d6e91813c
MD5 f78f71d686cd9ac7d142234b0c070a2b
BLAKE2b-256 489c735108fe4fcf00f3d010d2aac18ef15dbfb8fbb0e39f91f53af1df20ba9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 351899cf40a8bca865ef5d3aca06a9559f6e09b6d48b1473fff2ace61c3e37be
MD5 790c79c3d0b5db154ea2f3d4b9cd00f9
BLAKE2b-256 bba799527d6d561dd3a579c56a2285d28c7b470e8b6c65012ab8d4c625baf042

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 580357334438d807a0a5cb655c968c572ab8c6b6d3ab1bb04dbaee770379c0f7
MD5 b87febb51d6200b4184f898920f36573
BLAKE2b-256 8aff8094a071e85cfda8d81107f99a3a1a247673c8466b756cbdd3d28e649a5c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.24.0-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.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8350b0c67167b71a0f525651045ed951d8168421b94251cfea3ca4be936caf47
MD5 f6bbb413a5750d76c668b766118ad42a
BLAKE2b-256 e46256175cea6f8e1438b66f8030a92106efef172fff1482467314e45a9c051b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 41f9486cffa08ed030ad72b63d689cd97c45df0c1536c76ddccc82ac1de01158
MD5 21e7f82c9ba4190a64ab2766af604c23
BLAKE2b-256 77e79f81aea32b979d6ee92b45f7b081d7af81bf742bcfb504cdc9bf0e5bd284

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a7067f058d646eee4e434ec1577aaa9aec11c5f07081b03177e124c730d9c6ac
MD5 d4f1bb6c1d8ee8e0c4b1a3269babd1e8
BLAKE2b-256 346eb85c58f83d2f88386f24735459bd7be640bbf17caa0a56d36d8f9af28b23

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.24.0-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.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 cbf561876c433e146f632f147d7b622ab9ccf4713fb181e40edd792411fdf58f
MD5 c2e50a20defb7d9a358f5e916c5c217f
BLAKE2b-256 ffbc3c18e7ce601fe78f72156fc4b1fd0f8866c7f5113b518cbb28ec1c451c11

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6653af908abdb60a4620f6a7a940bfc580806f97167177448244ae14e1d69816
MD5 54ac3d15c502366455b44c34102d207b
BLAKE2b-256 4eed3a29b83df4cc30141ff2598db5bf6b2a033925a216ee8e239887398cf15c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2ab36083f29c971b9e9c5adce0f551a987e3ef5ebb3fbea98a6b1942a51a5f79
MD5 1c20b3696ff9f7a537132c582509a4e2
BLAKE2b-256 b50319ec3ed57e7779d95bc26d4afb5e2b2404f22997c5b8228f2610c1b07e7f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for edgedb-0.24.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 dd049ddecada46276b28beac16eaf32e203f66555bae548ce8a1ff7f62ec1ea8
MD5 985d4e9acb79f49c2c9f23f1a38f8fcf
BLAKE2b-256 1486ea50fbed74d7be5e1696440514a458a66c071aec9c5dcc57d97ab97843b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b4d55ac3453f16e611c8a90c753587f64c2796b09f844322c471fff82024a4b8
MD5 b33497560f5b054a6008c8a9644d4ed9
BLAKE2b-256 51ca4faa5f203d64e6976a17dc74e9cf991142f9f5ba269130e7d129c0f59e65

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 235f55e4f38a57d0950878b4dbd72641fab68d0e8a689d35b93face01d8e8945
MD5 16eac04b132275f62ea086701ff430f4
BLAKE2b-256 2e52404b386c233281dbb7f2cde519556dfeeb69906b3538b0ac921a79f8f269

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for edgedb-0.24.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 30e2ccdeb29ebc8b8e9cb7e2735b6838aa04817fc9a6ce12e90afa5c3793bd22
MD5 014f48a469dae8ec3c207f3eda8b337f
BLAKE2b-256 ebcd54849e8783f82b0381db3bc04cf9e1f4a3160dbb8e14fc0255133f97849a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 44377fb9d33be0e40dd3a0624bb5883d00aa8e7f44ddc727975869ab503571c6
MD5 41914f647ce50513a3965fe7e1b2147b
BLAKE2b-256 c178206f44f075066d32844a6403e2cf97b504569bd21b02b53db024c4b3ddfd

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