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.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

edgedb-3.0.0b2.tar.gz (1.3 MB view details)

Uploaded Source

Built Distributions

edgedb-3.0.0b2-cp312-cp312-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.12 Windows x86-64

edgedb-3.0.0b2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.8 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

edgedb-3.0.0b2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.7 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ARM64

edgedb-3.0.0b2-cp312-cp312-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

edgedb-3.0.0b2-cp312-cp312-macosx_10_9_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.12 macOS 10.9+ x86-64

edgedb-3.0.0b2-cp311-cp311-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.11 Windows x86-64

edgedb-3.0.0b2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.3 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

edgedb-3.0.0b2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.2 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

edgedb-3.0.0b2-cp311-cp311-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

edgedb-3.0.0b2-cp311-cp311-macosx_10_9_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

edgedb-3.0.0b2-cp310-cp310-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.10 Windows x86-64

edgedb-3.0.0b2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.0 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

edgedb-3.0.0b2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.0 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

edgedb-3.0.0b2-cp310-cp310-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

edgedb-3.0.0b2-cp310-cp310-macosx_10_9_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

edgedb-3.0.0b2-cp39-cp39-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.9 Windows x86-64

edgedb-3.0.0b2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.1 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

edgedb-3.0.0b2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.0 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

edgedb-3.0.0b2-cp39-cp39-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

edgedb-3.0.0b2-cp39-cp39-macosx_10_9_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

edgedb-3.0.0b2-cp38-cp38-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.8 Windows x86-64

edgedb-3.0.0b2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.5 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

edgedb-3.0.0b2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.4 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

edgedb-3.0.0b2-cp38-cp38-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

edgedb-3.0.0b2-cp38-cp38-macosx_10_9_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

File details

Details for the file edgedb-3.0.0b2.tar.gz.

File metadata

  • Download URL: edgedb-3.0.0b2.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

Hashes for edgedb-3.0.0b2.tar.gz
Algorithm Hash digest
SHA256 53c49059c2a8e96b8c7ec372c53f17bd355ca4e76b36cb92b0ab3fff9b155a62
MD5 b0fe4f5a0814ff97a9a17d159ff6604d
BLAKE2b-256 615efd95728e7be64c551a1107b47d952a18ba0548ce3f965d085c887a16ea95

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b2-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 fd0a46d22b59dc2ea9b7d936d3ebbe7518ad1679a806511e9359f906dc89867a
MD5 2f477f070b04906d4090175d4b99c122
BLAKE2b-256 0044f923a0f19a5428fd82d173d0b434cfef8e68efdc52e896d36e42adf88daf

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c72e3d06f21f47d7b0c96170462634eda567d88b7f89491ba740f472e5e428b2
MD5 396447b788b59c8f46b3497887339cf0
BLAKE2b-256 43032c334f628c05faf10a72a2ed1c893d9bcb9fce454a04de5815bc1a9920da

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4b87f6f93b0273738b218fe5a12f79fd0f1c397ca60ff00549ce349edfe69b3a
MD5 5f64e6df2350f7223ee441ac62e97917
BLAKE2b-256 2f176152cc77a58dfb59bdc0dc1bbf3dd73bcfa3b33ec38606ac5adfb3b1b2f4

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b2-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 57c76af84a05aaf04c11302d8a3a3713c7348b388f996d6328c3f5fa5a396c1b
MD5 c24d11f5e41668980f58a4e9e627fe15
BLAKE2b-256 a9f4ae7078ebd2e9f35ece2f2ee0e8f11eb4f66759a97c1b06b875e087ab0001

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b2-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b2-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ad59f4d387828db5c8e2ee44e360a6e07cd5aa287cc0a9f941032f5e55ae7849
MD5 885c8861a84950b7f389e770de517339
BLAKE2b-256 4f2b8e4a782f2d4338aedc11635310c910c9f443cf6deb26fdb6513819146581

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b2-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1fd588680d3f13420546f404f13e326031ad96e6f02710b45673f452224d0a9c
MD5 e595fa4bc7986a02bba933781b93d0d7
BLAKE2b-256 e39c3f49b122d04b75c6a0d843e670b8a0904e438785f7cf917c09e578ed4a15

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e6d39533d444054ff901ca55d0be4261eb74896ea220eb77fb6ec83e916761a1
MD5 e5679f33e21514392c37678edbdcc099
BLAKE2b-256 b087bc5e093abd7526f9e7b585f1a23520fda11b86ce2492075905970292922b

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b88aa4f8a0319447d6fd2610e3c9c936f4215115a9e94081c5878b4b123d29c3
MD5 db149ea42d54fe73335432cbca804ff6
BLAKE2b-256 c6fc9dd4255f9e018fbcf8daff03be87f9eaca300888d999c5f69650a02b36c5

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b2-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3651050ebe75e5e466a0e2136393382b3270c290a20bcf1f00cf1ed8ac03cc57
MD5 fad6b3189bab1df64d89d8f68afed6d7
BLAKE2b-256 83a877eee705806932ec10d4bd54871a683fc0c80817a3255e5b75b410cd5ed5

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b2-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b2-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3106327bf6ca06b9bf53596dffb3e48097f7021f88c6b8380555376c89b89415
MD5 e34c01c82e81ac36ea4a3bb652a292d1
BLAKE2b-256 665f14a8556aa8bd4c3258d509ccba7393e7f5271ea9b1a9b0d65ef43e5e013d

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b2-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 237acf68f492501caf8f06766c4b27cc88a4f911735b023b3451d52e23cc45fb
MD5 d96ad237f5f6f0bb1dcf746946503d51
BLAKE2b-256 ff2c81a636667cc2084d9a66a005bd1e702bb47d6500b6e94621a18349e63cf2

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fb3860b1ea6f365be6376b3dc70b405b973d433a02ca0bf74f6070c57ed2a47a
MD5 925973406571b3885c0399f0c03a0599
BLAKE2b-256 4eccc8adaafd84f8487f29ec98ccccc9a5caabc99e1e0732f5f9bdc6b84f45c9

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 883a2cc8d93b5249c15cbca95669f4cf673790e63aca2af304ffdf9ee6cb87ce
MD5 e465c3961f028df76fdff20db5bf78ad
BLAKE2b-256 65dec50d4f71dec2d84c027e663614c241d3be712a3b0259501209f5f9f869f5

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b2-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b97f6ff70aced1add589f76c3775b1c9e0bb54ed07deab7dc11e5743f2edaebe
MD5 a989a7ae508061c4121f2ed94580cfca
BLAKE2b-256 b60ec42b897159b1636ec50524401538344400e765b1969ea9ee9436fd7a9a6f

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b2-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b2-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 af2eafce741f0661c756457d637a023f3b0c1c9b72858a05a31655a98e667641
MD5 f62258705ca56b81669b0015f6563070
BLAKE2b-256 edf420861170b983407e2fa3b51ef8f1fb1cd67b66f1b505836b7f6e0b514bc5

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b2-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: edgedb-3.0.0b2-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

Hashes for edgedb-3.0.0b2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f9e1f818d9ef8f4307f4a99e983efa7d9ff761c8fcfd2d28822ae0e1537be1f6
MD5 f7fb4813019c4ff4e5efeca0edc3f9a2
BLAKE2b-256 804bc0fbd27535fcbf2c7ed7f7d30a10caeb12d5a2da191928f06c98ed1e2b4f

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9c4e21d222ef4318033afb66129784dab0b5d929137648ac3ed50d867f2cc92d
MD5 8a158bd8a64c7b2402d7d98f3bf763f4
BLAKE2b-256 36ec37be36328c1212a2894fd0cce3fea1618318b56a9e6d82e6a75da93f64a6

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6109a451c9d9726bfe42f899456d0a315f8a85d32308f1af0b70f2fe4d8a1c15
MD5 2101235a694892b53ebe0db1a4048325
BLAKE2b-256 cdb397252c5db47523b2c720b34e68a413ce77756194ce2cefbc8de9b3082930

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b2-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b2-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bd3915b2c24f095bf0445e387ca8e03fab33b164691b5ea69e319c5e5a1e0d55
MD5 88fef538f6664cd7ab8a6b43dbe28d1f
BLAKE2b-256 447e869754cbdcba7bacf01819a484d83129454c19264a6b04e95ce4394f48bc

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b2-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b2-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 93bfcf6f0d2c4b7161ce03f4a43990ed703ed9615758c7ce9b680936ac0483dc
MD5 81bba3df9d0a4f177e5d6079564caaf3
BLAKE2b-256 0ee6ca475064f6030336c05634cf7dac2c03ccfee5d4ce09f7e6da8548052fb2

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b2-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: edgedb-3.0.0b2-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

Hashes for edgedb-3.0.0b2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5fc0bbbce2fb6912d649e08fe2eb6504b1d1e2bbbc07507bdb04eda5dae4f305
MD5 e45f8ed4a06a162c5a084b638355cde8
BLAKE2b-256 a8e2b4f967882279ded9b27b1550a7cdd3ee4d8f4db3e78cb6c6ad5af26ab9f5

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 488a863abbe61e1db6f96e1c62f3168d3d31455757aedc45b2ebe7cb4e24d2b0
MD5 ee907e4f92e6f83dcb2a10cbd32d0ae7
BLAKE2b-256 3d67693b1386d3d366c37d65354e39ed379bfeb74886592a660e5481b4cbd4cb

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a39e1130c5da5e40d64def0ced523596c30d4e47cf03e0a00983a794e9276caa
MD5 e6e74e4f41d3097456f1f4576001ddd8
BLAKE2b-256 5617ec5ef394260a23968ed4028885c7d86724c2e843395e49df62c96f444777

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b2-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b2-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e7c1b094778a4702de64289ee4c85771ed40896977fe2d8c638d8ddc25198441
MD5 217fc7c2f14d14fa1ceddaed346deba7
BLAKE2b-256 79d8f7846bc7704fd49bf8724a5e81a92223bcc36b41402490c66235eb4d7433

See more details on using hashes here.

File details

Details for the file edgedb-3.0.0b2-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-3.0.0b2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f5f160a0d99e1eb3981aafcd2e92c756cf8c0d109aa46b91c80b6362dfd742c2
MD5 820ba3d3d232be7942388d7d3922eed3
BLAKE2b-256 a5781b522c2bb88b22e9bbfe40adc071b61ffab44c4358557017856d7250a6e6

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