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

Uploaded Python 3

File details

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

File metadata

  • Download URL: azure_kusto_ingest-6.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 ebc1570de9f34b3ce075b332d4f1205631575f5a524c7bdc84f81e5f33157d1a
MD5 dae4ff27a766e264bab4f0db82182820
BLAKE2b-256 d533e4511ff217ef72ff4d286fcbc1633fc89c5b5b5c9eae447b21b4b1cbe2ff

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for azure_kusto_ingest-6.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cf21c41bbbcea49fc0fba3cb43013bec687a9b1a5113d20aa6c4c8aee2342119
MD5 8722f7ab4db9a372187de0817e24e9bc
BLAKE2b-256 b9253b205d02e11211c3c4b61e326b00a9c47117ca1f29e4e8161c563c21998c

See more details on using hashes here.

Provenance

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