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

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.3.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.3-py3-none-any.whl (28.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: azure_kusto_ingest-6.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 0a2af480da969d423457dabb036ebacf6e90621a7905a09482a7308f621dd95e
MD5 a888f4346966f042ae10a71737aa5445
BLAKE2b-256 1e3ac4e1c48be1b3f0973e311ddf6bad99fdb5cd207bfb5447ad4e44152ed07b

See more details on using hashes here.

Provenance

The following attestation bundles were made for azure_kusto_ingest-6.0.3.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.3-py3-none-any.whl.

File metadata

File hashes

Hashes for azure_kusto_ingest-6.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 db412f4f5c61f87513c4e3929246784c89d22ea8d22a1703818f55e000e07549
MD5 a1c6c7fd2e420feee84fc070041d2340
BLAKE2b-256 36a65c94900be0bd024fb304a4ab459fbff1e5ecd65b10af4548a13fe194ad23

See more details on using hashes here.

Provenance

The following attestation bundles were made for azure_kusto_ingest-6.0.3-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