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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file azure-kusto-data-2.2.0.tar.gz.
File metadata
- Download URL: azure-kusto-data-2.2.0.tar.gz
- Upload date:
- Size: 24.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.6.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c4366abbd34b497ce8727b52d6907437c143a1ddd40c5980ee72205885ab03c
|
|
| MD5 |
448c4852e737a611458908ee79033326
|
|
| BLAKE2b-256 |
8501709d1d021eb5114dd55edb41566f805fd393778bbffa755afd52be60007d
|
File details
Details for the file azure_kusto_data-2.2.0-py2.py3-none-any.whl.
File metadata
- Download URL: azure_kusto_data-2.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 30.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.6.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0d2e1e6210f7d0cb840f7ee0f4f4ea987fd370672fc843ee4c41b99d34937eb
|
|
| MD5 |
76ac57400019e276e03d5c23164de023
|
|
| BLAKE2b-256 |
fadc0daee7124483586fd698629b77443f0d2f910e0135e31d788390d2dc3609
|