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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.10 Windows x86-64

edgedb-0.18.2-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.2-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.2-cp39-cp39-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.9 Windows x86-64

edgedb-0.18.2-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.2-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.2-cp38-cp38-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.8 Windows x86-64

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

Uploaded CPython 3.7m Windows x86-64

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

Uploaded CPython 3.6m Windows x86-64

edgedb-0.18.2-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.2.tar.gz.

File metadata

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

File hashes

Hashes for edgedb-0.18.2.tar.gz
Algorithm Hash digest
SHA256 d321f6ff04d748060051dd7943641fd4a131d5b00f11ecdeca7af107f7ad63f8
MD5 5ab7d7090df610020633c1ff6801f75b
BLAKE2b-256 5fb692ab3955a738edb11808477d6211d6c0e13dc2d1ef78d8ad02ec8c9b587d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.2-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.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.18.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a1f239131373ac13e9b039b25aff0052797865dc19b56c3f2405a011bf08d3ae
MD5 18410c5ab770f3e2c0a2ee40828706d5
BLAKE2b-256 7b2efdf40dd8ba04c54b1b3c953a6348f7eba0f6583084e9f10dbb6ce6240ee6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.18.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 eb5bda4400db10235da106cf002f9e40bc98f530df1c9443c4e7051c3333de72
MD5 ab98180bf82aa2765af311bc91348aae
BLAKE2b-256 e0a5cad793afe554fd8e0fc68191987a8be7c5464fcf91b9c3ce2e0da237d268

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.2-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.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.18.2-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3a3e5fbbb19e0333a7c0cdf4381e8b074fea4aaece6029b85886636454ee3df4
MD5 8861959e9ea94f378ad9c6c6bd52eb30
BLAKE2b-256 cadfac5affbf7abfa9a4ba5324712a16981e2c54f6162a5dae34715a5ce43633

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.2-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.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.18.2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 dfefc44982994385a4011d882a4dd012dca7166b7b7ad4d0390d1f4b4201cce7
MD5 3a253ebf8940ab10c71800177d26d433
BLAKE2b-256 13df54e98ed6ee088970bc9833ec5df6ff4beda53da63976ac909c4b1f0f715a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.18.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d7a673048434d40b1184cfea1d7dace71eee19fd43b31b4fc16764fe5da568f0
MD5 3d5053730620af9e003b06a448fc33f2
BLAKE2b-256 f587912f0186db8f79896c1106a7d86d8b3d9a765321c15eaa4df8d9312add6c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.2-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.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.18.2-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ff1aa566934d8bf1392dfec0765619c98d29ec65a200c5f829db70acc5f91877
MD5 299c19dd50b45bce50b48eb36a0a674f
BLAKE2b-256 bc5d102f00e6065645ac24c29d8e10b7d67383db0e7600efb4aa3b6f95f09d66

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.2-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.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.18.2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2f8b3f9eb886a93e8a40a4408289a9d74789f173f2db2c552272db0a6a526025
MD5 c15e745f80c6ca6ecc18fcc63ed965f2
BLAKE2b-256 b76a5602881517042c7fe5af6fd745b299544cf4eb763b864534253ea531bad0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.18.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9e9726177025ca0ca1898b1d2eb3318b7654a9ef89d63e9974a55ac76a7bf8af
MD5 a7968ec8c1dd20d7b7c7928257d66f28
BLAKE2b-256 637ae0e29f1137a5e1260dcb5b206d7adf34c6924a936840525e13d5514ac447

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.2-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.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.18.2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7f5200f004979b0c62e0b8ba6fcdf906412f9858f360080ddfa176b5dfdbd36b
MD5 6dc1759d01e730c8269b1dc35d935a2d
BLAKE2b-256 40416246951ab004ffc184f0157dfc98d00ccf74ec3d9ba5f4cd83e7b5e002e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.2-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.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.18.2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 1f31e198a8ea2c90a49eca055f55069f3ee47ebd130de3ad486923eaf79de1da
MD5 cd7a202d17ea9fe94801119e539451de
BLAKE2b-256 d3b2746b19cb6c75201cb8991cb713b942d710ac8d68569472fb2aa3978afc3d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.18.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fddd5defc4d3acccaa213a66f43f3f810d73b883e93f0f5c2d8e9d2eac10163d
MD5 046370e5fb489e531bba2777e3d680f9
BLAKE2b-256 c54f12603e4330020b73051663927b28c917b81bc2c632efa2ec2340afb6b732

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.2-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.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.18.2-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1270020dfc12891a3b14beeb9cd3cde01c5e11203f5a51ea25b41a9eddaabcbe
MD5 94d7ea40f3757034bd18bba9b3629e4c
BLAKE2b-256 c2979caaeb5ed22d4cbc105795e67e482df74eb57ea4b2dc81218fa747f38d76

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.18.2-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.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edgedb-0.18.2-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 dbcf99e57fd81b390b4a8209fd7b9482abfec7f87a69792356be33f38e29f04c
MD5 19cdb27567ccd3041622bc1583cd22d4
BLAKE2b-256 92aabdc0dfbad8bdc0fcc255da2d6a505a0c8ab0b2a4b486a7995fd93fa4b0e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.18.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1d91efcc778a20864df3fb46cc7c80d6c9d1b2ee648b9abd5fdd9cb2c3fad938
MD5 f74125fe9272b5f388d371668bcb8f0b
BLAKE2b-256 c02a6f1718f0e803f22aadeba2db6e0acab68df47664baabf9f8585784f9dedb

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