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-0.25.0a1.tar.gz (875.9 kB view details)

Uploaded Source

Built Distributions

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

Uploaded CPython 3.10 Windows x86-64

edgedb-0.25.0a1-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.25.0a1-cp310-cp310-macosx_10_9_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

edgedb-0.25.0a1-cp39-cp39-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.9 Windows x86-64

edgedb-0.25.0a1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

edgedb-0.25.0a1-cp39-cp39-macosx_10_9_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

edgedb-0.25.0a1-cp38-cp38-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.8 Windows x86-64

edgedb-0.25.0a1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.0 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

edgedb-0.25.0a1-cp38-cp38-macosx_10_9_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

edgedb-0.25.0a1-cp37-cp37m-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.7m Windows x86-64

edgedb-0.25.0a1-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.25.0a1-cp37-cp37m-macosx_10_9_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

File details

Details for the file edgedb-0.25.0a1.tar.gz.

File metadata

  • Download URL: edgedb-0.25.0a1.tar.gz
  • Upload date:
  • Size: 875.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for edgedb-0.25.0a1.tar.gz
Algorithm Hash digest
SHA256 81914b1da2d6ed9d03efe7788ce39ec122792782a0dab24ec82f7a7949a4f2b9
MD5 1a0bbc25b469e65f3c1f325dc525283f
BLAKE2b-256 282bf882b8531c5210e08959e72b74e3b7ae56da956c78e89f420881fbe38314

See more details on using hashes here.

File details

Details for the file edgedb-0.25.0a1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for edgedb-0.25.0a1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b3df7ce227db25acca883871fd45cc34b9a5c27421a94054f3fae3cb4b3cee58
MD5 f89e752e164d7bc45a2a664af9e1c86a
BLAKE2b-256 492310c5bdf9d05b998257c2fd82d590b3f43b488c9ef41e5f4a713c964fb173

See more details on using hashes here.

File details

Details for the file edgedb-0.25.0a1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.25.0a1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1726fa2217ab7f2553bd97eb3e9f3a2486eed2dbae59c1f9bdb689c742e7cea2
MD5 36552f76cce38049f9e53f7094c0da03
BLAKE2b-256 acd79c2fff2bf340bee6867b2ddf37399a4654121affdf09e83a0a6f7920ca57

See more details on using hashes here.

File details

Details for the file edgedb-0.25.0a1-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.25.0a1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 cf85d6451c079f91f9a0161aadc0df8eb37f3737f539f2a449582579276d57e7
MD5 c66aa98baef2d896853ddfcf7beda41a
BLAKE2b-256 733c57f652bad9f4cefb2081ebe1915d599db428c19d949e22feea7d89b3b248

See more details on using hashes here.

File details

Details for the file edgedb-0.25.0a1-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: edgedb-0.25.0a1-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.14

File hashes

Hashes for edgedb-0.25.0a1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8fc6323e57b474b288e56c91a1a504369a4fa9fa60813545c40a521e96693c9b
MD5 59758f696c97f91762e5a8afb4d310c7
BLAKE2b-256 6e4c1c8d9e7b93741499ec6244ed1881b4742c5f71270722b0d50847b28032fa

See more details on using hashes here.

File details

Details for the file edgedb-0.25.0a1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.25.0a1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 21384010f3a3fc58c2a44210698e1d6c568f48c6d9ce69d3d90c265f7a5e8d91
MD5 21b9455d54e142dd9c46c4d55d055566
BLAKE2b-256 4be6015558e30bfb2dd1a837f8fa62f5de96f57ab049743ec7328b0174910e53

See more details on using hashes here.

File details

Details for the file edgedb-0.25.0a1-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.25.0a1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 196a6d0f0257e235831b135d33d23ff035d2afc25569db991223217f3479a3ee
MD5 b5f594ac0c093974a08d2943179286b4
BLAKE2b-256 44082d1012b8abd0aa06d8e528e0f0ce9fe9e360d8a87ec63f2aa7262e64fc1c

See more details on using hashes here.

File details

Details for the file edgedb-0.25.0a1-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: edgedb-0.25.0a1-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.14

File hashes

Hashes for edgedb-0.25.0a1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 115ac295e88c70b37e5bb1ed9e6d11dfa7ab305c7dd5fd765666ffab8aa9cb43
MD5 8e450add5f98d7ab5a9fc6e263bb0a86
BLAKE2b-256 ec96b67369398bb5f953159c1ae44cfa63146fb07364bbe5754282e922a4cd02

See more details on using hashes here.

File details

Details for the file edgedb-0.25.0a1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.25.0a1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7e71b0658e76a1e1ada06cb93a90ce1c99aed3f6967d6e8fdf817074768c5e73
MD5 15dd520170f12236c0c91f4279ad37fa
BLAKE2b-256 c9c1e70b8dc6d19514ed317cdd43d44a09873025428c84d6e3a1fdb5f18ed982

See more details on using hashes here.

File details

Details for the file edgedb-0.25.0a1-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.25.0a1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 509ff0be1e3402e7078a883dbd72a86b321dc523fdd844d61c4c0864fb431e1f
MD5 eecada2fc6fac6aee7e0c931f19567a0
BLAKE2b-256 214e7e4420138477851d4e9376d77b02a6f9a23a39228f65693407d165bc8aed

See more details on using hashes here.

File details

Details for the file edgedb-0.25.0a1-cp37-cp37m-win_amd64.whl.

File metadata

File hashes

Hashes for edgedb-0.25.0a1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 89a700706351f00da901518538efe991af64f7cb693b8cf287641e81355ad622
MD5 c02f9ed9f223e2b4770b2939ee0778c1
BLAKE2b-256 ee97d1dacd5a5ea581846326958522e6da56edfc16f4769baca8ce2209a66558

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.25.0a1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 647c56ecd1d0ee4833de29905687323cb8e7fea83810561df89990179fa0be75
MD5 a70511b1198f9ae2791e64c5998c3016
BLAKE2b-256 be5aeaddf698b12d5f7bf57ff666a328570435407fa04c899d4a7034b3b254ed

See more details on using hashes here.

File details

Details for the file edgedb-0.25.0a1-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.25.0a1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6b1a965863a2e58850e1dca58786b07a63180347e0e80b35910f7f876d0758b9
MD5 c5ce00f4d2bbac049b4a0a0d2ae9ee8f
BLAKE2b-256 5b4be822d3f59a25ed1ca2a687895217739fb1875b55b1ca6b47168f3140ab3f

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