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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: yandex_query_client-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 313d812e9182dea9c09f3508e60744299d00135c8c2933cff65abcedb0f6d59f
MD5 dde6495658bea45fdb88d4d27b525f4c
BLAKE2b-256 f3ee1c5bede402ea2753f282b58192e38de4f29426374bbe43be5a42a2e040da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yandex_query_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ba73f829a94d1240c9a4abbf79bf11871e7f1776d2d87c227180dfb296462eea
MD5 e24e500d0549dba6996622ce93b90f01
BLAKE2b-256 5138312106a6881801ed8aaed5a8f5fdfda0fc827b2306ff7eadf026bf964f4f

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