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.4.tar.gz
(10.6 kB
view details)
Built Distribution
File details
Details for the file yandex_query_client-0.1.4.tar.gz
.
File metadata
- Download URL: yandex_query_client-0.1.4.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f72268690869c1a24421231c534f8ed747bf1da96f7b74f66a5790bd267d128f |
|
MD5 | ab222e98891527d69dd229a1b90327e5 |
|
BLAKE2b-256 | f39a9b237d191901fe9580dccf23fa278ff6728a973661b507f2847f22f511b0 |
File details
Details for the file yandex_query_client-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: yandex_query_client-0.1.4-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b12b21cab0f3c088af21bcb281bd61ec76b518def4d740426552af0f47ddde7a |
|
MD5 | 0eaff142c9e041bc36ec92ca5c22d625 |
|
BLAKE2b-256 | b8f74ba729377c9fd414763170d5231daa2eba552c55401bbc119ac2cf95445f |