azure-kusto-ingest


Nameazure-kusto-ingest JSON
Version 4.4.1 PyPI version JSON
download
home_pagehttps://github.com/Azure/azure-kusto-python
SummaryKusto Ingest Client
upload_time2024-05-06 13:23:36
maintainerNone
docs_urlNone
authorMicrosoft Corporation
requires_pythonNone
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Microsoft Azure Kusto Ingest Library for Python
===============================================

.. code-block:: python

    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 <http://jupyter.org/>`_ which are attached to Spark clusters,
including, but not exclusively, `Azure Databricks <https://azure.microsoft.com/en-us/services/databricks>`_ instances.

* `How to install the package <https://github.com/Azure/azure-kusto-python#install>`_.

* `Data ingest sample <https://github.com/Azure/azure-kusto-python/blob/master/azure-kusto-ingest/tests/sample.py>`_.

* `GitHub Repository <https://github.com/Azure/azure-kusto-python/tree/master/azure-kusto-data>`_.



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Azure/azure-kusto-python",
    "name": "azure-kusto-ingest",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "Microsoft Corporation",
    "author_email": "kustalk@microsoft.com",
    "download_url": "https://files.pythonhosted.org/packages/69/72/e1b1b90b6d03ace5a9d1e81bef473f554f141572b7bd0593a8d82a041467/azure-kusto-ingest-4.4.1.tar.gz",
    "platform": null,
    "description": "Microsoft Azure Kusto Ingest Library for Python\n===============================================\n\n.. code-block:: python\n\n    from azure.kusto.data import KustoConnectionStringBuilder, DataFormat\n    from azure.kusto.ingest import QueuedIngestClient, IngestionProperties, FileDescriptor, BlobDescriptor\n\n    ingestion_props = IngestionProperties(database=\"{database_name}\", table=\"{table_name}\", data_format=DataFormat.CSV)\n    client = QueuedIngestClient(KustoConnectionStringBuilder.with_interactive_login(\"https://ingest-{cluster_name}.kusto.windows.net\"))\n\n    file_descriptor = FileDescriptor(\"{filename}.csv\", 15360)  # in this example, the raw (uncompressed) size of the data is 15KB (15360 bytes)\n    client.ingest_from_file(file_descriptor, ingestion_properties=ingestion_props)\n    client.ingest_from_file(\"{filename}.csv\", ingestion_properties=ingestion_props)\n\n    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)\n    client.ingest_from_blob(blob_descriptor, ingestion_properties=ingestion_props)\n\n\nOverview\n--------\n\n*Kusto Python Ingest Client* Library provides the capability to ingest data into Kusto clusters using Python.\nIt is Python 3.x compatible and supports data types through familiar Python DB API interface.\n\nIt's possible to use the library, for instance, from `Jupyter Notebooks <http://jupyter.org/>`_ which are attached to Spark clusters,\nincluding, but not exclusively, `Azure Databricks <https://azure.microsoft.com/en-us/services/databricks>`_ instances.\n\n* `How to install the package <https://github.com/Azure/azure-kusto-python#install>`_.\n\n* `Data ingest sample <https://github.com/Azure/azure-kusto-python/blob/master/azure-kusto-ingest/tests/sample.py>`_.\n\n* `GitHub Repository <https://github.com/Azure/azure-kusto-python/tree/master/azure-kusto-data>`_.\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Kusto Ingest Client",
    "version": "4.4.1",
    "project_urls": {
        "Homepage": "https://github.com/Azure/azure-kusto-python"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "22599183e58a27a094f90cdc93417b3d7e9b72e9188abd9bedb42789e859bb7b",
                "md5": "49c75b02b44261782b17728bd07f70d7",
                "sha256": "6d87afa6184fb89c5e1f0149cc00326c4c6858f8c4290f5839ba9bbe045fe46f"
            },
            "downloads": -1,
            "filename": "azure_kusto_ingest-4.4.1-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "49c75b02b44261782b17728bd07f70d7",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 28369,
            "upload_time": "2024-05-06T13:23:33",
            "upload_time_iso_8601": "2024-05-06T13:23:33.576658Z",
            "url": "https://files.pythonhosted.org/packages/22/59/9183e58a27a094f90cdc93417b3d7e9b72e9188abd9bedb42789e859bb7b/azure_kusto_ingest-4.4.1-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6972e1b1b90b6d03ace5a9d1e81bef473f554f141572b7bd0593a8d82a041467",
                "md5": "30a8ca856fd519a3ef89582955bd4cad",
                "sha256": "a920888c92af8a6e2839c684c786a1bbc64370bcc2ba51074710fc0a14d1b2de"
            },
            "downloads": -1,
            "filename": "azure-kusto-ingest-4.4.1.tar.gz",
            "has_sig": false,
            "md5_digest": "30a8ca856fd519a3ef89582955bd4cad",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 20779,
            "upload_time": "2024-05-06T13:23:36",
            "upload_time_iso_8601": "2024-05-06T13:23:36.358988Z",
            "url": "https://files.pythonhosted.org/packages/69/72/e1b1b90b6d03ace5a9d1e81bef473f554f141572b7bd0593a8d82a041467/azure-kusto-ingest-4.4.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-06 13:23:36",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Azure",
    "github_project": "azure-kusto-python",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "azure-kusto-ingest"
}
        
Elapsed time: 0.32262s