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.0a6.tar.gz (874.8 kB view details)

Uploaded Source

Built Distributions

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

Uploaded CPython 3.10 Windows x86-64

edgedb-0.24.0a6-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.0a6-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.0a6-cp39-cp39-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.9 Windows x86-64

edgedb-0.24.0a6-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.0a6-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.0a6-cp38-cp38-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.8 Windows x86-64

edgedb-0.24.0a6-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.0a6-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.0a6-cp37-cp37m-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.7m Windows x86-64

edgedb-0.24.0a6-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.0a6-cp37-cp37m-macosx_10_9_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

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

Uploaded CPython 3.6m Windows x86-64

edgedb-0.24.0a6-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.0a6.tar.gz.

File metadata

  • Download URL: edgedb-0.24.0a6.tar.gz
  • Upload date:
  • Size: 874.8 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.0a6.tar.gz
Algorithm Hash digest
SHA256 695f4416a89aa44671f6af8f3a954326ffda985397be3f5b561eef0968e0e32f
MD5 71618a072f9ab38b6d5dcc617bf8b9d1
BLAKE2b-256 71342340be4f04827ba186fb3193384182ff8d3a33f50ec55bc0d69407c1302d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a6-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 bf86589e5feea81564af34e48eb1670c350f51347f9c66ab56f448e42891125d
MD5 72f0b74e0df0df5f2de77178a709770d
BLAKE2b-256 194b45cd873b41cd8fad0428d6c7009b9e000d8eaee338c29b1257218d8a8b76

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c39f9193520b931ad9792726885cdef90732bbf8dd44a1fd76554067e807d45a
MD5 e91ba3d68f5e2e8130b52a1eca47e1db
BLAKE2b-256 b91df9928ab83665af2c788c94df73dddf566dfc3c3630eff15a75047d6ffada

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a6-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9a6a86438c84eebe020a9bb839d95383e2e930306d42c2cc863a89cd2c01f855
MD5 ce2f1b7194fe7003c9b452a2c218079a
BLAKE2b-256 38a4dd5260d076dc9d27431703059d925bb5b0f1b0ad260cfb9d8d0a844252dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.24.0a6-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.0a6-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 cf2f77d8e9d0f5d8a7e0fecebb31bba0da5301949a5211ee43f32d42264ee865
MD5 dc311b928f68972f8736676e4288959a
BLAKE2b-256 59c0cf0a46b612947b6e3373799b291868b0fc9577bd5c46339f480e84fa74fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dea569cfaed643ebeb0e0dd8d103bc4fa91d89f50d4444d6c91baa0e59f72e0f
MD5 0ded991f2a0821a4a804510a0ffde4d8
BLAKE2b-256 69ed7e022fa94854aab5ad08712f5e0449bd8e713c9d5ce3e929358d2f5e824f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a6-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 98e8e4f2a7e371aadab231d7e15f196d40cf7ba0ec1b9ada9ba3b23bfeacbe60
MD5 2857dd40ddb4e5881f91a52622663e85
BLAKE2b-256 6b519225d0a54432d21517727dd6e033104f35a32947aa9e9db11d723357148a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.24.0a6-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.0a6-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 91ecdd15a81d005fac66dc78ec5b324b99c7ecfae156b3639ee0398cea9cedf3
MD5 db1de15b37e92e8c2e9371fc117ba24a
BLAKE2b-256 0efb166b0715f70f5cfe97203a87b8465f27c92db0f76e381b0bf736109929e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a6-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0f3f06a84c088e8df0247b866389cb162efe5726ef22f296f63a1fc19fd7deaa
MD5 75bdbe25528efcdab5974608c8f7b305
BLAKE2b-256 8d8c8aa78f9d887d872c797935690aff213c15dacb6df7a381f8a43bfaf5bc80

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a6-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9f5f71f92efd80c5be1c35bf2530bdb6d9779d42a9c7d039ad243eefb81f1265
MD5 9db82c94a2e2d247765b29752d2f58a4
BLAKE2b-256 d25399cbf1975a98730da09a6a67bb943b81cb7e5e8b273ec4e12dbf64d3c635

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a6-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 a1d918da8f359c37acbb074f4c15d06190f3a87954af71aef80727c462b623c0
MD5 a3f5551d6b11eff735289ed275a108a0
BLAKE2b-256 65f637e35ce43bf21a7d98a4ae368c311f771a90d8d260435a7ff4fab21d6d15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a6-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7e49d434cdf7ec1a3d87c75e8c73c6f5143cd3c8aa96b8522b484e83923e77f6
MD5 f0176507bfa17cfe85ae656468ac7c18
BLAKE2b-256 2ba00effcc923d99040d273e5169a2781dac2c2628c401e56f38371552115f4d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a6-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8e798a0c18119ff9964d285d45cecbef0b2ccbc4d380fb8a98a7b934585c8b1d
MD5 8a5b376006bf874c1a43c9ef1d922814
BLAKE2b-256 d1aeb17d717ac3dcee69de0448ac18292e3df225c068ff6fa00f2be397404b09

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a6-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 f2bc70067f797159461bb75dc9bd935daa2f4fdfb7c9b72b1c0204c7eeafb390
MD5 6b8b72dcb9f1ac36a560ef6da06e8fa8
BLAKE2b-256 2e9f8c346a4823fdc19409e47d2b426717d46d928a9ec5fa73771348d72c9f27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a6-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e85996bcd0857b58a0c55e67398d50a42fcd1e5c59a73b6ac9962832744e781a
MD5 a8642496863d514302e5ba458e2c7c37
BLAKE2b-256 4452f1f66057e32874ca4748a0f432c781666dc4c05028e81814a550f29d042d

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