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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.10 Windows x86-64

edgedb-0.24.0a1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

edgedb-0.24.0a1-cp310-cp310-macosx_10_9_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

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

Uploaded CPython 3.9 Windows x86-64

edgedb-0.24.0a1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

edgedb-0.24.0a1-cp39-cp39-macosx_10_9_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

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

Uploaded CPython 3.8 Windows x86-64

edgedb-0.24.0a1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

edgedb-0.24.0a1-cp38-cp38-macosx_10_9_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

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

Uploaded CPython 3.7m Windows x86-64

edgedb-0.24.0a1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.5 MB view details)

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

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

Uploaded CPython 3.6m Windows x86-64

edgedb-0.24.0a1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.5 MB view details)

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

File details

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

File metadata

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

File hashes

Hashes for edgedb-0.24.0a1.tar.gz
Algorithm Hash digest
SHA256 18ce9c7c55d9b011468f950159ad021a7ba76b9dd47f3ac4848a5590896d5b89
MD5 851aa1c22b2cd945ff9c496c2dc8e2fd
BLAKE2b-256 c95d60fa4d5b063387a5168b55f5cebae75014c2c9e2c2127e4f1a1adf3452bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b28c9de3519490bb48b7a9d7a4995304a4755f4cfc24b1434a666610a6883383
MD5 90ccc01d13b93b99236c79663f0bccf6
BLAKE2b-256 2229925b67fc53444f01c2bdae1b027354cd6e0ff46f97ec5e04ac5f894f4aed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0d03825ef6902df492cc5f459e905650406e48618fefe03337fbba4006c1ac9f
MD5 8dac7cdc2dcf14644979dd2a90a532d4
BLAKE2b-256 5d572ab43e630f256bb6224f5754bd4a61f4bbad78cc649d8149cdf6ae087538

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3998730c9b576486ed37f03b91582196185e8ddb4eeb95a8a55923b933533eb3
MD5 7934e9cb0a938a10fd94da0fc1d7c117
BLAKE2b-256 9fd50f35b4d2a1580f9af593968dd58b37baf4e31d914827f452666bffce5994

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.24.0a1-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.0 CPython/3.9.13

File hashes

Hashes for edgedb-0.24.0a1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3dc9c0063567052a413cd1ad2ec69c3de3b1c7bc2502fe60c83cca5bb7a75ef8
MD5 c9e1e14888fc2975ced3e8288b1213aa
BLAKE2b-256 180c5d907126d4963749c92414870e13be553fa920e5b1d225c41f0bcfe8253d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bfc5f78f34f2ebc9fbda1409fe740da03feef7589a39c02a599911fd188c7236
MD5 96e22c26da1d6ef4b671714e5e9f3b73
BLAKE2b-256 1fc314189a8c14be2826e03e4b96a058357f99b9f2c1842f932aab56ef69bfb3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ff63c65169ed89109527f9eb68be14caae2a497b959ed5488aeb84e21ce4eee5
MD5 3385d42cc08b7f16f5c7c8d23d71f119
BLAKE2b-256 54e19570194cb580cdf73a890df9392c8c837668af9b2a1dce502984b0a0aeb9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-0.24.0a1-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.0 CPython/3.9.13

File hashes

Hashes for edgedb-0.24.0a1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3d8f6d6bb4080a9011ec343fb428f4dd7d38d027288e4b4fc48451e446566412
MD5 a203eda76e668901a0bc27f92bafba70
BLAKE2b-256 09f519eacce33bcba900aa243afcab6b761ec7a276644eace0a550b1471c1076

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e19a8c7ba48e736491180d15f770cc7add0e37a81c3ed526c39ada2d9fe301b8
MD5 ffc4aaed94334e41594aaa0ed320b596
BLAKE2b-256 8092f0e245a46b94588227c9d8e551090fd2b23ec217a10c448284dd04b3abab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 018bbe1ae06b982b0906cce9c6ea9ed825b37909d6585a8656915d75aba5c3cc
MD5 38221fe46b2081df568f5905f5947dd9
BLAKE2b-256 a5d936ad422ea5d83fe550e06e0d811c931f2188a5d997c007f09fedad3b2f4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 b7e4f76ae16ab106d19e1e52c9c694ba720eb9012b283eb9cabd01164df359ad
MD5 e0cf3bcee8b966c12a9edb26efe6562a
BLAKE2b-256 5d0ddf527566a07fa1f01cc459a7963d35e397d790a87bfd57a3740ffdd6415b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dafbd792b6df23670d6bb45d5ae6eab257d1047b1c66cb37ba0126c5c664f259
MD5 4ef488d6bd77d4b063acaba7931a5902
BLAKE2b-256 9316d426564983fcdf39692f323513b4670a83e257e1fc452bfa5d9edb7cc91e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0970a1ef14aa18d1911302039f8b4727c2b89a2b98635306b1e59835726a522b
MD5 edfb6afe53230332c0e4376a908b9627
BLAKE2b-256 73013e3ab71119c3d4c25b8f32d063acfe6d881793fa72bffb5d0aefe9da15b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 4e0531190373115c1f7ad84f5d99c48ac078d61b6ac20d9163dca37a45a19ccc
MD5 e1beaae741b6952f7eccac02e6c99319
BLAKE2b-256 68f48b1072d4b705333ebc9abe1ba35b67cad2e83df292f7c29ae58777cc447c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-0.24.0a1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0d89c3b2969afeeb2ad8e1d145a893598fee8b489591422c2ba8f8a396e0485f
MD5 067b544613d738aa058c4275bfa19f09
BLAKE2b-256 a394ec1e27e396757448fb36a074c37fad0f432fe3bada38cbe42d93dc5dfcf2

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