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

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

Uploaded Source

Built Distributions

edgedb-1.6.1-cp311-cp311-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.11 Windows x86-64

edgedb-1.6.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.5 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

edgedb-1.6.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.5 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

edgedb-1.6.1-cp311-cp311-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

edgedb-1.6.1-cp311-cp311-macosx_10_9_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

edgedb-1.6.1-cp310-cp310-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.10 Windows x86-64

edgedb-1.6.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

edgedb-1.6.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.3 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

edgedb-1.6.1-cp310-cp310-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

edgedb-1.6.1-cp310-cp310-macosx_10_9_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

edgedb-1.6.1-cp39-cp39-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.9 Windows x86-64

edgedb-1.6.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

edgedb-1.6.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.3 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

edgedb-1.6.1-cp39-cp39-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

edgedb-1.6.1-cp39-cp39-macosx_10_9_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

edgedb-1.6.1-cp38-cp38-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.8 Windows x86-64

edgedb-1.6.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.7 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

edgedb-1.6.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.7 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

edgedb-1.6.1-cp38-cp38-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

edgedb-1.6.1-cp38-cp38-macosx_10_9_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

edgedb-1.6.1-cp37-cp37m-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.7m Windows x86-64

edgedb-1.6.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB view details)

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

edgedb-1.6.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.2 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ ARM64

edgedb-1.6.1-cp37-cp37m-macosx_10_9_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: edgedb-1.6.1.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for edgedb-1.6.1.tar.gz
Algorithm Hash digest
SHA256 eeb8cdbeefe03131ae863483e20ce04dc2abbdb020841defef64e25db0bb2275
MD5 961058eb10067295b4c20a62f595ffa5
BLAKE2b-256 492060db8a9123fb6e37d0c9aebd6d67aa7fd0d6d9745d81ced6237a395b97dd

See more details on using hashes here.

File details

Details for the file edgedb-1.6.1-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: edgedb-1.6.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for edgedb-1.6.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e1a41ba9056c0bc2be18b3dba08078fb2c72c31ba11a896fcb653bb464f56d03
MD5 80784d76867d3c50ffcb402429beb16f
BLAKE2b-256 cdbf2c9db02c7d715ae6406d383721b462a8608cefef5e98c8bb5be66f8f7a3d

See more details on using hashes here.

File details

Details for the file edgedb-1.6.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-1.6.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 216f0b47704fc5cf2796868ff3e7f68ca0a84df4a7e7e3c93a190615384d6b03
MD5 d8202a49646a41b07810e59d40061c86
BLAKE2b-256 779be16e597b8efe4845e3059031e00f6ed615ceee2bc43ecefba33eb28b4293

See more details on using hashes here.

File details

Details for the file edgedb-1.6.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for edgedb-1.6.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 929f3443a66b31c378a638f1280b8f702ea3e438f0c28fac200065739260a0ca
MD5 9f7edf52ba979614b11a06c6df97a561
BLAKE2b-256 c6e730b070fe1eec20a7cf3d84f36fa5c5432b297fa6ccad6ba504ebc75641ef

See more details on using hashes here.

File details

Details for the file edgedb-1.6.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edgedb-1.6.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b0f12851cdb74e5134864c6c82cc6f58ec6330dc851684fdcf5636048b72d5b3
MD5 6935b98d72879704851f13af148faf63
BLAKE2b-256 dbbe788c8fea4d936327f8f969460f5dc9f77fc96bb3a7f8f5523981a10919ec

See more details on using hashes here.

File details

Details for the file edgedb-1.6.1-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edgedb-1.6.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0ca17fdb1b4f557fc495e8ebb258ac66cd97c6e73eef1f8530ad47512019e929
MD5 c67af90d9ddd0df1c63cde3e53a14d33
BLAKE2b-256 17e1d955146bb410016172262a4bb0e1b227286322fc28dad391a21771d8044a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-1.6.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for edgedb-1.6.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3639fdf5827a5b29c36fff7060a3dd3d2a317489d83566045e481be297341b62
MD5 ff3ed6d0924c86ff139045cf53148402
BLAKE2b-256 d1fc8d03b052c123afca9c52c99086fbe59afa876e3423907a904a890c6d4add

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.6.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 824daa5d6ab573a7f9b91d4e9fdbf4475c33b0f62c01d9d971ac2c160ccae47d
MD5 ab434a70a03d0398e755b3861c9e62bc
BLAKE2b-256 d5cceb349e5ed986d0e382bbc1e15297c3da3478e7a8357c71b825e2cf9c76ff

See more details on using hashes here.

File details

Details for the file edgedb-1.6.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for edgedb-1.6.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e432a90aee5eae1009bc70cf5e76773e0e71238bab601984def7288b89fd0115
MD5 6189224793e41ccc23a1f9c128d1d899
BLAKE2b-256 bd630abdb6b421c31afad1ded417d9267b60427169ef90cd392d7e9405bdbb3d

See more details on using hashes here.

File details

Details for the file edgedb-1.6.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edgedb-1.6.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 65f3d59942d2dbd680ebe9d7699d006aaadfd2bbe4400f52a0b658fdcbdfda90
MD5 ae2ea44b36aa6a86abceead19ec18192
BLAKE2b-256 95aaa6886cb09135fb61f5a1eec5e5542fbc2a784a170a75bada7112a18802fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.6.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 78c504612f25ae59f251406434e312e87f9f680a03d2d07b5900355e73bfa0db
MD5 1aa4d43bc681618e5e77d18f91276e02
BLAKE2b-256 c794bce0a0eaed2497ba2c54da2bc068713af02575d02f63dad260072ad71176

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-1.6.1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for edgedb-1.6.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 dcb0af25c6f205ef2cbb1475008fde4eaf3f06a327806591049bf0d70c0171d1
MD5 2ee8072243fca06fd9f13c2247b2f0a7
BLAKE2b-256 573b6e038e196def8fc4de2d047e5e3dd077ebb1e6d12790b2332fb94a7b3a74

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.6.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bd3bb57223c7dff46e6168b52c00bc6055544492549fb08f57a64a94f2eb3b17
MD5 b10e73f57c4ff6a766a7e2c37c2535cb
BLAKE2b-256 f453c2ecd4d8745b2cffded6a0e3980d20f4b976cbf6460e6300489d634010e3

See more details on using hashes here.

File details

Details for the file edgedb-1.6.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for edgedb-1.6.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 625fb980e1688025c75312fe8101f4f468f2b234e5114611c73bf4d8184afc64
MD5 10425ed042c386259d3ce7f9c8d21ab6
BLAKE2b-256 e0ffb300942bfb7e4809eeeb21269d48fa0820923ab41624c4046a6dc80339b3

See more details on using hashes here.

File details

Details for the file edgedb-1.6.1-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edgedb-1.6.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3fc1a5b9229a6fb7be0d3649649b212bec8ef63eb4a709a582de6603c5093825
MD5 55bcb1950d8242513603d9fc1d4e142c
BLAKE2b-256 e52611af91678915829f9872647ba921709ae81a86ae9a6ce0e923162704897b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.6.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f15836b1294812e7acdfc85340aa2739c3cf00221ad3d6c064b943f45b57dea5
MD5 eb2856f9e5de828283a1cf14246c9b04
BLAKE2b-256 56729ea4510000d272e01e17bfc367727a42a5092d4b18e2c25a4abed99dc947

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgedb-1.6.1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for edgedb-1.6.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ba6a902356ae2a0a11eaa816eef39174a1fc98502f0bbd8d67ebbb2707ebadd1
MD5 60dfbc49657a3f28afd60b4bf87aa8fb
BLAKE2b-256 6a6eaed7ad9e34648895154faaf46eaf3ca5526ea15843aa2e51cbb50d1747eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.6.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8897aa037a6b01164a3de3f61f3537efe73006cb4d6243c12b556a6c31b9de1d
MD5 1bd92e665ff9db854e5c01dc0b3ea7df
BLAKE2b-256 e345aed88c19d9464d86bdb56896871a1a269131726b14963e3a6ec12a00aeb9

See more details on using hashes here.

File details

Details for the file edgedb-1.6.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for edgedb-1.6.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fcc20d3d3c42b39cf1eaef8903b9ef7a3902f5ce292cf46bf0e126da4002862b
MD5 88b50918a75fab24064359bdb16e61e7
BLAKE2b-256 aa81d146fc1582743dbf0c666ddb43cbc3cb201fc4ff72c6db84622448718c2a

See more details on using hashes here.

File details

Details for the file edgedb-1.6.1-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edgedb-1.6.1-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 097a1a4d05103a60370ba6c3a984025f13435f633f752e582a790d792617a973
MD5 efb14397d5d11a16535be7cd3cd2b63b
BLAKE2b-256 c8c679926988ab91a641758fef0f5dd32c6595bdd131eeb89b641c5d055f9f81

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.6.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1fa88cbfdec9b73129ac89d99a845ec97220a5dcce7ee9c2708b7fb90e8d801d
MD5 5a14b0d779b65100697906d149ae6cbd
BLAKE2b-256 1ec2d7442ce382b22f210e397e9d85e4702ae6908e6978e64e49fb3fc86f481f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for edgedb-1.6.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 31bb309cca056829bf1f7bd1ba1781fda0d4cca59636c86e7222aeb528567e1c
MD5 0b5cd84ae2b053c6ee643c0b7c100900
BLAKE2b-256 6c4076b9aa4fecee32d941d2405da7ce36616b04f44e75d6e05ce2d6778c1292

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.6.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 53a1bb010d2468f97c91a9b94035b3854478a5327e4fd37b0590116b28d2ae90
MD5 4369eb0c876fccfa5382b2cf6be28e81
BLAKE2b-256 0341dd4cda65e88f3d5f91587e2cd4288c01089a4777f44812b1c8f43a2ed031

See more details on using hashes here.

File details

Details for the file edgedb-1.6.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for edgedb-1.6.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6596b063efd169eb92a6b7fe4629216f4ee91f2c4dc304376394f552b89680f4
MD5 02c42d591dc0d53b738c22a905eb0c13
BLAKE2b-256 6379f96c7b48c1761c83f22e4f8bd8c43a111f0c47f7214c8a2e60bbb02273ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edgedb-1.6.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4a0ecb7486b85c21f6c8705ceb5cb1664b296d508732f6d3744bbef21ad910b0
MD5 b5f4af3a3bd149ee59bde0965de2057c
BLAKE2b-256 270273b3b04b6098c047af070333e2314602ee7077f604b1585a0b14457b2a12

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