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/internals/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.17.1.tar.gz (785.2 kB view details)

Uploaded Source

Built Distributions

edgedb-0.17.1-cp39-cp39-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.9 Windows x86-64

edgedb-0.17.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.5+ x86-64

edgedb-0.17.1-cp39-cp39-macosx_10_14_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.9 macOS 10.14+ x86-64

edgedb-0.17.1-cp38-cp38-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.8 Windows x86-64

edgedb-0.17.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.5+ x86-64

edgedb-0.17.1-cp38-cp38-macosx_10_14_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

edgedb-0.17.1-cp37-cp37m-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.7m Windows x86-64

edgedb-0.17.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.5+ x86-64

edgedb-0.17.1-cp37-cp37m-macosx_10_14_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.7m macOS 10.14+ x86-64

edgedb-0.17.1-cp36-cp36m-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.6m Windows x86-64

edgedb-0.17.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.6m manylinux: glibc 2.5+ x86-64

edgedb-0.17.1-cp36-cp36m-macosx_10_14_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.6m macOS 10.14+ x86-64

File details

Details for the file edgedb-0.17.1.tar.gz.

File metadata

  • Download URL: edgedb-0.17.1.tar.gz
  • Upload date:
  • Size: 785.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for edgedb-0.17.1.tar.gz
Algorithm Hash digest
SHA256 797ec33755a926af466fb883fc3b0099cb0f36f0e7ca8bbbc27a7ebb86a35dff
MD5 d5dcecbdd536bf3b821a90224d4aa3a6
BLAKE2b-256 29f2b0cf8b75bbb845e8fc71ac573dbbb657e5394d32c5b11e1940809087cfe2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.17.1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for edgedb-0.17.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c71c890d28d578ee21dd9e2d13080ab99f183dd68db7cda088a3e0f5bc51840a
MD5 655e6cf09afca9543839d06c6343153e
BLAKE2b-256 99159e4038a6e27a8a7a93a811a0762b4eede898bca33900c42bc2423cac4303

See more details on using hashes here.

File details

Details for the file edgedb-0.17.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.17.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 bf7a62de3c887e20f3d21585bc42d551ae5248acf9d53f3b8f2307e9fb80c916
MD5 d7a8e797c7c17226228272c059488f36
BLAKE2b-256 6edf031bb798a78f45cf88240067d32f0be3a463a75e41a57f6300f765fc2954

See more details on using hashes here.

File details

Details for the file edgedb-0.17.1-cp39-cp39-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: edgedb-0.17.1-cp39-cp39-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.9, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for edgedb-0.17.1-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 4565b8a5b55a98c46bb103459e963db44eb549b8b18769cde96a64958ca4fd26
MD5 cf688d4fe3de80d8200eae2f6e7a659f
BLAKE2b-256 44e9becc3d20964f0687b72917c54741e43be613a6cb9172b48e0ead8b565e38

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.17.1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for edgedb-0.17.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0013f3fcda9acd6c867c5249df7b15294bfc03d07f0d7d095d2f3199023b0e46
MD5 b136830ca833eddacfb97c79ffbc25a5
BLAKE2b-256 b09759c66c3bc6443c5e5d03a9d93f3b59353146c122321cdfdc6f98386d2106

See more details on using hashes here.

File details

Details for the file edgedb-0.17.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.17.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 13ab7748dac9f1ae4508f22b58a674f3f0678817f1a25c3da7556c79fc289a03
MD5 fda69e953d4ec4b353aa67f13775fe80
BLAKE2b-256 71cd9854b289c27ff70acd9fe695216aa6d54a6917664f2934768d828380805c

See more details on using hashes here.

File details

Details for the file edgedb-0.17.1-cp38-cp38-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: edgedb-0.17.1-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.8, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for edgedb-0.17.1-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 780f914ab0c960959086d573d33361845670f60fa295a64b972839e306fcd2ad
MD5 f724adf0c52cf26c61e699eeb581884f
BLAKE2b-256 3b495cb5bcfdde4be689ac6eb48d91ca527ca1da9f18831336e454de7ca5642d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.17.1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for edgedb-0.17.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 b3ab4767dd68166de1a2f350c1c643f562ec8eb65731926b349789645384d01c
MD5 6bdd7a51b7aa21a1869c1de88f1c0f9f
BLAKE2b-256 e0de9712400a3e6d2861b94c254798a2c86b3f3d0fe0beb997a86cf1ad6103fa

See more details on using hashes here.

File details

Details for the file edgedb-0.17.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.17.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c432f863523f4672301bb7a356af05790a3cffd7d31661e0c3cb74fa474cd929
MD5 2f2ae85cf85e574023b70b81220cb59a
BLAKE2b-256 b656c692a7626a8897f3b53736fefae71e396efe01631ce2e4483e6053285246

See more details on using hashes here.

File details

Details for the file edgedb-0.17.1-cp37-cp37m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: edgedb-0.17.1-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.7m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for edgedb-0.17.1-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 dba88324e14bf97335291204d3962340d21aa6dc3388f8f46d8a50072a13dc2d
MD5 2012cf6746c158821541b4605e1dc1b3
BLAKE2b-256 58fc27e678ef33d1bbb7aa611906117cf657a635a54119c2d02e19c1c0e9283d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.17.1-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for edgedb-0.17.1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 0baf207220cb090ee51f9b72bdd1bf0b2682a5d793f11f1d553787103607b557
MD5 ba03cf7eaa5178ae0a69d7b5d8bc5a6b
BLAKE2b-256 e29bde1cf4a11a03aed0428ef35b7d1b780327b7f08661ff001ce1889ccabc4d

See more details on using hashes here.

File details

Details for the file edgedb-0.17.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.17.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d4803592dc89b82127df7f52197aefc175352e119e36f342409a279f786c1a9a
MD5 e9492bd09a155ba123f14bca22f876a6
BLAKE2b-256 075f09990d5c5de3db6ea4a432854af9de17979fd6f87bbdf9a43bcb3df6bd65

See more details on using hashes here.

File details

Details for the file edgedb-0.17.1-cp36-cp36m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: edgedb-0.17.1-cp36-cp36m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.6m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for edgedb-0.17.1-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 b659e03b57f3035ed92f2599c31a79b7e5298e5bde6e0dd5cf15bc0163df58ac
MD5 221b1b64c7470533ad779e57edc2f10c
BLAKE2b-256 520f4559dc9342470266cd2e23cdc1230c238eb7f72f335994f7f0d94f2dbf93

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