The Yandex Query official HTTP client
Project description
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}")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
yandex_query_client-0.1.1.tar.gz
(10.6 kB
view details)
Built Distribution
File details
Details for the file yandex_query_client-0.1.1.tar.gz
.
File metadata
- Download URL: yandex_query_client-0.1.1.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89f598365847576a4190f4e410a6977a98a85640c1df3d78ba09d9e6e1f3c823 |
|
MD5 | 8418fa48da9295a7f02ffe0cdb3289b0 |
|
BLAKE2b-256 | b4d9b1a2163a845d08d9c2b33d0c8ff400e0f5e418b08248c784b57cdb96e406 |
File details
Details for the file yandex_query_client-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: yandex_query_client-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 967b5e58f56affd991975922f42bc36cfa9efec789a7ec14da68956ca99ac102 |
|
MD5 | 67a3f10e58cd6984c914267358321062 |
|
BLAKE2b-256 | 86475fa3559ec3a18f551e36fc29f377d1e5d9ec236cf7f56a2f072813dcf8ca |