yandex-query-client-0.1.4


توضیحات

The Yandex Query official HTTP client
ویژگی مقدار
سیستم عامل OS Independent
نام فایل yandex-query-client-0.1.4
نام yandex-query-client
نسخه کتابخانه 0.1.4
نگهدارنده []
ایمیل نگهدارنده []
نویسنده -
ایمیل نویسنده cloud@support.yandex.ru
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/yandex-query-client/
مجوز -
## Installation Install pip package: ``` %pip install yandex-query-client --upgrade --quiet ``` ### Example: simple select ``` # IAM token to access YandexQuery service IAM_TOKEN="...." # Folder ID to work within PROJECT="my_folder_id" config = YQHttpClientConfig(IAM_TOKEN, PROJECT) client = YQHttpClient(config) # start new query query_id = client.create_query(query_text="select 777", name="my sample query") # wait query to succeed result_set_count = client.wait_query_to_succeed(query_id) # results with column names, types and values in rows results = client.get_query_all_result_sets(query_id, result_set_count=result_set_count) print(f"results={results}") ```


نیازمندی

مقدار نام
- pandas>=1.2.5
- python-dateutil>=2.8.2
- requests>=2.31.0
- urllib3>=1.26.5
xtr mypy;
xtr pytest>=7.4.4;
xtr responses>=0.23.1;
xtr ruff==0.3.3;
xtr types-python-dateutil;
xtr types-requests;


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

مقدار نام
>=3.8 Python


نحوه نصب


نصب پکیج whl yandex-query-client-0.1.4:

    pip install yandex-query-client-0.1.4.whl


نصب پکیج tar.gz yandex-query-client-0.1.4:

    pip install yandex-query-client-0.1.4.tar.gz