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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.12 Windows x86-64

edgedb-2.2.0a1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.0 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

edgedb-2.2.0a1-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.2.0a1-cp312-cp312-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

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

Uploaded CPython 3.12 macOS 10.9+ x86-64

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

Uploaded CPython 3.11 Windows x86-64

edgedb-2.2.0a1-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.2.0a1-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.2.0a1-cp311-cp311-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

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

Uploaded CPython 3.11 macOS 10.9+ x86-64

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

Uploaded CPython 3.10 Windows x86-64

edgedb-2.2.0a1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

edgedb-2.2.0a1-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.2.0a1-cp310-cp310-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

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

Uploaded CPython 3.10 macOS 10.9+ x86-64

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

Uploaded CPython 3.9 Windows x86-64

edgedb-2.2.0a1-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.2.0a1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.4 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

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

Uploaded CPython 3.9 macOS 11.0+ ARM64

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

Uploaded CPython 3.9 macOS 10.9+ x86-64

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

Uploaded CPython 3.8 Windows x86-64

edgedb-2.2.0a1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

edgedb-2.2.0a1-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.2.0a1-cp38-cp38-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

edgedb-2.2.0a1-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.2.0a1.tar.gz.

File metadata

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

File hashes

Hashes for edgedb-2.2.0a1.tar.gz
Algorithm Hash digest
SHA256 ef0dd6eea40c61d157031121c0accd8a1440fe141eb672971d463ab6ba586dba
MD5 2b761371d8b4a3aeaa6378129eb1570c
BLAKE2b-256 e0002c5eadb4f0acd4e55eb4cc75337f00912528d222334830efdf61a6c14b12

See more details on using hashes here.

File details

Details for the file edgedb-2.2.0a1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for edgedb-2.2.0a1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d0f06309a8bdaf0d08dc59cad6ebd8cd67722cb867efa02e4c48b3d951131e90
MD5 2f645d3ca5f7d9a3d7b0a710ba3b05c0
BLAKE2b-256 a5033cb578f6e5c0345e8d67c779d0e204d99cc4ce58568439e585a6681a2b55

See more details on using hashes here.

File details

Details for the file edgedb-2.2.0a1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-2.2.0a1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 250478d54633af8dc424d28f74d07394880edeb08844b31bda5753982e27efa4
MD5 55bea12f701e3e59211d710d165c0880
BLAKE2b-256 6bc6c8ffb224df5c518f2a8c9a70dd8ba08a6b1d74599b180afa30510f5ca5ac

See more details on using hashes here.

File details

Details for the file edgedb-2.2.0a1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for edgedb-2.2.0a1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0d2409a21d46d8a5365d005c69ccf15bae43b8f4d1a9dbfdbfe6b2cce273d8ff
MD5 9a7625c41b16ad3b6d6c5aae6d034d65
BLAKE2b-256 c4e5257c963b829519257584a6abdfac9caed1aad81b0d2c9da672f8eb639cfe

See more details on using hashes here.

File details

Details for the file edgedb-2.2.0a1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edgedb-2.2.0a1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7457e067b03b9f5b6550ff192bf79f955c36db77351b885da7d632ff54908053
MD5 91e8a705a03e2ffb8ba31f90df86b3ff
BLAKE2b-256 1cece59c9ed866b66640a2efa5a300861f024299576a0b98081d59bb5960240a

See more details on using hashes here.

File details

Details for the file edgedb-2.2.0a1-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-2.2.0a1-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d9bab73db34346aebe3d88ccf8ef6a5195bed0b3fe4ce994b48671934a47cf7f
MD5 72e553b33cd5fcc696d040d3778edfb3
BLAKE2b-256 dddb80cafc0ab5553fb68f60c5b20d20daafe7078087f381ac85d99b48615986

See more details on using hashes here.

File details

Details for the file edgedb-2.2.0a1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for edgedb-2.2.0a1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2473929523728345650ad0065f35e04a45580a02132b8994bdd7aaea68c425fc
MD5 c642711ef7e65e1d00d987e41dc55069
BLAKE2b-256 06199af32df7063653d6d14c98fa316b71329923b407ca03a635d1f467df21e9

See more details on using hashes here.

File details

Details for the file edgedb-2.2.0a1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-2.2.0a1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e0141bff89ea39432ceca0ade086c7af5b34c85cdc7cc1eaf0e64229569a1d6d
MD5 6d7447fba2305ef99a9e4fcec29bef03
BLAKE2b-256 469893196df967100c3f9948620c3c80d1e64df367df69744a7c1d78fceab841

See more details on using hashes here.

File details

Details for the file edgedb-2.2.0a1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for edgedb-2.2.0a1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 759ff82590f984d7cde051bad7ead610803f429bed3bd2f05859bd100554982a
MD5 41cb1972d376025a49ee87d10cb86022
BLAKE2b-256 b5e0d9bc117b1178287d5730ffbb04f7c4e538d485dc1878792c191390d80583

See more details on using hashes here.

File details

Details for the file edgedb-2.2.0a1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edgedb-2.2.0a1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e235db849cb3440f4244d660f4e3bc4952e363c7748dc4b00bd24defb17b8e39
MD5 a2c83e71517eb32884b8b754c59a98ca
BLAKE2b-256 43f4ddfdc2b1a50e4a1de626a5409a6b9c0dfb0f9b0afd7f528227435ed9ba24

See more details on using hashes here.

File details

Details for the file edgedb-2.2.0a1-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-2.2.0a1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7f68ab37f5961389473e826dde45ae97e8b6f7eac1b70aaf0d526927c3476fb5
MD5 e04c354cadf5c87d89a755479594a117
BLAKE2b-256 83369a2a48db3f48e65a3960a61cbb78167e2bd6384d4eec1ab612a0a3515ccb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-2.2.0a1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9f8330e568af8330c359ff80b5afcf53642aae4e000a577928a9f4b454ee4152
MD5 e02d6b381d90b22667e6d4274df1cb40
BLAKE2b-256 d6da03d6ad1d457e0ca0cc5b6518a73bcb33f6e7cfc744b0d10c555799a0d0fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-2.2.0a1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f69b540166e738014c0883d277d8ef0da58c466ee3ac1cfbb72722641a025faa
MD5 ff3952c4852c063c81f3ee98556d0266
BLAKE2b-256 348a9fd464995cd8d9942996309f92e40f3f26f3c3067e9ced4861fc6fff01d6

See more details on using hashes here.

File details

Details for the file edgedb-2.2.0a1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for edgedb-2.2.0a1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 767b38fbf860a2445d47a1726488c745615d038ae897c8b093195f0ff0391594
MD5 0f6f274a7d6d406dabdef0c24b7feace
BLAKE2b-256 fb46d4a89aa88741232dc6ce48f83e5956cb71924ef7b476284b9ef78a8e68d6

See more details on using hashes here.

File details

Details for the file edgedb-2.2.0a1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edgedb-2.2.0a1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d9d15c93998c11ee1189ae4fe53f128f233864727ef4f72cd59c9f55956f6039
MD5 10ae9d4f776b55d40d84f9f3d2a83262
BLAKE2b-256 319100a24b8622f1469c7d52f0d8531958ff3493687095557718d2726b6ef08d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-2.2.0a1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5e0765452ac6a073be82e582c22b89b9529637f5a0731c175ca8e91676bbd32b
MD5 8a63478657e37fc571c9b4692265a0f1
BLAKE2b-256 fceac15bd51a7b0e9a4cd73b6ff1ab19b495cc64aa9c8b093ca5cd0c75abbcba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-2.2.0a1-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.20

File hashes

Hashes for edgedb-2.2.0a1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d6a56e89e1465d1affb793c238c4820fddc46a6ba1771eeb860ee737a92f9823
MD5 fa08fb4b97d3b56b4646a4eb67ca1a83
BLAKE2b-256 c9f3c88c404e6c96edad8198e7fd7c20786290489771df8f19d7127b8f640c26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-2.2.0a1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 964f656d03f6305aa24130e47d94c0adc7411c236ef0744f84234f753a9623d6
MD5 389fc8a1fe246290b793a7e169e75651
BLAKE2b-256 6b9e27671f4c67eac156f4d5d4d046c6f5f12e8c4d0d3825cb7802ae601658f1

See more details on using hashes here.

File details

Details for the file edgedb-2.2.0a1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for edgedb-2.2.0a1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 06858e0191b2101958e0d7b700cdada0ae2a4e15c93b68423884a20cda3efb26
MD5 57294802ceed117bab86a56cd2c4c1cf
BLAKE2b-256 360492e2c67a3602a93d704ff45d12a0d7d39b37dca9e96451c7fd7c8e824055

See more details on using hashes here.

File details

Details for the file edgedb-2.2.0a1-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edgedb-2.2.0a1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1a4647481667086074597b6dceddccc5a6fa45c9fda1255ac2b0a0c3d0dc284d
MD5 0d7334ada4a7539fdb1cce44070a42a6
BLAKE2b-256 096494a3a8a5a33e7638d323dcc425e2f96c7e4f903625c271af7b021348c78a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-2.2.0a1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1471190f36813120c4364af36a75604b94dd5ccc2c4641294568736368384971
MD5 88f1e06d8e93d3cb61e11a1cd0f533c0
BLAKE2b-256 ee7c55541d71e7bc64c4b82e43d7f8981ad5c527574ac65ea54a8d077570dc9b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-2.2.0a1-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.20

File hashes

Hashes for edgedb-2.2.0a1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0d0220c0304473eb311ffe8ed43e7235710f87b8ec508848cec7b9a5cb1edc03
MD5 e9f56dbaa689a2cafb1b48d4193a5eb7
BLAKE2b-256 bef7e287438b746b2899b6906bfce6d24cb472f0ee3c7ca497f1b82bcf72db9d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-2.2.0a1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5f620d00d2409a732da0ccaeb2bfa16dc1e0fd01ab446fb05bde4adead81fb3d
MD5 0fc9304d07a3b1bd4f0ba92f2b94df2b
BLAKE2b-256 22ab3e3a4e296bbea081b65ba4929558da4fc93533763459e715f3c5b3d9c90a

See more details on using hashes here.

File details

Details for the file edgedb-2.2.0a1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for edgedb-2.2.0a1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f64afc02510a0b5de3f555614c21ad9b06df1d3931c009709f3530f58a14a229
MD5 c07fb695ab127b0a0c149c7e9dcd40da
BLAKE2b-256 aa95ecd189072e65d710251ccb43672d2471ec50872f8afa11748783ce883fd5

See more details on using hashes here.

File details

Details for the file edgedb-2.2.0a1-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edgedb-2.2.0a1-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e39032b07394d0c1f0a53709ce4046158cc0c94d176d543c8f922179e3c50427
MD5 bbffb805cd877268f70b1c9a6e8a4031
BLAKE2b-256 9752e1146fed624cebfad9e1a8242ab655f73a4866b71318d8bcb5b5203a43b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-2.2.0a1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e68ff478de2e7c28e0d63de543c3258f116f9e46127a88417095f6dcef3491d1
MD5 644c968fe1db46ef9039261d83cdb56f
BLAKE2b-256 1bae7b924889b1c949387aa29d2712f9ae6cc0a9b4203a08d48ac7b223b2c815

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