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():
    # Establish a connection to an existing database named "test"
    # as an "edgedb" user.
    conn = edgedb.connect('edgedb://edgedb@localhost/test')
    # Create a User object type
    conn.execute('''
        CREATE TYPE User {
            CREATE REQUIRED PROPERTY name -> str;
            CREATE PROPERTY dob -> cal::local_date;
        }
    ''')

    # Insert a new User object
    conn.query('''
        INSERT User {
            name := <str>$name,
            dob := <cal::local_date>$dob
        }
    ''', name='Bob', dob=datetime.date(1984, 3, 1))

    # Select User objects.
    user_set = conn.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 connection.
    conn.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.18.1.tar.gz (821.7 kB view details)

Uploaded Source

Built Distributions

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

Uploaded CPython 3.10 Windows x86-64

edgedb-0.18.1-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.18.1-cp310-cp310-macosx_10_9_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

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

Uploaded CPython 3.9 Windows x86-64

edgedb-0.18.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.9 macOS 10.9+ x86-64

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

Uploaded CPython 3.8 Windows x86-64

edgedb-0.18.1-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.18.1-cp38-cp38-macosx_10_9_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

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

Uploaded CPython 3.7m Windows x86-64

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

Uploaded CPython 3.7m macOS 10.9+ x86-64

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

Uploaded CPython 3.6m Windows x86-64

edgedb-0.18.1-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.18.1.tar.gz.

File metadata

  • Download URL: edgedb-0.18.1.tar.gz
  • Upload date:
  • Size: 821.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for edgedb-0.18.1.tar.gz
Algorithm Hash digest
SHA256 4ea531ca97f6b607c411d46519639e34543229b63eeb961859b4af8dfcbfc405
MD5 6eb6cbf715e53b3ca3a3c3f3b71ef3a2
BLAKE2b-256 1ca4a1b959343618b803fd8b738cbfa4f031a3a87298fd00d1506d61d6d9cb8d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.1-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/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for edgedb-0.18.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2543e601db6d4e142ac0408a8b973b215f6eecfcaa78dd10800b5bfec6d6f090
MD5 a2051b7b645d479773477863803eee04
BLAKE2b-256 7173b2eac82ee4096bbcae06d2ce8196997aea919cdb96c36edb96b110b4b13f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.18.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 352c96a7817b0075825d7f76675cbb6d0ff4332e692add491b4f166637c6c9b2
MD5 376b1a87fd314f57788134f7dbb23207
BLAKE2b-256 8ed26d41fce2c6a95dc1384d333bfa88daa2c4aa3644c3a49c68b8842fbf758c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.1-cp310-cp310-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.10, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for edgedb-0.18.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 331b1b578a86d432f906130ec20e4956e585eaf11e2b0c17074e657b8036c9f0
MD5 f593660f353384298de5d780ba99de9a
BLAKE2b-256 05afa068dc59c50bbcc14d7480c476b1c7d024746222ca3545d8075c4977b6c0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.1-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/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for edgedb-0.18.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e22a902c9c7e705dc7fe58d88fa6abf71c90ead3ec1b95663c21d7c4eeb902b6
MD5 769d6041eca9cf265a69bf79296442c6
BLAKE2b-256 0109163196dd301d57f489a7ca518588babc371a230e9dff84880170cb0e35dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.18.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 99e34dec120174a18e8d73389628c1d9f10cbf87393945eb9a40738d4216189b
MD5 ce40ccdd7ca77e8dfe9a6c675f7f89ec
BLAKE2b-256 3ef7a5eee351e09d23f3081d3724da902fc7fd73d733113b656eb0f264756301

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.1-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for edgedb-0.18.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 981ed33e8f4c27c14f804d2334d24fe37bac08ea683e7ccc03baaa62fddd04cf
MD5 0c7676c4a6e78c8783e1dbd5e6dfaf88
BLAKE2b-256 f60238a57c29217ec2f7e5da4c6e4eb59bdee4270976c7cab6585b41e7f787c0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.1-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/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for edgedb-0.18.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4db2af4cc5b6a8bb0f296301c6009e121d4c72cd6256edd95fd8be33f96cb56a
MD5 300634d4074d0ec15fb1bc1177736210
BLAKE2b-256 d26a1c6053da1275b1b39b371c08ac4ab5288ed64ba42a73e45ecbc5f1dd1232

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.18.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 59cd4a0ad7be0755e3eb105616be861307ca1c16fc09f801fbdc16debc2d7450
MD5 c4f78be4cc2952c94cdb845c54d3ea0b
BLAKE2b-256 5dfbd3049ea3f84788c915db7e0bd958033e7f4c9b3a2c16798cf6f088681306

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.1-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for edgedb-0.18.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0cd3b02402fadcdad8a6ecc9dc0d430c16f1a2e1f6726eba5a302579e2c7a8be
MD5 19c68148644bee61ba99bfdfaeda952d
BLAKE2b-256 3724538881b3a38bd055335f135a1a1bcd4a24a47e01e49485402ec1210bcb29

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.1-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/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for edgedb-0.18.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 609f8b034a46eeae8b1c3f9c0bf2797ce40fc378d81e0f227761ede4e3d1d2c7
MD5 c2b0e8a8876a1eeb9853f6f5911fb1a8
BLAKE2b-256 1ee849560df0c1d9a2314942b757dc6e9dfef1fa4cabd4bc8cfbdf3ebf683d6d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.18.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 21ad9a08a1123e6af833f92e3754c3345c61e04e21cf51fe4a9fae2fbb860515
MD5 08767d7baca9ea1074d62f68c3214686
BLAKE2b-256 d27268eceff0815c748989e04d3273ed2e67507000ad23aa3dd3d13c625c8707

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.1-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for edgedb-0.18.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 06bd56c8cb68af22a6403b93ec22ea676605cda44f11651dc25829f3cbdc37ad
MD5 249546bb652da8cdde8847d6e506c39b
BLAKE2b-256 67ce4d1161acf87ab4531c20dbaea4bebd13fb76f1a59a796cc1ba1a8c86e9d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.1-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/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for edgedb-0.18.1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 bed0b76593425702f52b09964fe91020435978cdd799c7f5608df10afaad85e6
MD5 c85d51433f76acb60db03351bcb22f5c
BLAKE2b-256 8feee072048a923a6f954cc017465655bb635cd129466211eac1e21ad7854612

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.18.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1b0f6643bd69b3d5c9e1882dc437e14378d589e85dcd438f6eeacd723d72a492
MD5 bf5b74b18a2e95cd27d86a1d7d7403ca
BLAKE2b-256 ab1a2aad4d5ef90ac1fd7552ba8102327a70c2703f14bd2a7dc84ba481b1b63e

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