From 5afd04be6023f2636c8b7a6848adf78e6a262866 Mon Sep 17 00:00:00 2001 From: Hardik Kaurani Date: Thu, 22 Oct 2026 15:38:27 +0530 Subject: [PATCH] fix(http-httpx): export HttpxRequestAdapter and KiotaClientFactory from kiota_http package --- packages/http/httpx/README.md | 2 +- packages/http/httpx/kiota_http/__init__.py | 8 ++++++++ packages/http/httpx/tests/test_typing.py | 7 +++++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/packages/http/httpx/README.md b/packages/http/httpx/README.md index 7d80b224..f0df8d39 100644 --- a/packages/http/httpx/README.md +++ b/packages/http/httpx/README.md @@ -5,7 +5,7 @@ The Microsoft Kiota HTTP Library is a python HTTP implementation with HTTPX library. -A [Kiota](https://github.com/microsoft/kiota) generated project will need a reference to a http package to to make HTTP requests to an API endpoint. +A [Kiota](https://github.com/microsoft/kiota) generated project will need a reference to a http package to make HTTP requests to an API endpoint. Read more about Kiota [here](https://github.com/microsoft/kiota/blob/main/README.md). diff --git a/packages/http/httpx/kiota_http/__init__.py b/packages/http/httpx/kiota_http/__init__.py index 7ea9d042..703140a0 100644 --- a/packages/http/httpx/kiota_http/__init__.py +++ b/packages/http/httpx/kiota_http/__init__.py @@ -2,5 +2,13 @@ Kiota http request adapter implementation for httpx library """ from ._version import VERSION +from .httpx_request_adapter import HttpxRequestAdapter +from .kiota_client_factory import KiotaClientFactory __version__ = VERSION + +__all__ = [ + "__version__", + "HttpxRequestAdapter", + "KiotaClientFactory", +] diff --git a/packages/http/httpx/tests/test_typing.py b/packages/http/httpx/tests/test_typing.py index 70319f46..3324ef61 100644 --- a/packages/http/httpx/tests/test_typing.py +++ b/packages/http/httpx/tests/test_typing.py @@ -13,3 +13,10 @@ def test_httpx_request_adapter_is_a_request_adapter_of_httpx_request(tmp_path): ) stdout, _, exit_status = api.run(["--follow-imports=silent", str(snippet)]) assert exit_status == 0, stdout + + +def test_package_exports(): + import kiota_http + assert hasattr(kiota_http, "HttpxRequestAdapter") + assert hasattr(kiota_http, "KiotaClientFactory") + assert hasattr(kiota_http, "__version__")