Skip to main content

# ipython-kusto - Run Microsoft Kusto queries in IPython notebooks

This extension borrows extensively from Catherine Devlin’s ipython-sql extension. https://github.com/catherinedevlin/ipython-sql

It provides two magics:

  • %kqlset - a line magic to set the default cluster and database

  • %kql/%%kql - a line or cell magic to execute Kusto Query Language queries and return the results as a Pandas dataframe. The dataframe will be assigned to a variable ‘kqlresult’ (can be overridden with –set argument)

If you run either of these followed by a ‘?’ you will get additional help.

When running a query, you may be redirected to a browser page to sign in if a token is needed.

See the example notebook in the examples/ directory for more details, or view it here with Binder:

[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/gramster/ipython-kusto/master?filepath=examples%2FStorms.ipynb)

0.0.9

Added missing dependencies to setup.py

0.0.8

Fix issue with parsing queries containing {}

0.0.7

Fix sample notebook issue. Remove redundant dependencies.

0.0.6

Removed the NEWS.md file; it wasn’t being bundled and caused install to not work. This is a quick fix.

0.0.5

Added a flag to inhibit variable substitution in case that is problematic in some query.

0.0.4

Better error reporting. Use –error to get the old raw error.

0.0.3

Updated URL to point to Github repo.

0.0.2

A typo crept in to 0.0.1 release; that has been fixed. Added a –quiet option to not display the dataframe.

0.01. Initial release

Metadata

Release files for ipython-kusto 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ipython-kusto 0.0.9
File Size Uploaded Provenance Actions
ipython-kusto-0.0.9.tar.gz 5.4 kB Without provenance Details for ipython-kusto-0.0.9.tar.gz

Release files / ipython-kusto-0.0.9.tar.gz

Download URL ipython-kusto-0.0.9.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
16b7eb12ed0ad6fde5abdbf41a2a234b4f7a8d9ac3959e2208f7884100c6543d
BLAKE2b-256 checksum
How to use checksums
a25de63479a1c809d09bf681857f2d822255d4e73b24ceb8a5a2cf846d4885fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

Security for ipython-kusto 0.0.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page