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

This version

1.3.0

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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.10 Windows x86-64

edgedb-1.3.0-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.3.0-cp310-cp310-macosx_10_9_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

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

Uploaded CPython 3.9 Windows x86-64

edgedb-1.3.0-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.3.0-cp39-cp39-macosx_10_9_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

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

Uploaded CPython 3.8 Windows x86-64

edgedb-1.3.0-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.3.0-cp38-cp38-macosx_10_9_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

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

Uploaded CPython 3.7m Windows x86-64

edgedb-1.3.0-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.3.0-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.3.0.tar.gz.

File metadata

  • Download URL: edgedb-1.3.0.tar.gz
  • Upload date:
  • Size: 923.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for edgedb-1.3.0.tar.gz
Algorithm Hash digest
SHA256 78873d67e60ce2b2702afdae2aa5d58a91577e8ebb902c7c029dffe5184360e7
MD5 b8ac41719e3ca7b7995fc9e1259aa14e
BLAKE2b-256 1494bc6539cae133394f259b48a04e39da78deb88aa2133440e6c31907fbaceb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-1.3.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for edgedb-1.3.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a325cb6647e22642ee1c016d3d6edaebfb8eb0e99e5ae4803c9c3098b2cd931b
MD5 9acd6cdcc5d68a12e68c88fe66af7dc1
BLAKE2b-256 d2652855d8d3e011716665ceb164286c57eac09cf5cd06a525d44e0d485603f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 710bd9fb233d29aa94f66c7da21919a6a726c84f268014ad6c2261f3b131f3f1
MD5 9b5f895468d470e838600b0b012625b3
BLAKE2b-256 258160e47fba1531d570f06d4783a3d443bdcf0a9a21ea4794ea11dea6aaf2b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.3.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2469e7c61d51ae812c9f9b8d814523192cc044109b3a5fe6ee2b6a24e8cdbccf
MD5 df10849f25ebeab3046745ada29d72e5
BLAKE2b-256 fa403a4a22410023212fc49869055192f1cebbf5efe221909e11e5e24b47460c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-1.3.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.2 CPython/3.9.16

File hashes

Hashes for edgedb-1.3.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 67ef5da8a5b2b6e4a95248405a6288c32e31c1c2373b9669f3c94f0f821d9a32
MD5 0ff6d586002985d8b79be0375218f59d
BLAKE2b-256 f0d8b0fcdc194cf891cfe3ab4b964a7537854c63c51f2cd124c96d89449d0823

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 760732bce7f83356d0724be51ab7f93e8aeaaf2eecbdd824a6d338b406ee54b9
MD5 ff68b15453fc71f100fbaddeb1bc4ab4
BLAKE2b-256 79c4c8ad07e77630042773e37aa2e210c42927b67e3fe4d414d0e0c9608dacde

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.3.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6655979cd6e8638abfe33c4837e63f0e008058e054705d79bb231db8ca4b8c63
MD5 400f7d377708c44c683d27fd9b954bc0
BLAKE2b-256 dcb9fa63d0e36a3b6dcc5ceb93b6fba27c7390b1493e547669dfcb7d6cbfe66f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-1.3.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.2 CPython/3.9.16

File hashes

Hashes for edgedb-1.3.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 679c76fcd1b93424f760c581eb0974735da071835fb00065e5c189381a1c0072
MD5 d5066ed84aa76c9d6141dc13f82ed4ad
BLAKE2b-256 f3b2a668cef692e2905ebd19dac5b2007403ab8fb40c3bce0bfad9b619ba9fa8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f66d2daad06c12c434aa266b0536413d30302a20c45ae276234d92210f6d1bd7
MD5 a7e12822783d3c9f2e8b15862ac2a2de
BLAKE2b-256 b7d0561532e66df2ac7f515e1e54fff63696c12932772195955ec34589455764

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.3.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 28c36d197546fb41be26b473bdcda3555fc79983e11f25da75b559593e031480
MD5 f67a0a37757aebfb20329aebb7ef5780
BLAKE2b-256 dd3db31548fe18de8dabd559c29bdc70e50aa93223be83bb884b65dacecddfbc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-1.3.0-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.2 CPython/3.9.16

File hashes

Hashes for edgedb-1.3.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 3abe8ec1038d2e2c8b1ff24ba0241c3f09e313f521729ee8c85351fba97e1f30
MD5 80d5a15080ddfd76e8a5265a69798743
BLAKE2b-256 c7c4049276eecf1b8ed958d3f22d536dc23d5578623d61f9310f7dc1cbfc4ba0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.3.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 23e3b93efb3f4da0e4da70ae84cbcbaa40d9d002b8098cbb53d8f4515903781c
MD5 522f7378dbca36f4f770a6903e37acc3
BLAKE2b-256 2d34d88f808d2625a1c672985c255affc56bbfe963290a384b08be2e6c7cc204

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.3.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6515ade8aa9d727ba41d6205eada91bfb469f7b28bb2837bb74a0a076952f869
MD5 a550acaa2eb909ad03c92a689810bb92
BLAKE2b-256 b1a292ea3cf0467df21b4d8ba4be2e0ccfd4997d871ad34dba3b914a6e0a1831

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