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.6 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():
# Establish a connection to an existing database named "test"
# as an "edgedb" user.
conn = edgedb.connect('edgedb://edgedb@localhost/test')
# Create a User object type
conn.execute('''
CREATE TYPE User {
CREATE REQUIRED PROPERTY name -> str;
CREATE PROPERTY dob -> cal::local_date;
}
''')
# Insert a new User object
conn.query('''
INSERT User {
name := <str>$name,
dob := <cal::local_date>$dob
}
''', name='Bob', dob=datetime.date(1984, 3, 1))
# Select User objects.
user_set = conn.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 connection.
conn.close()
if __name__ == '__main__':
main()
Development
Instructions for installing EdgeDB and edgedb-python locally can be found at edgedb.com/docs/internals/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-0.15.0.tar.gz
.
File metadata
- Download URL: edgedb-0.15.0.tar.gz
- Upload date:
- Size: 779.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a6057fde4a6920ab11631a1f80babfc5c81232f6e24bbdf3fbf233f5644bac2 |
|
MD5 | 954ccf4e041c04d60724cea582c8c928 |
|
BLAKE2b-256 | 085575b7270c7773c24e988ff134b934c29526cfb9574a84a451093e17696f2c |
File details
Details for the file edgedb-0.15.0-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: edgedb-0.15.0-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 835aa2ff33e85d5beebe46ef221f4e17df7b6cf0dcbbbba2f3c6bc5507349462 |
|
MD5 | 6c534a53c49ad964dda5931127003e3e |
|
BLAKE2b-256 | 0b70ffbe2d70fb2640c816eecda30e97326dc0c100c8d4b99a12cbdf0ae9c28e |
File details
Details for the file edgedb-0.15.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
.
File metadata
- Download URL: edgedb-0.15.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 2.9 MB
- Tags: CPython 3.9, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05d538ee1782fe6f04b919b8399ffa0cf1e4d1ec22a43548645ab05e04fad5fa |
|
MD5 | 2d1e8a9f22407db73619dd1ea82beb05 |
|
BLAKE2b-256 | ebaf180f968106dde888c60e530f0cce451a36b9edc9a73f02f1af20c7f2eb7a |
File details
Details for the file edgedb-0.15.0-cp39-cp39-macosx_10_14_x86_64.whl
.
File metadata
- Download URL: edgedb-0.15.0-cp39-cp39-macosx_10_14_x86_64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.9, macOS 10.14+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eada7f4ad711936161e942168825c912b4cb6905e2f9747d591c60032fbbc0c8 |
|
MD5 | 119ace434a1309ba916c2de3144ef978 |
|
BLAKE2b-256 | 635ca7d06b0eee6aa91b18092330f5272a5bd3ccac628660b56c7adca5c48198 |
File details
Details for the file edgedb-0.15.0-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: edgedb-0.15.0-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0197354908a537b8a11587d30bcc71d4f030a680261a6f7d115c1db48e6f7a6a |
|
MD5 | 543a0a61d7832d4058effb84d5f5577a |
|
BLAKE2b-256 | 4cbc9e1e743422c435ba88ee00eef8be06cf284d884f28cd47d44e6da931924d |
File details
Details for the file edgedb-0.15.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
.
File metadata
- Download URL: edgedb-0.15.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 3.0 MB
- Tags: CPython 3.8, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fb62c4cd1c082640bd547d46d6d63d91769fad418a5dba9dbb553dfd3551733 |
|
MD5 | 97fcf31f10f78cfb3c015a88188c755e |
|
BLAKE2b-256 | 8773ff2ab9ded8354b79d89982adc6ad55ddbac282e5185c2579919460c02297 |
File details
Details for the file edgedb-0.15.0-cp38-cp38-macosx_10_14_x86_64.whl
.
File metadata
- Download URL: edgedb-0.15.0-cp38-cp38-macosx_10_14_x86_64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.8, macOS 10.14+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e0290ac3769a7c3513c45f7fe8900ec4f5919338532f82317c3beff4b39dc7f |
|
MD5 | d95647156354b3df9458cded7b8b28e4 |
|
BLAKE2b-256 | 41a542e2dea7b96b82079468159f7af0441303d8932d3c230443259cee456d6e |
File details
Details for the file edgedb-0.15.0-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: edgedb-0.15.0-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d17313361f0bf711ca841646b97f4e621f78f6a89ad52c61402e3e4d15f765b |
|
MD5 | 4f4886c7324cf9d7ddb5bb3bf36e7849 |
|
BLAKE2b-256 | c4195a6d718ad9cf77a8748cedfae2edfeb7d262d5162ed485dc14bb8005607f |
File details
Details for the file edgedb-0.15.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
.
File metadata
- Download URL: edgedb-0.15.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 2.9 MB
- Tags: CPython 3.7m, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 020b35377a15f6bc29768b5adc0e13593de14c124a165eedcced13fd1e04fb41 |
|
MD5 | 1ba05ebeb89c40b0aea6c3368b4d8784 |
|
BLAKE2b-256 | be12af69fe797837b38b329191e687a2750e3f858a1c7159a17d11b4b0a86824 |
File details
Details for the file edgedb-0.15.0-cp37-cp37m-macosx_10_14_x86_64.whl
.
File metadata
- Download URL: edgedb-0.15.0-cp37-cp37m-macosx_10_14_x86_64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.7m, macOS 10.14+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66ad532305be678470a002676c5c3054bef7375239aeeecc3865889a571fe7a0 |
|
MD5 | f31adec9f7da1e620f1020eb3f189279 |
|
BLAKE2b-256 | 2984587b5daac58e82c81bba49ddcd43ba6f50027506469c16b8ee7db6cbae02 |
File details
Details for the file edgedb-0.15.0-cp36-cp36m-win_amd64.whl
.
File metadata
- Download URL: edgedb-0.15.0-cp36-cp36m-win_amd64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.6m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e48b15d75cc47832d17475ab9f0743b4135433b0921c60e5f071793388a5a9a4 |
|
MD5 | 492d2955b26a62402b0dadea49f2208a |
|
BLAKE2b-256 | e11cd5ba956da6c110424785182e198c9b4e9b852633c9301f8a6a686edb86db |
File details
Details for the file edgedb-0.15.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
.
File metadata
- Download URL: edgedb-0.15.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 2.9 MB
- Tags: CPython 3.6m, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac27a877442fa2fb172a18a17369e222151847971b520310d212a259d298a85b |
|
MD5 | 76f030b59e17ccc55a485c43cabed7a7 |
|
BLAKE2b-256 | c35cfa5d1dcd87993888cdba0bfc9b0847f4c50c41e8971cd5bd84522c074624 |
File details
Details for the file edgedb-0.15.0-cp36-cp36m-macosx_10_14_x86_64.whl
.
File metadata
- Download URL: edgedb-0.15.0-cp36-cp36m-macosx_10_14_x86_64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.6m, macOS 10.14+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6081cbe5edf8e4f3bf2ee22682eacfbc4f55ccde84691d50647e6c31f33f27e2 |
|
MD5 | 3bc15ed5e295c8e88742e8c37d8e23d6 |
|
BLAKE2b-256 | a2e88e8bc4c8070616fb41eef950f507e3bb121601b38a06b17e38f0b90b3962 |