Kusto Ingest Client
Project description
from azure.kusto.data.request import KustoConnectionStringBuilder
from azure.kusto.ingest import KustoIngestClient, IngestionProperties, FileDescriptor, BlobDescriptor, DataFormat
ingestion_props = IngestionProperties(database="{database_name}", table="{table_name}", dataFormat=DataFormat.csv)
client = KustoIngestClient("https://ingest-{cluster_name}.kusto.windows.net")
file_descriptor = FileDescriptor("{filename}.csv", 3333) # 3333 is the raw size of the data in bytes.
client.ingest_from_file(file_descriptor, ingestion_properties=ingestion_props)
client.ingest_from_file("{filename}.csv", ingestion_properties=ingestion_props)
blob_descriptor = BlobDescriptor("https://{path_to_blob}.csv.gz?sas", 10) # 10 is the raw size of the data in bytes.
client.ingest_from_blob(blob_descriptor, ingestion_properties=ingestion_props)
Overview
Kusto Python Ingest Client Library provides the capability to ingest data into Kusto clusters using Python. It is Python 2.x/3.x compatible and supports data types through familiar Python DB API interface.
It’s possible to use the library, for instance, from Jupyter Notebooks which are attached to Spark clusters, including, but not exclusively, Azure Databricks instances.
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
azure-kusto-ingest-0.0.13.tar.gz
(10.6 kB
view details)
Built Distribution
File details
Details for the file azure-kusto-ingest-0.0.13.tar.gz
.
File metadata
- Download URL: azure-kusto-ingest-0.0.13.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32f1438a88e5a4decfaf394805b4e1061a323b8174f0f9b79ea0762914fc4069 |
|
MD5 | fe63c523f474e511ada84a53e3b5fb71 |
|
BLAKE2b-256 | 7143a6465a67bde2bb20a804e533912e9632b24d96f5860bbc8c0e5af9235b93 |
File details
Details for the file azure_kusto_ingest-0.0.13-py2.py3-none-any.whl
.
File metadata
- Download URL: azure_kusto_ingest-0.0.13-py2.py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67d3d11525fb6fec481dd8f76e278f73aec4aae2c74df23403c6e7d25db2bf9e |
|
MD5 | 79f914a42d7f5f2f2ad5c444aed7fa8a |
|
BLAKE2b-256 | 6c96eadb751a6bc0faa120a6eea3c87649511ea524f4070e29dd7c6fd73ec989 |