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.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():
    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-0.24.0a5.tar.gz (867.6 kB view details)

Uploaded Source

Built Distributions

edgedb-0.24.0a5-cp310-cp310-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.10 Windows x86-64

edgedb-0.24.0a5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

edgedb-0.24.0a5-cp310-cp310-macosx_10_9_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

edgedb-0.24.0a5-cp39-cp39-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.9 Windows x86-64

edgedb-0.24.0a5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

edgedb-0.24.0a5-cp39-cp39-macosx_10_9_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

edgedb-0.24.0a5-cp38-cp38-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.8 Windows x86-64

edgedb-0.24.0a5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.0 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

edgedb-0.24.0a5-cp38-cp38-macosx_10_9_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

edgedb-0.24.0a5-cp37-cp37m-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.7m Windows x86-64

edgedb-0.24.0a5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.6 MB view details)

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

edgedb-0.24.0a5-cp37-cp37m-macosx_10_9_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

edgedb-0.24.0a5-cp36-cp36m-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.6m Windows x86-64

edgedb-0.24.0a5-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.6 MB view details)

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

File details

Details for the file edgedb-0.24.0a5.tar.gz.

File metadata

  • Download URL: edgedb-0.24.0a5.tar.gz
  • Upload date:
  • Size: 867.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for edgedb-0.24.0a5.tar.gz
Algorithm Hash digest
SHA256 5960671214ad1e30206ffe9a79e4deda149b592046cfeb95b6f5b96d9b079b0a
MD5 7191ed5871dbcee78768509b782a805b
BLAKE2b-256 a68db63148da45d73f596dbc0be51411b337f8ac6886f4f09d80ec55a0cf189b

See more details on using hashes here.

File details

Details for the file edgedb-0.24.0a5-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for edgedb-0.24.0a5-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1797e10c2cd8c56eb806f732c1f02fcb83c445578d93622e62db3dd655522ede
MD5 1a2fb2e233bc0bb599d4f82b2d70323f
BLAKE2b-256 e839f1f9d22a4a34de473f776b72fecc90c960edb6d83c97588ffaf7b13adeca

See more details on using hashes here.

File details

Details for the file edgedb-0.24.0a5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.24.0a5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dc47dda9ddb8e1c4a1aed3ace8fcdf6a6204e1b62982188d1e03673a4571e7c1
MD5 6ae9e47ce1e050354f7f49f29cd6d434
BLAKE2b-256 8f97e139830de1add3cf06017abe2127c2f02b1be538414e43cf89d7c92a3de1

See more details on using hashes here.

File details

Details for the file edgedb-0.24.0a5-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.24.0a5-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5bdadc55e0024752f0288e6ae67fd7f61dd1e398736e3ed1768075fc95cf6326
MD5 4e1b9e579df32e0ba0d613d2edee09f3
BLAKE2b-256 95020fd13d605c0b62fa6fc5ca77644dd3829c32b51481bb5fc9619489ab8c00

See more details on using hashes here.

File details

Details for the file edgedb-0.24.0a5-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: edgedb-0.24.0a5-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for edgedb-0.24.0a5-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 1a579432f1385f793991f56610e8d8c11de215a1fd8d726a6bd64c80e9a103c2
MD5 b2549d27ae14119f5e3d72779accbede
BLAKE2b-256 4f46e50110faf13095751daba1ba3bc2b413320a1c21b2248efbf506eb9d9759

See more details on using hashes here.

File details

Details for the file edgedb-0.24.0a5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.24.0a5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e11f15d0d5389ad452dcff0cb64deed92b51a685ed8152bdc984ae1e727bfcce
MD5 c9181fd46796b5304034f74ba3b29d74
BLAKE2b-256 adc545ec96ac1ba5649b53bada9a512111e5d98a15c6f14c85208cdee0c5b0af

See more details on using hashes here.

File details

Details for the file edgedb-0.24.0a5-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.24.0a5-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7bc920219f8fd3bdfc984677b8504ada4b0d0c46fae700b78afa24da14d8aef0
MD5 d5a28b6320e3135e81ad297e512b702c
BLAKE2b-256 530221bca1230a82be8f43deab18df87c9399e553e06182b42911053a8bde228

See more details on using hashes here.

File details

Details for the file edgedb-0.24.0a5-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: edgedb-0.24.0a5-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for edgedb-0.24.0a5-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 05d93e79851bd798775fab951d2dc1f966f75429c743f3db092a733822a36b1f
MD5 7c61fc01dee8734242f4bcd08f04cf22
BLAKE2b-256 2bcb862cb6a2ec0e5347d154f383a3c84a2f21c5fde0f866bea6e274a60e51db

See more details on using hashes here.

File details

Details for the file edgedb-0.24.0a5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.24.0a5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 faedf25c4c3d609c774c62f802dae6111f97e448ce9daa704e1795fa27e72077
MD5 fa1266ede26f221933afdaf994ec2e2c
BLAKE2b-256 66c1d78a50f0680f25e17bde859ba9b89365e1452bffd6ac3c5d752342877789

See more details on using hashes here.

File details

Details for the file edgedb-0.24.0a5-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.24.0a5-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5f5b3cbddc1b126432a061a27718d0691370b5057a6aea86d0733304db8e15f7
MD5 79b8ab291abf8f9469bb5eee31a92647
BLAKE2b-256 f075a529ab4009dff30aaa1ed3dc1892f59ce7480a210b232eb8bc9de03c5c23

See more details on using hashes here.

File details

Details for the file edgedb-0.24.0a5-cp37-cp37m-win_amd64.whl.

File metadata

File hashes

Hashes for edgedb-0.24.0a5-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 fb877374cdc9984569b34a664ec9064155ee6d87cf76930d1d1caabe6248aeac
MD5 94544580cc86cfb5c73c129272260b9d
BLAKE2b-256 9b9245790eab14235fbda97e91c810fa6a26c2a93822565f9ff97057b48eb730

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0a2742b80466cfb8e255a2748887a862b63ae30bb68415c2db73de0b3b9e8964
MD5 cb83561c8a89f719fdbaf5f9e792265c
BLAKE2b-256 60f1b18e730c783c2a40e78181d0bd53b884f6b5ca0ab499e87540b1c382b5c6

See more details on using hashes here.

File details

Details for the file edgedb-0.24.0a5-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.24.0a5-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 374f164b8a03ff057914a9ac0009bd5cebb539700c6cf1cc2b2b0cff2b8a9e3b
MD5 d3ab24893513736e183881070c2348d1
BLAKE2b-256 105471d5803daa415b82e7b115235937f6acb74c56da812fd3d8f0d34a87843b

See more details on using hashes here.

File details

Details for the file edgedb-0.24.0a5-cp36-cp36m-win_amd64.whl.

File metadata

File hashes

Hashes for edgedb-0.24.0a5-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 0865ad2c727b6af55fbef0c0a101d94c8f18036dce3100bb4dc37f7815a6417a
MD5 b6382f6d4a3ac93c0358b3f6cf68499a
BLAKE2b-256 4ae87ea8bcb84b8b9d013e62a7605e611dd17cd116928b9f6a0d7c907c36d223

See more details on using hashes here.

File details

Details for the file edgedb-0.24.0a5-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-0.24.0a5-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a399229a0e85319af0950efed2ff3b62c0b3356a0bbdcfa220c5e60a1fbe431d
MD5 586be5dfd444e33362418cf8f453d94f
BLAKE2b-256 e109ee599f55ae4b4b0b9d2e20143ff3504435ad362e75b314e412177b02bfa9

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