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.
Metadata
Release files for edgedb 2.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| edgedb-2.2.0.tar.gz | 1.3 MB | Details |
Built distributions (wheels)
Total release size: 84.6 MB
Release files / edgedb-2.2.0.tar.gz
| Download URL | edgedb-2.2.0.tar.gz |
|---|---|
| Size | 1.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3ddbb841fe80d25ede524535dd52878cf74adae8c920e1f5dd912cddf66fe5f8
|
|
BLAKE2b-256 checksum How to use checksums |
b7bd5fa8967755ec169d07b4e52684897a612bebb3d2086d2eade79c33642630
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / edgedb-2.2.0-cp312-cp312-win_amd64.whl
| Download URL | edgedb-2.2.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
cc013be975519b1428936a2a9391998e4fa2fd0befa865961ae8131834e543cf
|
|
BLAKE2b-256 checksum How to use checksums |
c9105fd93f5dcba90bb3a91700623a0ca046067c1b88370e55c2821e68b2a631
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / edgedb-2.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | edgedb-2.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 5.8 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
51642e583106873f5fc769dde4f9d85a9fb15d8df5ed1dd8a089b893da572d7e
|
|
BLAKE2b-256 checksum How to use checksums |
8a09926c13ced80a2293f6b6fe13e1d4c668b02558ba164798f09c5894b0174b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / edgedb-2.2.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | edgedb-2.2.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 5.7 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
05db28f8dcaaa349fad73bf0217a1dea498e55c7db70acc967d742dc88a63236
|
|
BLAKE2b-256 checksum How to use checksums |
7bc6932ae9fddd0e04c4b7dc7584c9abc4b354764ef15a4bb228731f0680a773
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / edgedb-2.2.0-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | edgedb-2.2.0-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
854ca65508f797474730e9b1c521b46c460a8307b279a88023436afa11e09ce2
|
|
BLAKE2b-256 checksum How to use checksums |
36621feed721a90b3e2ebef2cab1b010132e6e33a6b1fed82780cd0bdbcd8a7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / edgedb-2.2.0-cp312-cp312-macosx_10_9_x86_64.whl
| Download URL | edgedb-2.2.0-cp312-cp312-macosx_10_9_x86_64.whl |
|---|---|
| Size | 2.1 MB |
| Tags | CPython 3.12 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
235fc54f473303452e63c8f865a278ccfd1501bc1086b5f46621b9c7804f86ee
|
|
BLAKE2b-256 checksum How to use checksums |
1ef640c0555c5907a196a083be51f37cf95af2ec60cfe6b6b05f872f6e2f32aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / edgedb-2.2.0-cp311-cp311-win_amd64.whl
| Download URL | edgedb-2.2.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
128bda5fdf5cacabbdc84fc315011e43d2001d17ba4da416e11cec73cb9cc8bd
|
|
BLAKE2b-256 checksum How to use checksums |
8f43e174aa2b0c3794c059ebe54bf7570343c6c004fb5fd0e1a9710f02c0286b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / edgedb-2.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | edgedb-2.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 5.3 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
fe9a7b8aa75470d1035fd300b60df9b2fbdcff0880e888849ac4778d7dee5482
|
|
BLAKE2b-256 checksum How to use checksums |
4e48871006e46c2ece615c665d49f61bf106ead4c885df6050843e462ababce8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / edgedb-2.2.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | edgedb-2.2.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 5.2 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
87e42dcae39694e2962c6543bc292fccae09ae57fd92d3df9717d93da84a3d07
|
|
BLAKE2b-256 checksum How to use checksums |
f5e1557268764dd1ec4f1ba4a09a1d856a4e361ab0b48e6c7dfc0b7938e37cc4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / edgedb-2.2.0-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | edgedb-2.2.0-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
915c18080edae53cba1e4473dedc1006218f7fed5aa890194eb21d1cb51101b7
|
|
BLAKE2b-256 checksum How to use checksums |
c232c6cf7022d1150b0686c550b39814c236d83af144d5791bf734c80f5a44ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / edgedb-2.2.0-cp311-cp311-macosx_10_9_x86_64.whl
| Download URL | edgedb-2.2.0-cp311-cp311-macosx_10_9_x86_64.whl |
|---|---|
| Size | 2.1 MB |
| Tags | CPython 3.11 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
fc29f02fbe5e3d8132f662dfec5a61ce29601fffa0ed6cbe3452ffe485e1daec
|
|
BLAKE2b-256 checksum How to use checksums |
7b418adb0d1998ef8166356822f57e5877d69a6f2eb1dfa84a7e00b340c70888
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / edgedb-2.2.0-cp310-cp310-win_amd64.whl
| Download URL | edgedb-2.2.0-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
b4f0f45c8063b5764f1799ea170a20889dac50858faebee10e11ba5d907c38d4
|
|
BLAKE2b-256 checksum How to use checksums |
24c21863afbdaff79b39d16e21f867d5b93484210bc21c006cbe0769bec3cd8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / edgedb-2.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | edgedb-2.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 5.0 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
98dca67449cad88d4f0896aff4e93ad995291d8f1e0d21c3090a91abd56855c9
|
|
BLAKE2b-256 checksum How to use checksums |
472e9a7947d6c5e16b98e37baa62829c59f7557790a4246766bd89ff479edd2a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / edgedb-2.2.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | edgedb-2.2.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 5.0 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
44b9da7f1837de62ec9f7b16823284c88e45de1ad1db0f5f03c63f74b3a3651b
|
|
BLAKE2b-256 checksum How to use checksums |
5e780795130218899af9c0e790f25921a00ef17866281f9a5ceb17fd735980e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / edgedb-2.2.0-cp310-cp310-macosx_11_0_arm64.whl
| Download URL | edgedb-2.2.0-cp310-cp310-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.10 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
cd012ff316daa4949e3395c120c47f8832584f7d5bc6b70cfd8f052c0d9c1220
|
|
BLAKE2b-256 checksum How to use checksums |
50ec7cf13d5278fb012de4340a23209f0f53a3cc9063f2019876b214f39f5b5a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / edgedb-2.2.0-cp310-cp310-macosx_10_9_x86_64.whl
| Download URL | edgedb-2.2.0-cp310-cp310-macosx_10_9_x86_64.whl |
|---|---|
| Size | 2.1 MB |
| Tags | CPython 3.10 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
ee097640b6ed3af8f1460404c1cc992354c2e5a10471835f232b7d1fcf657362
|
|
BLAKE2b-256 checksum How to use checksums |
d55ce1b15257bb9f451fe076eeb22ab5da1759953ad247191cce54f89ae1f860
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / edgedb-2.2.0-cp39-cp39-win_amd64.whl
| Download URL | edgedb-2.2.0-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
a4b84a118da248abe18b365a9e26485c1447f6fb6b7ee7ae6d7fc83414ea03b5
|
|
BLAKE2b-256 checksum How to use checksums |
18b76d156e1530279d6c80b25600e63b32e8d0b996d99903294977e09785d097
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / edgedb-2.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | edgedb-2.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 5.1 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
ad36bc265f871b2dd829ebf28ae8ec5df6e597408d5703ff93a9bde97494211a
|
|
BLAKE2b-256 checksum How to use checksums |
ad769ce1ef77225e6b4c85f759b09967879698dc92e1aa3dc1ad86e6d4dab093
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / edgedb-2.2.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | edgedb-2.2.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 5.0 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
5c178e80b3e01f7b02b4574a486720adb962fce6faa1fba891c55a18d91876fd
|
|
BLAKE2b-256 checksum How to use checksums |
aa94022196dd4bc3add0c33c73d5b9e4bbb43eb4979e188a1e76f9d3d06459b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / edgedb-2.2.0-cp39-cp39-macosx_11_0_arm64.whl
| Download URL | edgedb-2.2.0-cp39-cp39-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.9 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
081806525161b5a53b1ee4748dc39858c5b021cddb63384204e5bc3b50227046
|
|
BLAKE2b-256 checksum How to use checksums |
d6fe38806e4b468c19648bfeb5c137288f56ed71016ce80145c5f63d188f2ce8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / edgedb-2.2.0-cp39-cp39-macosx_10_9_x86_64.whl
| Download URL | edgedb-2.2.0-cp39-cp39-macosx_10_9_x86_64.whl |
|---|---|
| Size | 2.1 MB |
| Tags | CPython 3.9 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
ad2e17406c887d74d03fb7608cba744df8adce209aacfd3e67ca0fdd40dd2c66
|
|
BLAKE2b-256 checksum How to use checksums |
368427228147b711a929426121b5f3142843f4dbb5002fbb2b0274e7134c8e2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / edgedb-2.2.0-cp38-cp38-win_amd64.whl
| Download URL | edgedb-2.2.0-cp38-cp38-win_amd64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.8 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
cd8e823425d5ba90d5fd70517b124985bd90d1681a3880fd45a6ff11594dea75
|
|
BLAKE2b-256 checksum How to use checksums |
e973b02d7729f52bee1a263049dde123aa899eb351a768a15d110fdb54e2d572
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / edgedb-2.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | edgedb-2.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 5.5 MB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
5798fd7c96dbb1bfa6e9422a2ba05729399ef0ed8d2b7dc124b72d20b6c6a465
|
|
BLAKE2b-256 checksum How to use checksums |
b86e7e8a93afd53a90872f1ec839c14d6c6cd0bb6cb389f64cbbe2b001c293f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / edgedb-2.2.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | edgedb-2.2.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 5.4 MB |
| Tags | CPython 3.8 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
57a198e477253c87783f8de88f4402ea0736fd1a82c383b4209da00bd3367dc6
|
|
BLAKE2b-256 checksum How to use checksums |
52b75197597ac49e85f336304239af645ece7b1bbb3917abeefc29b1b69cdae6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / edgedb-2.2.0-cp38-cp38-macosx_11_0_arm64.whl
| Download URL | edgedb-2.2.0-cp38-cp38-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.8 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
f7a7676deb0f71c6c444bf8db78487d22342eb2cccb4b43c4afac9868da4200a
|
|
BLAKE2b-256 checksum How to use checksums |
9c0f7b4a96d13d015a57ac7909c74b4699d236ceb4fc27df40b44d21d752ee7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / edgedb-2.2.0-cp38-cp38-macosx_10_9_x86_64.whl
| Download URL | edgedb-2.2.0-cp38-cp38-macosx_10_9_x86_64.whl |
|---|---|
| Size | 2.1 MB |
| Tags | CPython 3.8 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
3f0ff080784451de7cc91eea450e7cb082e2408ec24ccb34dcc8c5bbb5321310
|
|
BLAKE2b-256 checksum How to use checksums |
a18c35a19018c77f404f628059ad91bd81917f7301c2c6a0dd70cc8fc4c01004
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|