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

This version

1.1.0

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

Uploaded Source

Built Distributions

edgedb-1.1.0-cp310-cp310-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.10 Windows x86-64

edgedb-1.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.10 macOS 10.9+ x86-64

edgedb-1.1.0-cp39-cp39-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.9 Windows x86-64

edgedb-1.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.9 macOS 10.9+ x86-64

edgedb-1.1.0-cp38-cp38-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.8 Windows x86-64

edgedb-1.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.8 macOS 10.9+ x86-64

edgedb-1.1.0-cp37-cp37m-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.7m Windows x86-64

edgedb-1.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.8 MB view details)

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

edgedb-1.1.0-cp37-cp37m-macosx_10_9_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: edgedb-1.1.0.tar.gz
  • Upload date:
  • Size: 917.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for edgedb-1.1.0.tar.gz
Algorithm Hash digest
SHA256 40505b2ea3d0018e6dc900999949a3fe2a10f268d68049a185f0e8e39c7e6585
MD5 04ab960c4f326ca270a0985020a63201
BLAKE2b-256 005d595f410250788ed4a68ddaa7d6221ad158c63bce2a98dc802fb02b97ce94

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-1.1.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for edgedb-1.1.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 966d834b1c43ca048eb8f8fc6de66a9717a7dae6d52b2424ea9227637d8fce42
MD5 d1c882134ba93eb6ff9402ad5bdab9ff
BLAKE2b-256 20f56d025fb09e19263e3c696864fb0075dc36cf91b1a63008ac3d4746a4db3f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c2d734c1215a0ca919b683eadbee8012391e8f512c8866d751649e5707501d59
MD5 af449fff2907da5b55fcc9eab9749193
BLAKE2b-256 5def902924f1cb582a7239f6f49918d0a5a253a4a925b439e8b408cb1453a34d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.1.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4d8a073cccf7bd4a78aab1ce8012e674ba1926f037306c3a0782111695349822
MD5 81147b5795eb568e11d3d1481561aa58
BLAKE2b-256 3e0d9f3127d43d9cd5bc1ad3205b113836e44faca3c8942ded9760a8dae02951

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for edgedb-1.1.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 10ce4ee0bcf5f295dbae42b867c15d50ee14b07ab5a3a41c5b3c288a877e58d5
MD5 ec6d975cf539581f109bc04d4e474b56
BLAKE2b-256 eade964a77450018f6611e6db76053c80aa6d7f3e648390159928311decda6ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a6905fa12865e20a31293354163e4fc638ac9fccb2da8aa6a2375307b818150c
MD5 1b244a37715a46a60535914e19d068e0
BLAKE2b-256 72933bf0d0d834693ca52e06bc0cc2079f6d016fb969ababa902c93f5f862c77

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.1.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 440ee184bda4c3f2dc4feffe5e61e9c17abb48dfc21ce840a65592c0209201c2
MD5 a3138e5d30ffa48759e06af79b9bc5a1
BLAKE2b-256 36fde8a11e9618bd5e8a0165598e39cd5a9eaf5441e067cec40b9090273363be

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for edgedb-1.1.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ae806b61c579a790c26db7d1e361be4d39057b8a3422601a8e07d16cc65e4980
MD5 7f2159279fe4cce30a0dccc61a30764d
BLAKE2b-256 4a5d903218b2ce5649585f545ea251960c3c4f5804c9b2beb629d58ccdb0a370

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 49d4674e73a43968b735d8ac585549a1a1fe134b1a9a46a4cddcefb5f12cf1e6
MD5 232712ebc77b56f8053a38c2aa6854f5
BLAKE2b-256 5e5fde01dd74f219f7d0125dbb43e0538cf90702eac13ea3c111d83259bcb7da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.1.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 61909ae512055f1e29adc6e9a0c2e5760edb3793809556d83ee7d6395a6e2e16
MD5 c565c50826a6cce9dde412db612929a1
BLAKE2b-256 b5b46ae4d307d572596c29613861037f33453077499532b5d1ddcdeb7c30e997

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for edgedb-1.1.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 f5a88b15423582a3bbf7cedef2f2bb871ebcf60642ed6511b7a845eeb56b437a
MD5 5673681335e5ea9d9e55b51fd5bbaa36
BLAKE2b-256 7af588eb296d31fed4770da2b02a0112b501ff50d219d528617b73b5994d1d0f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 12f3280108e3ab4a1cc85977b435f16f36d3fd75db284ff3daf6decde6bf0469
MD5 05756e70301425f386cb59f0138c38a6
BLAKE2b-256 161271918bb875311bf58b596a1442dc57c827d87039b8db3421b99be4d1fed2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.1.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 26eff8df37f8aceab9237028c2cafa90f9af17be8a479104ffcf55d9beee064f
MD5 804ae50b8c0716bb4c7dc7154321ed7a
BLAKE2b-256 e938a00ee2db8541b6be0eec49143e339c62de7376f705f2a6c0701bfbfcffe9

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