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-1.8.0.tar.gz
.
File metadata
- Download URL: edgedb-1.8.0.tar.gz
- Upload date:
- Size: 1.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93389d7adac5e03ef70c230ec3e8626a9fd697debd48b3bf3b9961efbe236865 |
|
MD5 | 74c720b2acff85ac373f304c35a31889 |
|
BLAKE2b-256 | 52f03a2b134cfccf1ad7e706cd13d9ad2136ba3fe9ca4dd9ff27dd2c998e2781 |
File details
Details for the file edgedb-1.8.0-cp311-cp311-win_amd64.whl
.
File metadata
- Download URL: edgedb-1.8.0-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/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b4301aee2f378f2b9b4de9414a2ab5a278d44b8680b757243522ba6fe88adea |
|
MD5 | 84fc76f0bb7569e126957b26edeea617 |
|
BLAKE2b-256 | 4a833a5a30c97fa92811af0a0e44c2c5b82bfef9cc0700278a2bf163bdc694b6 |
File details
Details for the file edgedb-1.8.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: edgedb-1.8.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 4.5 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c184befcdb40010c9cc64ed6f2f8cf5b0eab3dc07516e359e5bc8098da27644 |
|
MD5 | bb36b7be3a269e14442e275959af2e11 |
|
BLAKE2b-256 | 08e312e84f77856802607148774b910530aa7fedbc13a96d5f55e315027c6133 |
File details
Details for the file edgedb-1.8.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: edgedb-1.8.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 4.5 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 232c1bbdef219520a348e72f9ce09ef4de70ae88b80409b5d3ccb5a944f045f9 |
|
MD5 | 5eac9c35ad32eee09654d3ac3a072120 |
|
BLAKE2b-256 | 87e46d36a7b6fd8af8c78bace9eb3d223ea6be254b108af3cca2820722e192f3 |
File details
Details for the file edgedb-1.8.0-cp311-cp311-macosx_11_0_arm64.whl
.
File metadata
- Download URL: edgedb-1.8.0-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f27d58ce4bd1649ab7b602779cf77f80fbb761ed306292fb6d836309fd2ad722 |
|
MD5 | 374e94d3565ea308f7dcb3299c9aa930 |
|
BLAKE2b-256 | 24ff38c5292c39229e97cc758ed04bae8857022c51a3649c1c727e489a046ea8 |
File details
Details for the file edgedb-1.8.0-cp311-cp311-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: edgedb-1.8.0-cp311-cp311-macosx_10_9_x86_64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.11, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ad6a72b6b1a0ebe89bbd526e229c29934d38b4a3dc7fe76a819167d73801280 |
|
MD5 | 06e42181ab52bb846c1636762293f328 |
|
BLAKE2b-256 | 7b4a5a3fa79e8285181dbb8abdb01bafad93fbe0db158bc9926f005343d52851 |
File details
Details for the file edgedb-1.8.0-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: edgedb-1.8.0-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/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51298d7e4460954be4413e1f3cd4bd7f16bbb9e928427a804175c336e83bb8bb |
|
MD5 | b1734cc7030ac4c115e94bdeb3bc8ecd |
|
BLAKE2b-256 | 8154a35dc569674c13b346212c454f8e2ee2901bb85c96ae64b52ffa4e593ddd |
File details
Details for the file edgedb-1.8.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: edgedb-1.8.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 4.3 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6edb82f0036cbdfca38c12c56002b19deecd832b55a3f9f6eac362092046e88 |
|
MD5 | 94cd8861a818c51ac44d8d759084bb78 |
|
BLAKE2b-256 | bf3c1e34494857210cd53ca6050de8d1a61843c3aa8a0b04e100d82ed15ab7ff |
File details
Details for the file edgedb-1.8.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: edgedb-1.8.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 4.3 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eddfff59e6e0b340a8861510005f7bd94780ea81ee1e0aa2f130b1dc4bf72f96 |
|
MD5 | a14e60ec439e472848fd36021a1a3228 |
|
BLAKE2b-256 | e238126b3927f1a90b2627114cf1f7c812fe66ccd2d449d0f39d58861ef124bf |
File details
Details for the file edgedb-1.8.0-cp310-cp310-macosx_11_0_arm64.whl
.
File metadata
- Download URL: edgedb-1.8.0-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9490b9878908cc15184febf5706e816fe9f57315b57ec9f3f55da9c2e9bd8b45 |
|
MD5 | 8722aa3b499aa71fbac778fa36ae0108 |
|
BLAKE2b-256 | 7482eb7301348cb8052718a5568982864fafd506060e0e8732e467f03dbd07ca |
File details
Details for the file edgedb-1.8.0-cp310-cp310-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: edgedb-1.8.0-cp310-cp310-macosx_10_9_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.10, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62d04ca97d56be1577e45b0bbc1161e845fef38406ebfe571c5b68706c904468 |
|
MD5 | 9735531f358820ddf18d93d167281e76 |
|
BLAKE2b-256 | 099f0637499d778b165aa86b662e7b141456c4c8fab1564bef7f5d51d84f2c02 |
File details
Details for the file edgedb-1.8.0-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: edgedb-1.8.0-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/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8b3cd29b540777f8d9f6f2f27a9065d018a2f09dd87dd333e4a35faf3d3ae5d |
|
MD5 | 43d0342e037f44ba3d85ef0783898d36 |
|
BLAKE2b-256 | 1ae445ab99720122529202c025f2a913f883458cf79881245ae5fc4ecfa744ea |
File details
Details for the file edgedb-1.8.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: edgedb-1.8.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 4.4 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb0ae270ea4549b193eb11e3445687a7697d6afe951e2c56edf2c6c8e495374f |
|
MD5 | 5de6ae0cc29ed2cbca2d892589cfe348 |
|
BLAKE2b-256 | 1b3d77981ced54386c9fc7d0e351c204b2a8dbe6a9943f1405c60a0e82dc2208 |
File details
Details for the file edgedb-1.8.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: edgedb-1.8.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 4.3 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 072bec77522dd69e827d33b41c3af9225a7aa067eb13345cc6087ff57dd01297 |
|
MD5 | 02ecf8492e8a37a8ea232d9b34b1561f |
|
BLAKE2b-256 | f44947b74a989424b758b2af0b9cb3840bbfe03a5b70a3e16d9bb324a1745ea2 |
File details
Details for the file edgedb-1.8.0-cp39-cp39-macosx_11_0_arm64.whl
.
File metadata
- Download URL: edgedb-1.8.0-cp39-cp39-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.9, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17e37f89dee0f10babc496f5b622a08dac90af8efb5a1a75b651079355033f15 |
|
MD5 | cf9762d3bc7bb8e321bbc20754b1ae68 |
|
BLAKE2b-256 | 34cb20f2e14b287eec676b738487e64d69fd52138deeecc9e916bf3f59fe4470 |
File details
Details for the file edgedb-1.8.0-cp39-cp39-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: edgedb-1.8.0-cp39-cp39-macosx_10_9_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.9, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a585faa94ff0f2c9e2195506c9a4c5136acfb951189315a3bff1ec5cfe23ca3b |
|
MD5 | aa39bb602865bdfa08eeb77fb7775aa0 |
|
BLAKE2b-256 | 5dd3e128a647ecee1909ee9620177124d70e137444c45d6fa105ab4abe388c42 |
File details
Details for the file edgedb-1.8.0-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: edgedb-1.8.0-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/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 730225c96e81c2fb93ed6b6a97fb3d56802e93fd9afe07201f61acb1d5a800ee |
|
MD5 | a0ffabccbe8c200ef2e0069613f9d7cf |
|
BLAKE2b-256 | 28bf676730aead13b511b0029ab108757162acab40e747f09d0e4aea4a8b1803 |
File details
Details for the file edgedb-1.8.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: edgedb-1.8.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 4.7 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9c3eb43d368371c884b220860c70076067878351e6084c040a971fc356e8ad2 |
|
MD5 | d27512b9af0bb11d609b5967a4f20a0b |
|
BLAKE2b-256 | 1c35b78cc35013043cd933e9a6718549d08090701c08ca40a0321e85891ec4c0 |
File details
Details for the file edgedb-1.8.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: edgedb-1.8.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 4.7 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf71b6b6778b4a3488160064624c95679c57611fae125dded576a91153380b95 |
|
MD5 | 90a0a4720448f581e9d93ad106f65bde |
|
BLAKE2b-256 | 66dfe19c3d5cea5ab9409096048c12995cf73221ccaed5d66f77b73cd6118a0a |
File details
Details for the file edgedb-1.8.0-cp38-cp38-macosx_11_0_arm64.whl
.
File metadata
- Download URL: edgedb-1.8.0-cp38-cp38-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.8, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d88c127480379af94116b9e8008c2fe37a5796433933091d4fa45fe16894868b |
|
MD5 | bb87cee198e51b64369e32df79f28347 |
|
BLAKE2b-256 | 99ee8623683ebe60526becb8cf139eab866efcbe61ccdf6f16aefedf2b4b9e0c |
File details
Details for the file edgedb-1.8.0-cp38-cp38-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: edgedb-1.8.0-cp38-cp38-macosx_10_9_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.8, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea98b7acd12b41d2531b886e3a5e198bcafaea546fedecde7d5821b9107fa423 |
|
MD5 | 6bff4339d22eb086ad783c39a5e6394f |
|
BLAKE2b-256 | f2ddc98cdaacf7a0723b71f4d7f8d29dcce29646dde4c285b41f131655c58b97 |