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.8 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-2.0.1.tar.gz (1.0 MB view details)

Uploaded Source

Built Distributions

edgedb-2.0.1-cp312-cp312-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.12 Windows x86-64

edgedb-2.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.9 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

edgedb-2.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.9 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ARM64

edgedb-2.0.1-cp312-cp312-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

edgedb-2.0.1-cp312-cp312-macosx_10_9_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.12 macOS 10.9+ x86-64

edgedb-2.0.1-cp311-cp311-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.11 Windows x86-64

edgedb-2.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.5 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

edgedb-2.0.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.5 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

edgedb-2.0.1-cp311-cp311-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

edgedb-2.0.1-cp311-cp311-macosx_10_9_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

edgedb-2.0.1-cp310-cp310-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.10 Windows x86-64

edgedb-2.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

edgedb-2.0.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.3 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

edgedb-2.0.1-cp310-cp310-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

edgedb-2.0.1-cp310-cp310-macosx_10_9_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

edgedb-2.0.1-cp39-cp39-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.9 Windows x86-64

edgedb-2.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

edgedb-2.0.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.3 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

edgedb-2.0.1-cp39-cp39-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

edgedb-2.0.1-cp39-cp39-macosx_10_9_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

edgedb-2.0.1-cp38-cp38-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.8 Windows x86-64

edgedb-2.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.7 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

edgedb-2.0.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.7 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

edgedb-2.0.1-cp38-cp38-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

edgedb-2.0.1-cp38-cp38-macosx_10_9_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: edgedb-2.0.1.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for edgedb-2.0.1.tar.gz
Algorithm Hash digest
SHA256 4884054aea8836577a3c8608ba3ffac735672d279fc734c856de795600c3b1f0
MD5 72f9dfc1876b39ed66987c6a0ca80455
BLAKE2b-256 9d7849c3fe2537dff13fe297750e05dfe0ce3b747dbdea2dcfa8fa637a4ee8ea

See more details on using hashes here.

File details

Details for the file edgedb-2.0.1-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: edgedb-2.0.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for edgedb-2.0.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 205bec08afd7f2c5d0afbee7523f18c84ecc11187e495d56b5d37ab1a0dc2f28
MD5 4b67e41aa4bee2c1a1fb6fc629d44e96
BLAKE2b-256 9b8321a3fec3629b645ca0e4600e6405ac6b8e171bad613baa852da00d0e077c

See more details on using hashes here.

File details

Details for the file edgedb-2.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-2.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 43a3f83c5735100a03727e072b32daf5615dff989e757cf7e37d395a556a056f
MD5 6e12e69f79a04e1b380d305a9c53ffb4
BLAKE2b-256 567bccfb52e5a55241e71072f0179983e0310d9cbb47ee2cb4a1e86df0d3cc8c

See more details on using hashes here.

File details

Details for the file edgedb-2.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for edgedb-2.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b6e6f63575f9463c706551729798346d9d063dc8f72661592d8f60b9504e315f
MD5 2cedf87cf44db6737ca085936e94971f
BLAKE2b-256 1f879b23985bb854034137341a54505836db7ab57aed73c571e42a596db392db

See more details on using hashes here.

File details

Details for the file edgedb-2.0.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edgedb-2.0.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c00d7e27626d3671929b4bd1ff8ac4997d2582a0ad3cac83b84d69d9ae35756d
MD5 efc08649fb2f6d0a60aafd7fcb9bb141
BLAKE2b-256 4c183a1371956cbb4acc99960d36b270126b10c22bf1d780899df177c4a5763f

See more details on using hashes here.

File details

Details for the file edgedb-2.0.1-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-2.0.1-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 793ecbc0669ec22042159fe1349acf7e31dea6416ccb47ac8f1a7508bbba9234
MD5 836ea0797b706b0217c86f5e824cc2cd
BLAKE2b-256 6b361783b44314e902aa690a76693027fee6d87face6e22ef31962e62ed78d35

See more details on using hashes here.

File details

Details for the file edgedb-2.0.1-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: edgedb-2.0.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for edgedb-2.0.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b9352f307258c9a64771a87ae7d1419bb84d1131cc3c093e0a30d05f76609715
MD5 c507ae14a39488458064322b2eca6fce
BLAKE2b-256 d286c9ee9073382adbf7f67c70100fc38b64cf7899585b0e5f00a7581ea7dea9

See more details on using hashes here.

File details

Details for the file edgedb-2.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-2.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d23df73adef33b9225ef7d4509c922db2545102299b936f483f1f075bfba5ab0
MD5 3810ea5042c76e906443714439b3d425
BLAKE2b-256 da1208da7ecf51706b0d557fe325ee842a363a9ba09e369599d805fff74d877a

See more details on using hashes here.

File details

Details for the file edgedb-2.0.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for edgedb-2.0.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2e713a98b3b5a282699176e9eff70d738dba98b636d9527f7fd56436b94f7fb0
MD5 7af1d5e8c53dee9266f370101e4a9543
BLAKE2b-256 57a22095355f4cb64a8218f5204f5d6b27a0c783ef593e30e400b25591c53777

See more details on using hashes here.

File details

Details for the file edgedb-2.0.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edgedb-2.0.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e763483bf9a4fefdbf55f694ae46a6e3f5147fd869003a5a43b4259fe008a2e4
MD5 82e2da1809cd93a87808cbe427f67977
BLAKE2b-256 6fd68746e1e85569fe1ff7108bd0175b4f4ccb538301dd74452e6c64601a8d44

See more details on using hashes here.

File details

Details for the file edgedb-2.0.1-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-2.0.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 eda717893f74c4b678a9c545aee3b49a9cab7505f2254f6c8d93b2631724f931
MD5 e65f04f640c2139ed602f3fea95e833d
BLAKE2b-256 bc56c140afd08fb96e9b832ddac626893e70b677d4f052fc935b3822866a9ed0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-2.0.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for edgedb-2.0.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3d3b4bc730f08512c9bd7504bc95dd3f1443e098c9d165fe9f50fc9d013a4009
MD5 c41f2df42eade2e7feff5ddbdb4d92a5
BLAKE2b-256 4f89b9f732be51e8d1b88380fe73059beeea27fc5c778fb434f6bafb1643c8ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-2.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5b60f5f5bea04c336d2b6a1209b56c263b2cc487d6dc78dd32e51ed39af59ac0
MD5 cbd3d78ea329780a9a310ec676afb8b8
BLAKE2b-256 b2bec3e8e32ac67f91db76fe07dcc82a5c545817124966c6c756ef21f36e56eb

See more details on using hashes here.

File details

Details for the file edgedb-2.0.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for edgedb-2.0.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 41323668667c21b6dd0a0a55707acb5808dbd0b00c9bce93f8fd21b070e030ea
MD5 7bcffe53a03dd9dfe2a5124c0799ed76
BLAKE2b-256 1fda369cf7ad2092a8330032c424dff3e99735195b794c18cf7ec3b32d6eaf23

See more details on using hashes here.

File details

Details for the file edgedb-2.0.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edgedb-2.0.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ff6e2248e5c600968dec5bc658e07962f89e8e4c96fae54c2f28fefc62be27c8
MD5 0938fac1c1f5c86c05a2b47c40adb2b6
BLAKE2b-256 b2507af6c30d639806cfe8a53780afaa159ec20b370f442f5efce01376069813

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-2.0.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1be6127bb8b4978ac080041763a636e5070a18c9d93b50ad74ae398a12754c14
MD5 283f5bd5f6f50c80f311031d7d266c0f
BLAKE2b-256 9e100a4360c06d6ac66bf1309302e392bbff342221a47590c65a6a664fc76345

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-2.0.1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for edgedb-2.0.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d69c11039bafbee4bc2afa012ffe5788efc97fd82017ef5e7b380a1109e74231
MD5 dfc42a9e90099bd2b282b131b2a1d862
BLAKE2b-256 a14f24a85a1d56868e5f8c41fc1329cbfe1c51bf42c3cec008c528d76a56ac21

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-2.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 656c2c0dc23e1dc9f7beba949e910bcd4f21a383ae16166a6b827eef932fa642
MD5 3a3df2a92335c83338981af3b10e5661
BLAKE2b-256 d963b05e57aa856a77262fcd6b9895e2afaa6ae863017a852f2626f6f571afa9

See more details on using hashes here.

File details

Details for the file edgedb-2.0.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for edgedb-2.0.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3c2b323956b483fb080dd46aeaedddeda887f0dff58b441889eef9f9068dec3a
MD5 c51160c37f113a0740345416bb9d3d51
BLAKE2b-256 3e4c569493dfb716f3ce95580cad08d828847d752921c26618eab9c5d1d13403

See more details on using hashes here.

File details

Details for the file edgedb-2.0.1-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edgedb-2.0.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 65b00783c239721b9ff12f829ef200f201a94650333e3f5f034654c7c4982e86
MD5 3cb61120ed570c8b8800d330c537b357
BLAKE2b-256 0b7488ac9fdc0572882934e7dd107a19d6ebb245a7946bd61de824584d08da17

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-2.0.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 c3584b5d058236c0cd710821b1bd28e27713c90202f4ce8dffd368be207431ed
MD5 074128d5f26dc7d3971da9e1d5479619
BLAKE2b-256 dd6be7e3810c94c1e031a2092e35e0658ecd7fc9256038b59f9ff21d456996dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-2.0.1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for edgedb-2.0.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 17be98fe34637c34008c06eb2ee2c68145f46ca8fce70348cc4821b1c338d3fd
MD5 52a9e28d8edeef46bc09a6ceeca82e46
BLAKE2b-256 fae8a8761feb6bc40dcb9b6423ab28595b934ddcb72dacea39c2fd178731a3b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-2.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 08decce3d94d737d71adeeb1e16cdb586d3f4769889d7c8143536fc03441deb6
MD5 4977184166e8e0e9d2505b88607b1783
BLAKE2b-256 58f10a7c80262d7973d13b0d20ec66d11ebc67cffc900df2a2e14eee05800d9f

See more details on using hashes here.

File details

Details for the file edgedb-2.0.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for edgedb-2.0.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 80688e9bcac7b2109166d6349fc5b3653ae2d307dc52dadebd96d75093cc3ec8
MD5 843c3a26c21a5512d450060231a45733
BLAKE2b-256 14fa23e584da97b257bd855bf6dfc8b53b3f646df68232a7183d74bdfadbce70

See more details on using hashes here.

File details

Details for the file edgedb-2.0.1-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edgedb-2.0.1-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8e9bddcc6230f090c126470ad83a29874be1a2af293f656320efc2d77577ba9d
MD5 6b3c17cb3d110ca109a4db864f3183af
BLAKE2b-256 7c0056663dc3409f1a394f674ab5764a2f40ce952402df90b1d7cffd3565a326

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-2.0.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 c09e1f84152a94fdfde85d4f6e4fa687ff3b01833666e493798b71bd5dc4fc69
MD5 72c4bfb3a44ca4e59f2d0ef0da0e842e
BLAKE2b-256 119b1ef47f666c1e4dae88accd537595f8f087acf1f0fe6d80237c088b534e89

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