CoreHTTP Library for Python
Project description
Core HTTP shared client library for Python
corehttp
provides shared exceptions and modules for Python SDK client libraries.
Getting started
Typically, you will not need to install corehttp
, as it will be installed when you install one of the client libraries using it.
Transports
To use corehttp
, you will need to choose a transport implementation. corehttp
provides the following transports:
Synchronous transports:
RequestsTransport
- A synchronous transport based on the Requests library.HttpXTransport
- An synchronous transport based on the HTTPX library.
Asynchronous transports:
AioHttpTransport
- An asynchronous transport based on the aiohttp library.AsyncHttpXTransport
- An asynchronous transport based on the HTTPX library.
Each transport has its own dependencies, which you can install using the corehttp
extras:
# Install individually.
pip install corehttp[requests]
pip install corehttp[aiohttp]
pip install corehttp[httpx]
# Install multiple.
pip install corehttp[requests,httpx]
If no transports are specified, corehttp
will default to using RequestsTransport
for synchronous pipeline requests and AioHttpTransport
for asynchronous pipeline requests.
Contributing
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
Release History
1.0.0b3 (2024-02-01)
Features Added
- Support tuple input for
files
values tocorehttp.rest.HttpRequest
#34082 - Support simultaneous
files
anddata
field entry intocorehttp.rest.HttpRequest
#34082
1.0.0b2 (2023-11-14)
Features Added
- Added the initial implementation of the HTTPX transport. #32813
Breaking Changes
- Removed
requests
as a default dependency ofcorehttp
. This is now an "extras" dependency and can be installed viacorehttp[requests]
. #32813 - Renamed the
aio
extra toaiohttp
. #32813
Bugs Fixed
- Fixed an issue with
multipart/form-data
in the async transport wheredata
was not getting encoded into the request body. #32473 - Fixed an issue with
connection_verify
,connection_cert
, andconnection_timeout
not being propagated to underlying transports. #33057 - Fixed an issue with the
aiohttp
transport not using SSL by default. #33057
Other Changes
- Added extras for
httpx
. #32813
1.0.0b1 (2023-10-18)
- Initial Release
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
Built Distribution
File details
Details for the file corehttp-1.0.0b3.tar.gz
.
File metadata
- Download URL: corehttp-1.0.0b3.tar.gz
- Upload date:
- Size: 106.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: RestSharp/106.13.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3407557d9ebcbf3417db4bf06806b65e6ff34e0690e1d8df920cb2f2e9e0d16 |
|
MD5 | 80c72aa01f4255476b33262120e7630a |
|
BLAKE2b-256 | 0d56cddab2abafa9acd7682f58714186fdadaa37a01ec66167d77f816ac43c47 |
File details
Details for the file corehttp-1.0.0b3-py3-none-any.whl
.
File metadata
- Download URL: corehttp-1.0.0b3-py3-none-any.whl
- Upload date:
- Size: 103.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: RestSharp/106.13.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4dab005d67363afb4a027e7c902eecd3a3382e85338c7e19a0df3e708dbd2fb8 |
|
MD5 | 0f71e4487e25c3053ecf32386ddcc0a8 |
|
BLAKE2b-256 | c39904b76cfe864d9fb8a4475dfb77a02e0852af80c6216ec42a59032c82dfc3 |