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.7 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-1.4.0.tar.gz (926.8 kB view details)

Uploaded Source

Built Distributions

edgedb-1.4.0-cp311-cp311-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.11 Windows x86-64

edgedb-1.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.1 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

edgedb-1.4.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.0 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

edgedb-1.4.0-cp311-cp311-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

edgedb-1.4.0-cp311-cp311-macosx_10_9_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

edgedb-1.4.0-cp310-cp310-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.10 Windows x86-64

edgedb-1.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

edgedb-1.4.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.9 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

edgedb-1.4.0-cp310-cp310-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

edgedb-1.4.0-cp310-cp310-macosx_10_9_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

edgedb-1.4.0-cp39-cp39-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.9 Windows x86-64

edgedb-1.4.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.0 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

edgedb-1.4.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.9 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

edgedb-1.4.0-cp39-cp39-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

edgedb-1.4.0-cp39-cp39-macosx_10_9_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

edgedb-1.4.0-cp38-cp38-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.8 Windows x86-64

edgedb-1.4.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

edgedb-1.4.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.3 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

edgedb-1.4.0-cp38-cp38-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

edgedb-1.4.0-cp38-cp38-macosx_10_9_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

edgedb-1.4.0-cp37-cp37m-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.7m Windows x86-64

edgedb-1.4.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

edgedb-1.4.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.8 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ ARM64

edgedb-1.4.0-cp37-cp37m-macosx_10_9_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

File details

Details for the file edgedb-1.4.0.tar.gz.

File metadata

  • Download URL: edgedb-1.4.0.tar.gz
  • Upload date:
  • Size: 926.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for edgedb-1.4.0.tar.gz
Algorithm Hash digest
SHA256 2152b2b4b2b336048caa515264aaf600dfe7140405b0659b5c6ba18c06c4bb13
MD5 4090aeaa0494118b5ea37bd552fc5770
BLAKE2b-256 2e0d55d776bc66022edea9826165f1a32b8c33d33277387f6a3c0ad450239438

See more details on using hashes here.

File details

Details for the file edgedb-1.4.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: edgedb-1.4.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for edgedb-1.4.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 91a94d684336daa18b5e2d67c25dc281a11e32c31dce9dd736a664cdf5676367
MD5 a90c698f02792b4f36b2d5cdbc95cefb
BLAKE2b-256 113617f6f30de824f96ece2fa579459bbeececef2b46bff85d126f5fd58b2a5c

See more details on using hashes here.

File details

Details for the file edgedb-1.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-1.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4d4a876ec99bb7b833ee32cd808b894a0fb4de9da04a21033a5389073e84db8f
MD5 7b48434e313aef6f90774449258b05c3
BLAKE2b-256 af70c821fa87e6c954e6bb46db4521fa199aa2c9be91eabab3fd7851d9f2413c

See more details on using hashes here.

File details

Details for the file edgedb-1.4.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for edgedb-1.4.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d1fcde8eb57d522010d16775f632918d55d9d8ed64f00c2a6c93348955dff69c
MD5 9fbe1b6eee7c1f9097c9e5a2ebb459de
BLAKE2b-256 affe4f93847af8a213eb0e6713dc681dab266b2c3222f72457fdba8560f4f4cd

See more details on using hashes here.

File details

Details for the file edgedb-1.4.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edgedb-1.4.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9bc0b698ae3b2b895918ee06de7f4d0812b15e7ae1534662a717c7298ec67f64
MD5 57981877dabab05aba034dd8173b89f1
BLAKE2b-256 1784cfb7d01c108c2766410cf6bbfa50055e853c59b0d08926745f3495872150

See more details on using hashes here.

File details

Details for the file edgedb-1.4.0-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-1.4.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e4bb9cbffa96d108d735c5d89a2da3d96c091040babbe9b468e01d746e1de313
MD5 3e2506ff077f41761046a1d6a7fa7d74
BLAKE2b-256 1e2ccc93c8226ab1b08a7f29caa54188369abd6fb87949d748ebaa2001ee7419

See more details on using hashes here.

File details

Details for the file edgedb-1.4.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: edgedb-1.4.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for edgedb-1.4.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f7673cf0e5fd2fa5d563d4bd0ded81f001de3428f1e1f01fa418636afd61c4aa
MD5 ee16cfbd0f55167c103ee2747c9d1eb0
BLAKE2b-256 a7b924f4d09f6831adf31e5893fc150b92d9aee1e9675dc27c3a04426cfa1ff6

See more details on using hashes here.

File details

Details for the file edgedb-1.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-1.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 38fb3222e7160fa4a3d7b9946b96b39ed51c8c3c71ccef0c34f5b441b829bdd8
MD5 82b7351f8cd21804cd2addead82f4b6b
BLAKE2b-256 8ca390b5d1a665e8ab6d20d3ee7d66ef4bede36d3313282e7f43dc0076a276a1

See more details on using hashes here.

File details

Details for the file edgedb-1.4.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for edgedb-1.4.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 45e18fb85669065baeb6039bea7a5b90e308458b2329464ab682db7217bc72a5
MD5 0a1f59116aa376095642007ae773c879
BLAKE2b-256 7bbcebb49c71a26801d643500c6d279000de5e5373d16cbf799611e8b5905ce0

See more details on using hashes here.

File details

Details for the file edgedb-1.4.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edgedb-1.4.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1f27d1b1cf49ecae6979896ce4a42e0766a2ea0a8302ff9f8a0396a7aef0a09c
MD5 ba3d90c8ad530d5f2f1a9ee38ee62f45
BLAKE2b-256 6ae53045de97f20431075bbced936050a442b2a98f34a16cfbd1897836eb11c7

See more details on using hashes here.

File details

Details for the file edgedb-1.4.0-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-1.4.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a292baba733d916294944b11c0fa855068e8519453f0509c0b62b62737ea7b02
MD5 cacf083eb8ec1606e1796bdd2ed4fcda
BLAKE2b-256 ef22fc05991d3c3efece11f228f2ed8bfb54954062a2339cfd4b1a489d80a715

See more details on using hashes here.

File details

Details for the file edgedb-1.4.0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: edgedb-1.4.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for edgedb-1.4.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b609b70a42e2cf4e79873920f0fc9b68d954f0a5be04d5eb5a8e30ab3e99bc6f
MD5 3a03c5ba894893737250eede2cb8b4a4
BLAKE2b-256 8ae0118d8ecad69391c31bdd10478e8709ec6fe8dda1e34313d5f33d483e9dde

See more details on using hashes here.

File details

Details for the file edgedb-1.4.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-1.4.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7f8828c080da535ef175296a32511bca043640852d51dd09f8225bc8fb7acfa7
MD5 00600c8752ae17c2be3b96e31ceb7e8b
BLAKE2b-256 d1c0c6c1a49101fc9db1b6bec059dc5071900b6c265028402b6458b8a010f617

See more details on using hashes here.

File details

Details for the file edgedb-1.4.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for edgedb-1.4.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d617494c8666d1114ad43adb7c02e1f2897aff2798323745863df260183717b5
MD5 93ef4b517b8a2a63f9b14fcf50dcb03b
BLAKE2b-256 621fa0c51af21dde1a09505f7bba53bb8929cc4ea4e44eb68e9aea7afdc3392b

See more details on using hashes here.

File details

Details for the file edgedb-1.4.0-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edgedb-1.4.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b3e64481805ca3a70b949ec42b317eb432954bb1a5c7bf11ebadfd4d0384703e
MD5 1142eb5aec418c1756182a4574d6486f
BLAKE2b-256 7c785a95cddbd1d5d7a61c82b2df4763b9b57ae0fe3d7aecd46ffa652793f1b7

See more details on using hashes here.

File details

Details for the file edgedb-1.4.0-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-1.4.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2294d6ee4e1d275a43ed8ef2e07775f4e188d65fd02070e5a855e7c119d8225c
MD5 58bcaa2297a9a6919e34f9011985927b
BLAKE2b-256 cbe2fbce0c039930109e1e85b5976f04509ef18aebfcc3dd33fbb3fdbe5a129f

See more details on using hashes here.

File details

Details for the file edgedb-1.4.0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: edgedb-1.4.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for edgedb-1.4.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 86ad299b0da3883c0d4985951dda08420a5f5b720c8375e41e3f3874e43c370e
MD5 e7822fc493be054b2d0d7652ef17a0f5
BLAKE2b-256 f5ba598ce41a4579ff3a5b7486396785b51e6f3f5f6d64c007b12e7ae38b8734

See more details on using hashes here.

File details

Details for the file edgedb-1.4.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-1.4.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 96ac92adeeb2528f4c51d948573dd222aa691226ee95b043d9edd000de7bb066
MD5 779875838c30153e134c69cb3a541a4c
BLAKE2b-256 972d4f998447659bfa9f143bc9306c7f8644174245c3d4eab592e12de2c8b194

See more details on using hashes here.

File details

Details for the file edgedb-1.4.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for edgedb-1.4.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 41c979c47d8d79b59e28ed12ccdad5891cf48887797a24869a425506e210917b
MD5 abbf4c3168660b473627f96a98f93f81
BLAKE2b-256 475f9b778ad80162b073aca163eebcdadace447f831929096c58bdb03909b5df

See more details on using hashes here.

File details

Details for the file edgedb-1.4.0-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edgedb-1.4.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3fa6e81b79f96992378cbd117162c9b95dc8e6fbf5ad884b959bcd23d17fb139
MD5 62e114c11d89da95abdf633433f54710
BLAKE2b-256 64fcf06f86b065a2f24acd41307e2b25592972aa7acb05e53375e38574e6736e

See more details on using hashes here.

File details

Details for the file edgedb-1.4.0-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-1.4.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 bc6bdd0120cb87b5248df3eb6c27877b4cd7759feb20485293f81b84c6b04dd7
MD5 0e4f4be3a3a3cbc580de35e5e6249c7c
BLAKE2b-256 1c7b8603aec85fe948c8fbe6f21f3bbdb1575cf223284af017665027cdca6928

See more details on using hashes here.

File details

Details for the file edgedb-1.4.0-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: edgedb-1.4.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for edgedb-1.4.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 a6f78cbd0fd7fdb99d32f97a8c4f4f427c0099412d31cc5d01c365f67a853738
MD5 652ee9db67f84f3beb2202118e8c9bde
BLAKE2b-256 be785d6cc6a63467120ceebdc791bebdff5baeb2a9357f1a3fb1f993c0b119a9

See more details on using hashes here.

File details

Details for the file edgedb-1.4.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-1.4.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2a3dd89c2796de6d66287a67606b842f652fa57c9e92d3e1f88876b4dc1d0185
MD5 a809edcfdf2f10a088a0784315477c1c
BLAKE2b-256 4324b1f988417c998193dfdfa34df5c3faa690327faaf061de21a5f5442c98eb

See more details on using hashes here.

File details

Details for the file edgedb-1.4.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for edgedb-1.4.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 806461de092d4da128a179d6697ee487e2cf8a80ab034d07c0e382e0ebc4faf3
MD5 011de4290b37a9c5568439fad2dac695
BLAKE2b-256 7d0f2b67fba412f959f281e88f432fde4e7135f6eb2e4689ba192344e3e704dc

See more details on using hashes here.

File details

Details for the file edgedb-1.4.0-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-1.4.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 86f62209a7b9ad2e73627754f37934e8c3855fc6b32e90bec086d9cc5716d867
MD5 393ef6c5e469a0fc046d4d74ff584d16
BLAKE2b-256 848e53bed2a421b6a4435d00fbb06e005336f0cba4d07248070b54ad90dc178d

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