azure-kusto-data
Kusto Data Client
What it is and what it does
Azure Kusto Data is the official Python client library for querying Microsoft Azure Kusto clusters, a service designed for large-scale data analytics. It provides a familiar DB API interface that works with Python 3.9 and later, supporting all Kusto data types and enabling queries from Jupyter notebooks, Azure Databricks, and other Python environments.
The library offers both synchronous and asynchronous query clients. The sync client uses a context manager pattern to maintain a connection pool for efficiency, while the async variant (installed via the "aio" extra) returns awaitables for non-blocking queries. Authentication is handled through Azure Active Directory using application credentials or other AAD methods. The package depends on azure-identity, azure-core, requests, msal, python-dateutil, and ijson for parsing.
Use it for:
- Execute KQL queries against Kusto clusters from Python data analysis scripts or notebooks.
- Build ETL pipelines that extract data from Kusto for processing with pandas or other analytics libraries.
- Integrate Kusto queries into async Python applications for non-blocking data retrieval.
- Automate data exploration and reporting workflows in Azure Databricks or Jupyter environments.
- Develop monitoring or alerting systems that query Kusto for operational metrics and logs.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Query and interact with Microsoft Azure Kusto clusters from Python using a DB API-compatible interface, with support for both synchronous and asynchronous clients.
Yes. This is the official, actively maintained client for Kusto queries in Python. It has low install friction, no known vulnerabilities, permissive licensing, and is widely used (top 5000 on PyPI). Install it if you need to query Kusto clusters from Python; skip it only if you have no Kusto infrastructure or prefer a different query interface.
Install
azure-kusto-data on PyPI
pip
pip install azure-kusto-datauv
uv add azure-kusto-datapoetry
poetry add azure-kusto-dataInstalling azure-kusto-data
Before you install
Low friction installation with a pure-Python wheel. Actively maintained as of 2026-05-06, with recent commits and no known vulnerabilities. Requires Python 3.9 or later.
License in practice
MIT license permits commercial and private use with minimal restrictions, making it suitable for most enterprise and open-source projects.
Quickstart
pip install azure-kusto-data
from azure.kusto.data import KustoClient, KustoConnectionStringBuilder
kcsb = KustoConnectionStringBuilder.with_aad_application_key_authentication(
cluster, client_id, client_secret, authority_id
)
with KustoClient(kcsb) as client:
response = client.execute("Samples", "StormEvents | take 10")
for row in response.primary_results[0]:
print(row[0], row["EventType"])
Requires Azure credentials (client ID, secret, authority ID) and network access to a Kusto cluster endpoint.
Verify before relying
- Whether the async client requires additional system dependencies beyond the base package.
- Performance characteristics when handling large result sets or long-running queries.
- Connection pooling behavior and resource cleanup guarantees across different Python versions.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — python-dateutil, requests, azure-identity, msal, ijson, azure-core |
| Maintenance | actively maintained — 100 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 20,373,143/month — #1,040 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: azure_kusto_data-6.0.4-py3-none-any.whl
Keywords: azure, kusto, data, analytics
Tags
More Database packages
psycopg2-binary is a PostgreSQL database…
copyleft · top 1,000 on PyPI
redisPython client library for connecting to and…
permissive · top 1,000 on PyPI
ydbYDB Python SDK is the official client library…
permissive · top 1,000 on PyPI
snowflake-connector-pythonConnects Python applications to Snowflake data…
permissive · top 1,000 on PyPI
sqlparsesqlparse tokenizes SQL text into a tree of…
permissive · top 1,000 on PyPI
dbt-adaptersProvides base adapter protocols and shared…
permissive · top 1,000 on PyPI
azure-kusto-ingestIngest data into Azure Kusto clusters from…
permissive · top 5,000 on PyPI
LucoPyLucoPy is a Python SDK for interacting with the…
permissive · top 15,000 on PyPI
azure-mgmt-kustoManages Azure Kusto clusters, databases, and…
permissive · top 15,000 on PyPI
azure-monitor-queryExecutes read-only queries against Azure…
permissive · top 5,000 on PyPI
azure-cosmosPython client library for Azure Cosmos DB SQL…
permissive · top 1,000 on PyPI
azure-synapse-sparkClient library for interacting with Apache…
permissive · top 5,000 on PyPI
msgraph-sdkPython client library for calling Microsoft…
permissive · top 5,000 on PyPI
azure-mgmt-streamanalyticsProvides Python client library for managing…
permissive · top 15,000 on PyPI
libsql-clientPython SDK for connecting to and querying…
permissive · top 15,000 on PyPI
msgraph-beta-sdkProvides async-first Python bindings to the…
unclear · top 15,000 on PyPI