Metadata-Version: 2.1
Name: kusto-tool
Version: 0.3.0
Summary: A high-level API for querying Kusto.
Author-email: Alex Kyllo <alex.kyllo@gmail.com>
Description-Content-Type: text/markdown
Classifier: License :: OSI Approved :: MIT License
Requires-Dist: azure-kusto-data
Requires-Dist: loguru
Requires-Dist: Jinja2
Requires-Dist: pandas
Requires-Dist: azure-cli ; extra == "azure-cli"
Requires-Dist: black ; extra == "dev"
Requires-Dist: pylint ; extra == "dev"
Requires-Dist: furo ; extra == "doc"
Requires-Dist: sphinx ; extra == "doc"
Requires-Dist: sphinx-autobuild ; extra == "doc"
Requires-Dist: sphinx_rtd_theme ; extra == "doc"
Requires-Dist: pytest ; extra == "test"
Requires-Dist: nox ; extra == "test"
Requires-Dist: coverage ; extra == "test"
Requires-Dist: pytest-cov ; extra == "test"
Requires-Dist: pytest-mock ; extra == "test"
Project-URL: Home, https://github.com/alexkyllo/kusto-tool
Provides-Extra: azure-cli
Provides-Extra: dev
Provides-Extra: doc
Provides-Extra: test

![Lifecycle:Experimental](https://img.shields.io/badge/Lifecycle-Experimental-339999)

# kusto-tool

A high-level Python library and CLI to make it easier to use Azure Data Explorer
(aka Kusto), especially for data scientists.

Experimental, work-in-progress, unstable API.

[Documentation](https://kusto-tool.readthedocs.io/en/latest/overview.html)

## TODO

### Database API

#### Table management 

- [x] .set-or-append table
- [x] .set-or-replace table
- [x] .drop table
- [ ] .append table
- [ ] .create table
- [ ] .create-merge table
 
#### Function management

- [ ] .create-or-alter function
- [ ] .drop function

#### Query limit settings

- [ ] set notruncation etc.

#### Policy management

- [ ] retention policy
- [ ] sharding policy

#### Access management

- [ ] .show [table|database] principals
- [ ] .add [table|database] [users|admins]

### Query expression API

- [x] project
- [x] where
- [x] distinct
- [x] summarize
- [x] join
- [x] parenthesize or/and expressions
- [x] extend
- [x] order by, sort
- [x] asc, desc
- [x] evaluate
- [x] take, limit
- [x] mv-expand
- [x] Inspect columns from table by querying
- [x] sample
- [x] sample-distinct
- [ ] mv-apply
- [ ] datatable
- [ ] facet
- [ ] find
- [ ] fork
- [ ] getschema
- [ ] invoke
- [ ] lookup
- [ ] parse
- [ ] partition
- [ ] pivot
- [ ] range
- [ ] search
- [ ] serialize
- [ ] top, top-hitters
- [ ] Kusto prefix function translator class
- [ ] special types (datetime, timespan, dynamic)
- [ ] nice error messages when column not found in table etc.

### Agg functions

- [ ] sumif
- [ ] countif
- [ ] dcountif
- [ ] binary_all_and
- [ ] binary_all_or
- [ ] binary_all_xor
- [ ] make_bag / make_set / make_list
- [ ] arg_max, arg_min, take_any, take_anyif
- [ ] avgif
- [ ] hll, hll_merge
- [ ] max, maxif, min, minif
- [ ] percentiles, percentiles_array, percentilesw
- [ ] stdev, stdevif
- [ ] tdigest, tdigest_merge
- [ ] variance, variancep, varianceif

### Other functions and operators

- [x] [start|end]of[day|week|month|year]
- [x] between
- [x] typecasting: real(), long(), datetime() etc.
- [x] math functions: log, sin, cos etc.
- [ ] string functions: strlen etc.
- [ ] null
- [ ] date functions: getyear, getmonth etc.
- [ ] case / iff
- [ ] hash
- [ ] welch_test
- [ ] array_ functions
