EdgeDB Python driver
Project description
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
Built Distributions
File details
Details for the file edgedb-2.2.0.tar.gz
.
File metadata
- Download URL: edgedb-2.2.0.tar.gz
- Upload date:
- Size: 1.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ddbb841fe80d25ede524535dd52878cf74adae8c920e1f5dd912cddf66fe5f8 |
|
MD5 | 356385736a7a5627a53f9a63fd55d086 |
|
BLAKE2b-256 | b7bd5fa8967755ec169d07b4e52684897a612bebb3d2086d2eade79c33642630 |
File details
Details for the file edgedb-2.2.0-cp312-cp312-win_amd64.whl
.
File metadata
- Download URL: edgedb-2.2.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc013be975519b1428936a2a9391998e4fa2fd0befa865961ae8131834e543cf |
|
MD5 | db06d099d6165bdf67d2bc108d73f406 |
|
BLAKE2b-256 | c9105fd93f5dcba90bb3a91700623a0ca046067c1b88370e55c2821e68b2a631 |
File details
Details for the file edgedb-2.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: edgedb-2.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 5.8 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51642e583106873f5fc769dde4f9d85a9fb15d8df5ed1dd8a089b893da572d7e |
|
MD5 | b84800a500afd06e08e7ae3bcdefb38e |
|
BLAKE2b-256 | 8a09926c13ced80a2293f6b6fe13e1d4c668b02558ba164798f09c5894b0174b |
File details
Details for the file edgedb-2.2.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: edgedb-2.2.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 5.7 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05db28f8dcaaa349fad73bf0217a1dea498e55c7db70acc967d742dc88a63236 |
|
MD5 | 857592c70cf923f3b456545899b96302 |
|
BLAKE2b-256 | 7bc6932ae9fddd0e04c4b7dc7584c9abc4b354764ef15a4bb228731f0680a773 |
File details
Details for the file edgedb-2.2.0-cp312-cp312-macosx_11_0_arm64.whl
.
File metadata
- Download URL: edgedb-2.2.0-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 854ca65508f797474730e9b1c521b46c460a8307b279a88023436afa11e09ce2 |
|
MD5 | 563cdfbecf4720802beb7f6b0e07ad1f |
|
BLAKE2b-256 | 36621feed721a90b3e2ebef2cab1b010132e6e33a6b1fed82780cd0bdbcd8a7a |
File details
Details for the file edgedb-2.2.0-cp312-cp312-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: edgedb-2.2.0-cp312-cp312-macosx_10_9_x86_64.whl
- Upload date:
- Size: 2.1 MB
- Tags: CPython 3.12, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 235fc54f473303452e63c8f865a278ccfd1501bc1086b5f46621b9c7804f86ee |
|
MD5 | e092daf97107d2cbd28384916f8bced5 |
|
BLAKE2b-256 | 1ef640c0555c5907a196a083be51f37cf95af2ec60cfe6b6b05f872f6e2f32aa |
File details
Details for the file edgedb-2.2.0-cp311-cp311-win_amd64.whl
.
File metadata
- Download URL: edgedb-2.2.0-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 128bda5fdf5cacabbdc84fc315011e43d2001d17ba4da416e11cec73cb9cc8bd |
|
MD5 | 50ac7158d86a83fbc07ed7bd7547fda1 |
|
BLAKE2b-256 | 8f43e174aa2b0c3794c059ebe54bf7570343c6c004fb5fd0e1a9710f02c0286b |
File details
Details for the file edgedb-2.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: edgedb-2.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 5.3 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe9a7b8aa75470d1035fd300b60df9b2fbdcff0880e888849ac4778d7dee5482 |
|
MD5 | 446c2aeede1224d474557a814e1b8bc5 |
|
BLAKE2b-256 | 4e48871006e46c2ece615c665d49f61bf106ead4c885df6050843e462ababce8 |
File details
Details for the file edgedb-2.2.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: edgedb-2.2.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 5.2 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87e42dcae39694e2962c6543bc292fccae09ae57fd92d3df9717d93da84a3d07 |
|
MD5 | 79b5e0c47bc3d52babcd45836b16161f |
|
BLAKE2b-256 | f5e1557268764dd1ec4f1ba4a09a1d856a4e361ab0b48e6c7dfc0b7938e37cc4 |
File details
Details for the file edgedb-2.2.0-cp311-cp311-macosx_11_0_arm64.whl
.
File metadata
- Download URL: edgedb-2.2.0-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 915c18080edae53cba1e4473dedc1006218f7fed5aa890194eb21d1cb51101b7 |
|
MD5 | c1301cb490e373f1111f0a5f5d4e0ca1 |
|
BLAKE2b-256 | c232c6cf7022d1150b0686c550b39814c236d83af144d5791bf734c80f5a44ab |
File details
Details for the file edgedb-2.2.0-cp311-cp311-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: edgedb-2.2.0-cp311-cp311-macosx_10_9_x86_64.whl
- Upload date:
- Size: 2.1 MB
- Tags: CPython 3.11, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc29f02fbe5e3d8132f662dfec5a61ce29601fffa0ed6cbe3452ffe485e1daec |
|
MD5 | 455f9b527c8e0d020c0de422a700ebbb |
|
BLAKE2b-256 | 7b418adb0d1998ef8166356822f57e5877d69a6f2eb1dfa84a7e00b340c70888 |
File details
Details for the file edgedb-2.2.0-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: edgedb-2.2.0-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4f0f45c8063b5764f1799ea170a20889dac50858faebee10e11ba5d907c38d4 |
|
MD5 | fcc76a3281a75281011428d3e229731e |
|
BLAKE2b-256 | 24c21863afbdaff79b39d16e21f867d5b93484210bc21c006cbe0769bec3cd8c |
File details
Details for the file edgedb-2.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: edgedb-2.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 5.0 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98dca67449cad88d4f0896aff4e93ad995291d8f1e0d21c3090a91abd56855c9 |
|
MD5 | 43c9df1f91a9b5440d794252468f8cfd |
|
BLAKE2b-256 | 472e9a7947d6c5e16b98e37baa62829c59f7557790a4246766bd89ff479edd2a |
File details
Details for the file edgedb-2.2.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: edgedb-2.2.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 5.0 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44b9da7f1837de62ec9f7b16823284c88e45de1ad1db0f5f03c63f74b3a3651b |
|
MD5 | d463522f0ed9a7dd66c34fdc812cced9 |
|
BLAKE2b-256 | 5e780795130218899af9c0e790f25921a00ef17866281f9a5ceb17fd735980e6 |
File details
Details for the file edgedb-2.2.0-cp310-cp310-macosx_11_0_arm64.whl
.
File metadata
- Download URL: edgedb-2.2.0-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd012ff316daa4949e3395c120c47f8832584f7d5bc6b70cfd8f052c0d9c1220 |
|
MD5 | 91639626c7612ddb24050f0b91c31b4b |
|
BLAKE2b-256 | 50ec7cf13d5278fb012de4340a23209f0f53a3cc9063f2019876b214f39f5b5a |
File details
Details for the file edgedb-2.2.0-cp310-cp310-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: edgedb-2.2.0-cp310-cp310-macosx_10_9_x86_64.whl
- Upload date:
- Size: 2.1 MB
- Tags: CPython 3.10, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee097640b6ed3af8f1460404c1cc992354c2e5a10471835f232b7d1fcf657362 |
|
MD5 | 25d8e42851bf5685aacb32c55a7fe4c3 |
|
BLAKE2b-256 | d55ce1b15257bb9f451fe076eeb22ab5da1759953ad247191cce54f89ae1f860 |
File details
Details for the file edgedb-2.2.0-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: edgedb-2.2.0-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 2.0 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4b84a118da248abe18b365a9e26485c1447f6fb6b7ee7ae6d7fc83414ea03b5 |
|
MD5 | 558ad047c722e0f11bc35b3005dfb952 |
|
BLAKE2b-256 | 18b76d156e1530279d6c80b25600e63b32e8d0b996d99903294977e09785d097 |
File details
Details for the file edgedb-2.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: edgedb-2.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 5.1 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad36bc265f871b2dd829ebf28ae8ec5df6e597408d5703ff93a9bde97494211a |
|
MD5 | 0a36f7ad9cd43f1d0ede7196a5811551 |
|
BLAKE2b-256 | ad769ce1ef77225e6b4c85f759b09967879698dc92e1aa3dc1ad86e6d4dab093 |
File details
Details for the file edgedb-2.2.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: edgedb-2.2.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 5.0 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c178e80b3e01f7b02b4574a486720adb962fce6faa1fba891c55a18d91876fd |
|
MD5 | 0b4f8b586f6a3330654e23bc872187b6 |
|
BLAKE2b-256 | aa94022196dd4bc3add0c33c73d5b9e4bbb43eb4979e188a1e76f9d3d06459b4 |
File details
Details for the file edgedb-2.2.0-cp39-cp39-macosx_11_0_arm64.whl
.
File metadata
- Download URL: edgedb-2.2.0-cp39-cp39-macosx_11_0_arm64.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.9, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 081806525161b5a53b1ee4748dc39858c5b021cddb63384204e5bc3b50227046 |
|
MD5 | 6e6cf8dfe2365b0d9855dfc73e884633 |
|
BLAKE2b-256 | d6fe38806e4b468c19648bfeb5c137288f56ed71016ce80145c5f63d188f2ce8 |
File details
Details for the file edgedb-2.2.0-cp39-cp39-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: edgedb-2.2.0-cp39-cp39-macosx_10_9_x86_64.whl
- Upload date:
- Size: 2.1 MB
- Tags: CPython 3.9, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad2e17406c887d74d03fb7608cba744df8adce209aacfd3e67ca0fdd40dd2c66 |
|
MD5 | c536b3b46429e8072a7365470239cbf6 |
|
BLAKE2b-256 | 368427228147b711a929426121b5f3142843f4dbb5002fbb2b0274e7134c8e2b |
File details
Details for the file edgedb-2.2.0-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: edgedb-2.2.0-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 2.0 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd8e823425d5ba90d5fd70517b124985bd90d1681a3880fd45a6ff11594dea75 |
|
MD5 | 1d21d13de1779685d38cc2b3fdf7bf18 |
|
BLAKE2b-256 | e973b02d7729f52bee1a263049dde123aa899eb351a768a15d110fdb54e2d572 |
File details
Details for the file edgedb-2.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: edgedb-2.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 5.5 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5798fd7c96dbb1bfa6e9422a2ba05729399ef0ed8d2b7dc124b72d20b6c6a465 |
|
MD5 | 8a28966d55363136ebab7ea3375843b1 |
|
BLAKE2b-256 | b86e7e8a93afd53a90872f1ec839c14d6c6cd0bb6cb389f64cbbe2b001c293f4 |
File details
Details for the file edgedb-2.2.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: edgedb-2.2.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 5.4 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57a198e477253c87783f8de88f4402ea0736fd1a82c383b4209da00bd3367dc6 |
|
MD5 | 9d0e81b86c08268741acc5afc6b36900 |
|
BLAKE2b-256 | 52b75197597ac49e85f336304239af645ece7b1bbb3917abeefc29b1b69cdae6 |
File details
Details for the file edgedb-2.2.0-cp38-cp38-macosx_11_0_arm64.whl
.
File metadata
- Download URL: edgedb-2.2.0-cp38-cp38-macosx_11_0_arm64.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.8, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7a7676deb0f71c6c444bf8db78487d22342eb2cccb4b43c4afac9868da4200a |
|
MD5 | a9fd9c49b534a79802d98170e9019b3d |
|
BLAKE2b-256 | 9c0f7b4a96d13d015a57ac7909c74b4699d236ceb4fc27df40b44d21d752ee7a |
File details
Details for the file edgedb-2.2.0-cp38-cp38-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: edgedb-2.2.0-cp38-cp38-macosx_10_9_x86_64.whl
- Upload date:
- Size: 2.1 MB
- Tags: CPython 3.8, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f0ff080784451de7cc91eea450e7cb082e2408ec24ccb34dcc8c5bbb5321310 |
|
MD5 | 8d78c4d1e8a3f025325ba9f4b4e7ebda |
|
BLAKE2b-256 | a18c35a19018c77f404f628059ad91bd81917f7301c2c6a0dd70cc8fc4c01004 |