Registry / http-networking / microsoft-kiota-http

microsoft-kiota-http

JSON →
library1.12.0pypypi✓ verified 25d ago

microsoft-kiota-http provides the core abstractions and implementations for making HTTP requests in Kiota-generated Python SDKs. It offers request adapters that integrate with popular HTTP clients like `requests` and `httpx`, handling the underlying network communication and request serialization/deserialization. The library is part of the broader Microsoft Kiota ecosystem, receiving frequent updates to synchronize with other Kiota packages.

pip install microsoft-kiota-http
INSTALL
IMPORT
SIG · MICROSOFT-KIOTA-HT
M
microsoft-kiota-http
http-networkingpythonv1.12.0
Install
Import
Disk
Pass rate
0/ 10
Env Coverage0 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.12.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
1/2 runs
1/2 runs
py 3.11
1/2 runs
1/2 runs
py 3.12
1/2 runs
1/2 runs
py 3.13
1/2 runs
1/2 runs
py 3.9
1/2 runs
1/2 runs
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

VERSION
from kiota_http import VERSION
from microsoft.kiota.http.requests_request_adapter import RequestsRequestAdapter

This example demonstrates how to initialize a `RequestsRequestAdapter`, which is the entry point for making HTTP requests with a Kiota-generated client. It uses the `AnonymousAuthenticationProvider` for simplicity; real applications would use a production-ready authentication provider.

import os from microsoft.kiota.authentication.anonymous.anonymous_authentication_provider import AnonymousAuthenticationProvider from microsoft.kiota.http.requests_request_adapter import RequestsRequestAdapter # 1. Initialize an AuthenticationProvider. # For real applications, you'd use a provider like AzureIdentityAuthenticationProvider. auth_provider = AnonymousAuthenticationProvider() # 2. Create a RequestAdapter using a Kiota HTTP client implementation. # RequestsRequestAdapter uses the 'requests' library by default. # Alternatively, use HttpxRequestAdapter for 'httpx'. request_adapter = RequestsRequestAdapter(auth_provider) # The 'request_adapter' can now be passed to a Kiota-generated API client. # Example: my_client = MyGeneratedApiClient(request_adapter) print("Kiota HTTP Request Adapter initialized successfully.") print(f"Using adapter type: {type(request_adapter).__name__}") # This quickstart does not perform an actual API call as it requires a generated client.
Debug
Known issues
breakingStarting with version 1.10.0, support for Python 3.9 has been dropped. Ensure your environment uses Python 3.10 or higher.
fix
Upgrade your Python environment to version 3.10 or newer. If you must use Python 3.9, pin your `microsoft-kiota-http` version to `<1.10.0`.
affects: >=1.10.0
gotchaA `RequestAdapter` always requires an `AuthenticationProvider` during initialization, even if it's an `AnonymousAuthenticationProvider` for public/unauthenticated endpoints.
fix
Always pass an instance of a class implementing `AuthenticationProvider` when creating a `RequestsRequestAdapter` or `HttpxRequestAdapter`.
affects: All
gotchaThis package provides *factories* and *adapters* for HTTP communication. It does not provide the generated API client itself. You need to use the Kiota CLI to generate your client library, which will then depend on `microsoft-kiota-http`.
fix
Familiarize yourself with the Kiota code generation process and use `kiota generate` to create your specific SDK client.
affects: All
gotchaThere are distinct adapters for different underlying HTTP libraries (e.g., `RequestsRequestAdapter` for `requests`, `HttpxRequestAdapter` for `httpx`). Choose the one that best fits your project's existing dependencies or performance needs.
fix
Explicitly import and instantiate `RequestsRequestAdapter` or `HttpxRequestAdapter` based on your preferred HTTP client.
affects: All
breakingInstallation fails because the `microsoft-kiota-authentication-anonymous` package could not be found. This often means the package is missing from PyPI, has been deprecated, or is misspelled. This may occur if an implicit dependency or another package being installed alongside `microsoft-kiota-http` requires it.
fix
Verify the correct name and availability of `microsoft-kiota-authentication-anonymous` on PyPI or your intended package index. If it's an intended dependency, ensure it's explicitly included in your `pip install` command or listed in your `requirements.txt`.
affects: All
gotchaThe `microsoft-kiota-authentication-anonymous` package does not exist on PyPI. The `AnonymousAuthenticationProvider` class, which fulfills the authentication provider requirement for unauthenticated endpoints, is part of the `microsoft-kiota-abstractions` package.
fix
Do not attempt to `pip install microsoft-kiota-authentication-anonymous`. Instead, if you need the `AnonymousAuthenticationProvider`, import it directly from `microsoft_kiota_abstractions.authentication` after ensuring `microsoft-kiota-abstractions` is installed (it is a dependency of `microsoft-kiota-http`).
affects: All
Upgrade
Version history
1.12.0latest on PyPI · released Aug 27, 2026
Audit
Dependencies
microsoft-kiota-abstractionsrequiredProvides core interfaces like RequestAdapter and AuthenticationProvider that this library implements or uses.
requestsoptionalDefault underlying HTTP client for RequestsRequestAdapter.
httpxoptionalUnderlying HTTP client for HttpxRequestAdapter.
microsoft-kiota-authentication-anonymousoptionalRequired for the provided quickstart example to create a basic, runnable Kiota client adapter.
Agent activity
26 hits · last 30 days
node
20
OpenAI (training)
1
Resources
microsoft-kiota-http — pip install microsoft-kiota-http · libregistry