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}")
Metadata
Release files for yandex-query-client 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| yandex_query_client-0.1.4.tar.gz | 10.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yandex_query_client-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.5 kB
Release files / yandex_query_client-0.1.4.tar.gz
| Download URL | yandex_query_client-0.1.4.tar.gz |
|---|---|
| Size | 10.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f72268690869c1a24421231c534f8ed747bf1da96f7b74f66a5790bd267d128f
|
|
BLAKE2b-256 checksum How to use checksums |
f39a9b237d191901fe9580dccf23fa278ff6728a973661b507f2847f22f511b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / yandex_query_client-0.1.4-py3-none-any.whl
| Download URL | yandex_query_client-0.1.4-py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b12b21cab0f3c088af21bcb281bd61ec76b518def4d740426552af0f47ddde7a
|
|
BLAKE2b-256 checksum How to use checksums |
b8f74ba729377c9fd414763170d5231daa2eba552c55401bbc119ac2cf95445f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|