edgedb-2.0.0a1


توضیحات

EdgeDB Python driver
ویژگی مقدار
سیستم عامل -
نام فایل edgedb-2.0.0a1
نام edgedb
نسخه کتابخانه 2.0.0a1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده MagicStack Inc
ایمیل نویسنده hello@magic.io
آدرس صفحه اصلی https://github.com/edgedb/edgedb-python
آدرس اینترنتی https://pypi.org/project/edgedb/
مجوز Apache License, Version 2.0
The Python driver for EdgeDB ============================ .. image:: https://github.com/edgedb/edgedb-python/workflows/Tests/badge.svg?event=push&branch=master :target: https://github.com/edgedb/edgedb-python/actions .. image:: https://img.shields.io/pypi/v/edgedb.svg :target: https://pypi.python.org/pypi/edgedb .. image:: https://img.shields.io/badge/join-github%20discussions-green :target: https://github.com/edgedb/edgedb/discussions **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 <https://edgedb.com/docs/clients/00_python/index>`_. Installation ------------ The library is available on PyPI. Use ``pip`` to install it:: $ pip install edgedb Basic Usage ----------- .. code-block:: python 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 <https://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.


نیازمندی

مقدار نام
>=2021.5.30 certifi
>=3.10.0 typing-extensions
<0.30.0,>=0.29.24 Cython
>=3.6.0 pytest
~=4.2.0 sphinx
~=0.3.0 sphinxcontrib-asyncio
~=1.0.0 sphinx-rtd-theme
~=2.6.0 pycodestyle
~=2.2.0 pyflakes
~=21.4.3 flake8-bugbear
~=3.8.1 flake8
>=0.15.1 uvloop
<4.3,>=1.1.0 importlib-metadata
~=4.2.0 sphinx
~=0.3.0 sphinxcontrib-asyncio
~=1.0.0 sphinx-rtd-theme
~=2.6.0 pycodestyle
~=2.2.0 pyflakes
~=21.4.3 flake8-bugbear
~=3.8.1 flake8
>=0.15.1 uvloop
<4.3,>=1.1.0 importlib-metadata


نحوه نصب


نصب پکیج whl edgedb-2.0.0a1:

    pip install edgedb-2.0.0a1.whl


نصب پکیج tar.gz edgedb-2.0.0a1:

    pip install edgedb-2.0.0a1.tar.gz