Skip to main content

Kusto Data Client

Project description

from azure.kusto.data import KustoClient, KustoConnectionStringBuilder

cluster = "<insert here your cluster name>"
client_id = "<insert here your AAD application id>"
client_secret = "<insert here your AAD application key>"
authority_id = "<insert here your AAD tenant id>"

kcsb = KustoConnectionStringBuilder.with_aad_application_key_authentication(cluster, client_id, client_secret, authority_id)
client = KustoClient(kcsb)

db = "Samples"
query = "StormEvents | take 10"

response = client.execute(db, query)
for row in response.primary_results[0]:
    print(row[0], " ", row["EventType"])

Kusto Python Client Library provides the capability to query Kusto clusters using Python. It is Python 3.x compatible and supports all data types through familiar Python DB API interface.

It’s possible to use the library, for instance, from Jupyter Notebooks. which are attached to Spark clusters, including, but not exclusively, Azure Databricks. instances.

Project details


Release history Release notifications | RSS feed

This version

2.3.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

azure-kusto-data-2.3.1.tar.gz (25.2 kB view details)

Uploaded Source

Built Distribution

azure_kusto_data-2.3.1-py2.py3-none-any.whl (31.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file azure-kusto-data-2.3.1.tar.gz.

File metadata

  • Download URL: azure-kusto-data-2.3.1.tar.gz
  • Upload date:
  • Size: 25.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.6.14

File hashes

Hashes for azure-kusto-data-2.3.1.tar.gz
Algorithm Hash digest
SHA256 0ec48b6715abc85e82e4f30aa08b9d7e78a190a4d4572ed7794f7a3dca5847a7
MD5 96b567fb339af17e5fc26afca62fe3a8
BLAKE2b-256 2b06c8116438fc41a158d0998c79b7e61fce7bbf226e1e606d4470df29a6c206

See more details on using hashes here.

File details

Details for the file azure_kusto_data-2.3.1-py2.py3-none-any.whl.

File metadata

  • Download URL: azure_kusto_data-2.3.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 31.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.6.14

File hashes

Hashes for azure_kusto_data-2.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3c979796ff94ff8aad4bf5c67a79f84eb191654007777ffafd41afd64950656b
MD5 3d71c1c1c22aa4817b8269ebb7a75dfb
BLAKE2b-256 8dd1d84a260d4cbe51f78205a4a120876f4882b81114d3ee1dccc289063ea1d8

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