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.3.tar.gz
(10.6 kB
view details)
Built Distribution
File details
Details for the file yandex_query_client-0.1.3.tar.gz
.
File metadata
- Download URL: yandex_query_client-0.1.3.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 742f1d08da817353846ec92debda68f180be837eb624f9c833a2158f4b7b6c3c |
|
MD5 | 03a263a979e955edd4c823a05bf7bb9f |
|
BLAKE2b-256 | 02ff967db092788d2b5bbc53538c29bc801a12a2fa69390728cabe02de2d53c3 |
File details
Details for the file yandex_query_client-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: yandex_query_client-0.1.3-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.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3cfa18838d99a080940110cd931352d13e0fbe7e7e15d4ce1a6d474b28b8c357 |
|
MD5 | 08729690cbcdc2c773b8f0438cf9d3fe |
|
BLAKE2b-256 | 4ffbd17ac466d1260a1f88f399be7baa1d8974d2a45fc2d5d94b44dd341b003b |