From df48ca28de8ded42afc7e2b1ccc40258b66a8dc8 Mon Sep 17 00:00:00 2001 From: Asaf Mahlev Date: Wed, 8 Jan 2025 09:07:14 +0200 Subject: [PATCH 1/2] Explicitly declare public exports via __all__ --- azure-kusto-data/azure/kusto/data/__init__.py | 7 +++++ .../azure/kusto/ingest/__init__.py | 29 ++++++++++++++++++- 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/azure-kusto-data/azure/kusto/data/__init__.py b/azure-kusto-data/azure/kusto/data/__init__.py index 4fc5400d..ec1313a0 100644 --- a/azure-kusto-data/azure/kusto/data/__init__.py +++ b/azure-kusto-data/azure/kusto/data/__init__.py @@ -6,3 +6,10 @@ from .client_request_properties import ClientRequestProperties from .kcsb import KustoConnectionStringBuilder from .data_format import DataFormat + +__all__ = [ + "KustoClient", + "ClientRequestProperties", + "KustoConnectionStringBuilder", + "DataFormat", +] diff --git a/azure-kusto-ingest/azure/kusto/ingest/__init__.py b/azure-kusto-ingest/azure/kusto/ingest/__init__.py index 883f8055..a80ac074 100644 --- a/azure-kusto-ingest/azure/kusto/ingest/__init__.py +++ b/azure-kusto-ingest/azure/kusto/ingest/__init__.py @@ -3,7 +3,7 @@ from ._version import VERSION as __version__ from .base_ingest_client import IngestionResult, IngestionStatus from .descriptors import BlobDescriptor, FileDescriptor, StreamDescriptor -from .exceptions import KustoMissingMappingError +from .exceptions import KustoMissingMappingError, KustoMappingError, KustoQueueError, KustoDuplicateMappingError, KustoInvalidEndpointError, KustoClientError from .ingest_client import QueuedIngestClient from .ingestion_properties import ( ValidationPolicy, @@ -19,3 +19,30 @@ from .managed_streaming_ingest_client import ManagedStreamingIngestClient from .streaming_ingest_client import KustoStreamingIngestClient from .base_ingest_client import BaseIngestClient + +__all__ = [ + "IngestionResult", + "IngestionStatus", + "BlobDescriptor", + "FileDescriptor", + "StreamDescriptor", + "KustoMissingMappingError", + "KustoMappingError", + "KustoQueueError", + "KustoDuplicateMappingError", + "KustoInvalidEndpointError", + "KustoClientError", + "QueuedIngestClient", + "ValidationPolicy", + "ValidationImplications", + "ValidationOptions", + "ReportLevel", + "ReportMethod", + "IngestionProperties", + "IngestionMappingKind", + "ColumnMapping", + "TransformationMethod", + "ManagedStreamingIngestClient", + "KustoStreamingIngestClient", + "BaseIngestClient", +] From 05571f370dab572bb24b4ffde1cf92b8834b826c Mon Sep 17 00:00:00 2001 From: Asaf Mahlev Date: Wed, 8 Jan 2025 09:34:54 +0200 Subject: [PATCH 2/2] Bump --- CHANGELOG.md | 3 +++ azure-kusto-data/azure/kusto/data/_version.py | 2 +- azure-kusto-ingest/azure/kusto/ingest/_version.py | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 97a17cd3..c8212892 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [4.6.3] - 2025-01-08 +- Explicitly export members in `__init__.py` via `__all__` + ## [4.6.2] - 2025-01-07 ### Fixed diff --git a/azure-kusto-data/azure/kusto/data/_version.py b/azure-kusto-data/azure/kusto/data/_version.py index 224350ad..a24901bf 100644 --- a/azure-kusto-data/azure/kusto/data/_version.py +++ b/azure-kusto-data/azure/kusto/data/_version.py @@ -1,3 +1,3 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License -VERSION = "4.6.2" +VERSION = "4.6.3" diff --git a/azure-kusto-ingest/azure/kusto/ingest/_version.py b/azure-kusto-ingest/azure/kusto/ingest/_version.py index 224350ad..a24901bf 100644 --- a/azure-kusto-ingest/azure/kusto/ingest/_version.py +++ b/azure-kusto-ingest/azure/kusto/ingest/_version.py @@ -1,3 +1,3 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License -VERSION = "4.6.2" +VERSION = "4.6.3"