Skip to main content

Microsoft Kusto access via IPython

Project description

# 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.

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ipython-kusto-0.0.6.tar.gz (5.1 kB view details)

Uploaded Source

File details

Details for the file ipython-kusto-0.0.6.tar.gz.

File metadata

  • Download URL: ipython-kusto-0.0.6.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for ipython-kusto-0.0.6.tar.gz
Algorithm Hash digest
SHA256 763f95aa1e08537cc269a780692a4a57d172a2c5bfb1dd7601b0258370535a7c
MD5 cc5037a4b69c15b6438d278ab0518735
BLAKE2b-256 602126c7a47b758308cca4837daf9776d89a020616efb9ed09a4ff9bbbedfc1f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page