Skip to main content

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}")

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yandex_query_client-0.1.4-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

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

Hashes for yandex_query_client-0.1.4.tar.gz
Algorithm Hash digest
SHA256 f72268690869c1a24421231c534f8ed747bf1da96f7b74f66a5790bd267d128f
MD5 ab222e98891527d69dd229a1b90327e5
BLAKE2b-256 f39a9b237d191901fe9580dccf23fa278ff6728a973661b507f2847f22f511b0

See more details on using hashes here.

File details

Details for the file yandex_query_client-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for yandex_query_client-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b12b21cab0f3c088af21bcb281bd61ec76b518def4d740426552af0f47ddde7a
MD5 0eaff142c9e041bc36ec92ca5c22d625
BLAKE2b-256 b8f74ba729377c9fd414763170d5231daa2eba552c55401bbc119ac2cf95445f

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page