معرفی شرکت ها


dioptra-iris-client-0.4.5


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Python client for the Iris API.
ویژگی مقدار
سیستم عامل -
نام فایل dioptra-iris-client-0.4.5
نام dioptra-iris-client
نسخه کتابخانه 0.4.5
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Maxime Mouchet
ایمیل نویسنده maxime.mouchet@lip6.fr
آدرس صفحه اصلی https://github.com/dioptra-io/iris-client
آدرس اینترنتی https://pypi.org/project/dioptra-iris-client/
مجوز MIT
# 🕸️ Iris Python Client [![Tests](https://img.shields.io/github/workflow/status/dioptra-io/iris-client/Tests?logo=github)](https://github.com/dioptra-io/iris-client/actions/workflows/tests.yml) [![Coverage](https://img.shields.io/codecov/c/github/dioptra-io/iris-client?logo=codecov&logoColor=white)](https://app.codecov.io/gh/dioptra-io/iris-client) [![PyPI](https://img.shields.io/pypi/v/dioptra-iris-client?logo=pypi&logoColor=white)](https://pypi.org/project/dioptra-iris-client/) Minimalist Python client for the [Iris](https://github.com/dioptra-io/iris) API, built on top of [Authlib](https://github.com/lepture/authlib) and [httpx](https://github.com/encode/httpx). ## Installation ```bash pip install dioptra-iris-client ``` ## Usage ```python from iris_client import IrisClient, AsyncIrisClient base_url = "https://api.iris.dioptra.io" username = "user@example.org" password = "password" # Synchronous client with IrisClient(base_url, username, password) as client: measurements = client.get("/measurements/").json() # Asynchronous client async with AsyncIrisClient(base_url, username, password) as client: measurements = (await client.get("/measurements/")).json() # Helper function to fetch all the results from a paginated endpoint, # available for both clients: all_measurements = client.all("/measurements/") ``` ### Credential provider chain The Iris client looks for credentials in a way similar to the [AWS SDK](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/credentials.html): 1. If one of `base_url`, `username` or `password` is specified, these values will be used. 2. If none of the previous values are specified, and one of `IRIS_BASE_URL`, `IRIS_USERNAME` or `IRIS_PASSWORD` environment variables are present, these values will be used. 3. If none of the previous values are specified, and the file `~/.config/iris/credentials.json` exists, the fields `base_url`, `username` and `password` will be used.


نیازمندی

مقدار نام
>=1.0.1,<2.0.0 Authlib
>=0.23.0,<0.24.0 httpx


زبان مورد نیاز

مقدار نام
>=3.8,<4.0 Python


نحوه نصب


نصب پکیج whl dioptra-iris-client-0.4.5:

    pip install dioptra-iris-client-0.4.5.whl


نصب پکیج tar.gz dioptra-iris-client-0.4.5:

    pip install dioptra-iris-client-0.4.5.tar.gz