Skip to main content

Kusto Ingest Client

Project description

from azure.kusto.data import KustoConnectionStringBuilder, DataFormat
from azure.kusto.ingest import QueuedIngestClient, IngestionProperties, FileDescriptor, BlobDescriptor

ingestion_props = IngestionProperties(database="{database_name}", table="{table_name}", data_format=DataFormat.CSV)
client = QueuedIngestClient(KustoConnectionStringBuilder.with_interactive_login("https://ingest-{cluster_name}.kusto.windows.net"))

file_descriptor = FileDescriptor("{filename}.csv", 15360)  # in this example, the raw (uncompressed) size of the data is 15KB (15360 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", 51200)  # in this example, the raw (uncompressed) size of the data is 50KB (52100 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 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

This version

6.0.4

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-6.0.4.tar.gz (19.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

azure_kusto_ingest-6.0.4-py3-none-any.whl (28.3 kB view details)

Uploaded Python 3

File details

Details for the file azure_kusto_ingest-6.0.4.tar.gz.

File metadata

  • Download URL: azure_kusto_ingest-6.0.4.tar.gz
  • Upload date:
  • Size: 19.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for azure_kusto_ingest-6.0.4.tar.gz
Algorithm Hash digest
SHA256 5cc3f547bc77496884af17ec0d3d874f5c32081393e5d846d8eb260afcbc29d5
MD5 70c3d2d73468c554ee3e1e26ad17d88c
BLAKE2b-256 06b0c2353e224bcb7bcfad0de679a72a5c9e2396b0242fa13b283d86646e3710

See more details on using hashes here.

Provenance

The following attestation bundles were made for azure_kusto_ingest-6.0.4.tar.gz:

Publisher: release.yml on Azure/azure-kusto-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file azure_kusto_ingest-6.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for azure_kusto_ingest-6.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 af70305fa83edc0534214bceb6ece722117d798e4ece0a87a80ad3337fb4e019
MD5 7ae5a5f8a194fa8f40fdf726bfcf54f9
BLAKE2b-256 4fe3aecf5bc1810c7738f9ce0d593dde6a39085d5fb6a3e8f2ff239b2c5eecc5

See more details on using hashes here.

Provenance

The following attestation bundles were made for azure_kusto_ingest-6.0.4-py3-none-any.whl:

Publisher: release.yml on Azure/azure-kusto-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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