Kusto Data Client
Project description
from azure.kusto.data.request 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 tenet 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 2.x/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
azure-kusto-data-0.0.22.tar.gz
(12.4 kB
view details)
Built Distribution
File details
Details for the file azure-kusto-data-0.0.22.tar.gz
.
File metadata
- Download URL: azure-kusto-data-0.0.22.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d56b3b55508f791223cdb8a93a633e6f5ab0dc3ccf66fe884ad527d92e16338 |
|
MD5 | 4ef56bf85546921438ee6dcc60620d85 |
|
BLAKE2b-256 | b089146855bdbbc93a03c17d5eb59ae6db30a022716db5cf38808a2feea94f35 |
File details
Details for the file azure_kusto_data-0.0.22-py2.py3-none-any.whl
.
File metadata
- Download URL: azure_kusto_data-0.0.22-py2.py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed8d6ab78c90c58a2caa0a3fe863a2a7911a79501489e2e232dd4e86bf7772ff |
|
MD5 | a5059e0a4f401b0d1e0b8176f7a4834a |
|
BLAKE2b-256 | b487f79f3c7dda7647199547ba269b9f5b8ffe34573cb2b72c041a2851afc258 |