azure-kusto-data 6.0.4
pip install azure-kusto-data
Released:
Kusto Data Client
Navigation
Verified details
These details have been verified by PyPIProject links
GitHub Statistics
Maintainers
π Avatar for asafmahlev-microsoft from gravatar.comasafmahlev-microsoft π Avatar for danieldror from gravatar.com
danieldror π Avatar for microsoft from gravatar.com
microsoft π Avatar for microsoftkusto from gravatar.com
microsoftkusto
Unverified details
These details have not been verified by PyPIMeta
-
License Expression: MIT
SPDX License Expression - Author: Microsoft Corporation
- Tags azure , kusto , data , analytics
- Requires: Python >=3.9
-
Provides-Extra:
aio,pandas
Classifiers
- License
- Programming Language
Project description
fromazure.kusto.dataimport KustoClient, KustoConnectionStringBuildercluster = "<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)# It is a good practice to re-use the KustoClient instance, as it maintains a pool of connections to the Kusto service.# This sample shows how to create a client and close it in the same scope, for demonstration purposes.with KustoClient(kcsb) as client: 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.
Async Client
Kusto now provides an asynchronous client for queries.
To use the client, first install the package with the βaioβ extra:
pipinstallazure-kusto-data[aio]
The async client uses exact same interface as the regular client, except that it lives in the azure.kusto.data.aio namespace, and it returns Futures you will need to await its
fromazure.kusto.dataimport KustoConnectionStringBuilderfromazure.kusto.data.aioimport KustoClientcluster = "<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>"async defsample(): kcsb = KustoConnectionStringBuilder.with_aad_application_key_authentication(cluster, client_id, client_secret, authority_id) async with KustoClient(kcsb) as client: db = "Samples" query = "StormEvents | take 10" response = await client.execute(db, query) for row in response.primary_results[0]: print(row[0], " ", row["EventType"])
Links
Project details
Verified details
These details have been verified by PyPIProject links
GitHub Statistics
Maintainers
π Avatar for asafmahlev-microsoft from gravatar.comasafmahlev-microsoft π Avatar for danieldror from gravatar.com
danieldror π Avatar for microsoft from gravatar.com
microsoft π Avatar for microsoftkusto from gravatar.com
microsoftkusto
Unverified details
These details have not been verified by PyPIMeta
-
License Expression: MIT
SPDX License Expression - Author: Microsoft Corporation
- Tags azure , kusto , data , analytics
- Requires: Python >=3.9
-
Provides-Extra:
aio,pandas
Classifiers
- License
- Programming Language
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-6.0.4.tar.gz.
File metadata
- Download URL: azure_kusto_data-6.0.4.tar.gz
- Upload date:
- Size: 39.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
409e2e14aec6dfbedc9d5bb03e1440dabbc252b10fd03437bc523f29dbda4710
|
|
| MD5 |
b4cd52c85166afa0a4c2d6ddcaf1dc8a
|
|
| BLAKE2b-256 |
778bfea5daa608c7995ec662473ab76306965cc01c68dd3a958e779dd270d523
|
Provenance
The following attestation bundles were made for azure_kusto_data-6.0.4.tar.gz:
Publisher:
release.yml on Azure/azure-kusto-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
azure_kusto_data-6.0.4.tar.gz -
Subject digest:
409e2e14aec6dfbedc9d5bb03e1440dabbc252b10fd03437bc523f29dbda4710 - Sigstore transparency entry: 1449660746
- Sigstore integration time:
-
Permalink:
Azure/azure-kusto-python@5a8a712fa57ec3abdaef0ffb420cd95b57db4952 -
Branch / Tag:
refs/tags/v6.0.4 - Owner: https://github.com/Azure
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5a8a712fa57ec3abdaef0ffb420cd95b57db4952 -
Trigger Event:
push
-
Statement type:
File details
Details for the file azure_kusto_data-6.0.4-py3-none-any.whl.
File metadata
- Download URL: azure_kusto_data-6.0.4-py3-none-any.whl
- Upload date:
- Size: 51.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7dad0628ccd47e5dd0692b41ebaaa878db28f9711435063d7c51cec7e3857307
|
|
| MD5 |
9daabb99c1b2162acf1c39be25bc4c6a
|
|
| BLAKE2b-256 |
a804096484b34efd3738938db75b38e0055675453b1e0d47a11c27c1446a3b10
|
Provenance
The following attestation bundles were made for azure_kusto_data-6.0.4-py3-none-any.whl:
Publisher:
release.yml on Azure/azure-kusto-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
azure_kusto_data-6.0.4-py3-none-any.whl -
Subject digest:
7dad0628ccd47e5dd0692b41ebaaa878db28f9711435063d7c51cec7e3857307 - Sigstore transparency entry: 1449660761
- Sigstore integration time:
-
Permalink:
Azure/azure-kusto-python@5a8a712fa57ec3abdaef0ffb420cd95b57db4952 -
Branch / Tag:
refs/tags/v6.0.4 - Owner: https://github.com/Azure
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5a8a712fa57ec3abdaef0ffb420cd95b57db4952 -
Trigger Event:
push
-
Statement type:
