Query and Ingestion Client for Azure using Python
Project description
Install the package using git
pip install kustopy
QueryClient
Import the query client from kustopy
from kustopy import KustoPyClient as kpc
Then set up the client
client_id = dbutils.secrets.get(scope="ce5", key="adxClientId")
client_secret = dbutils.secrets.get(scope="ce5", key="adxClientSecret")
tenant_id = dbutils.secrets.get(scope="ce5", key="adxTenantId")
query_client = kpc.QueryClient(cluster='https://sample.kusto.windows.net/',
database='confidential-satanalytics-sample',
client_id=client_id,
client_secret=client_secret,
tenant_id=tenant_id,
truncation=False)
We can now get a dataframe of all tables in the database
query_client.get_table_names()
and use specific queries to get data from a table to a dataframe
query_client.query_to_df('SampleTable | take 100 | where fruit=="apple"')
IngestionClient
following...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kustopy-1.0.19.tar.gz
(3.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kustopy-1.0.19.tar.gz.
File metadata
- Download URL: kustopy-1.0.19.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a25615750c02506d3d0c5d62ab38c3f2cdd34502860f1a9c1faa2e1c3961df3d
|
|
| MD5 |
edfdbe879a4957ef825697c41d17c3b3
|
|
| BLAKE2b-256 |
995972c84148c5609d468bd38cc0883f41c4294dfd215f5eb0dee58df556c17e
|
File details
Details for the file kustopy-1.0.19-py3-none-any.whl.
File metadata
- Download URL: kustopy-1.0.19-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c22a4a96c6ba060f813b250319ef301d4519a5344531557f7b6a29029f50f9e1
|
|
| MD5 |
7807eec7fcc8212b0bd09f9a677f9dad
|
|
| BLAKE2b-256 |
1875ba93012fbc745f519c0fb4d7824a0848108d0deb7d27039e4246d8c49f4b
|