Skip to main content

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.2.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file yandex_query_client-0.1.2.tar.gz.

File metadata

  • Download URL: yandex_query_client-0.1.2.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

Hashes for yandex_query_client-0.1.2.tar.gz
Algorithm Hash digest
SHA256 040a898de54d7f60712ba201c085d5df735fc4bd3075a7574975d098486594cc
MD5 adcabada2689d270c35f85919643f380
BLAKE2b-256 c19029121a63a425257d7d096eab38cc2dc926351b45a7383a18630bf607a8d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yandex_query_client-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 272f851b7994c750218f1a0c9b1cd9eb066d1a5d477db0b3cb0603c664cd3f80
MD5 847905d8c0b6663ef39c9d1bf58c6a1f
BLAKE2b-256 89553d7f9564112958000ddfa018fbe0741d38653caade1574faa12a118f3016

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page