skillfed

azure-kusto-data

Kusto Data Client

azure-kusto-data v6.0.4 20.4M downloads/30d#1,040 on PyPI204
Permissive license MIT Active released

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-data

uv

uv add azure-kusto-data

poetry

poetry add azure-kusto-data

Installing 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

License :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9

Tags

kusto query client pythonazure kusto data connectorkusto cluster queryingazure data analytics pythonkusto python db apiazure kusto async client
azure-integrationanalytics-clientasync-support

More Database packages