Python http request utils.
Installation
You can install from pypi
pip install -U python-http_request
Usage
import http_request
import http_request.extension
Extension
I've implemented several modules, all of which provide a request function. Their signatures are similar, so they can be used as drop-in replacements for each other.
- aiohttp_client_request
- aiosonic_request
- asks_request
- blacksheep_client_request
- curl_cffi_request
- http_client_request
- httpcore_request
- httpx_request
- pycurl_request
- python-urlopen
- requests_request
- tornado_client_request
- urllib3_request
To make it more general, I've encapsulated a request function
from http_request.extension import request
You just need to implement a urlopen function pass to request, then it can be directly extended. The urlopen function signature is roughly as follows:
def urlopen[Response](
url: str,
method: str,
data=None,
headers: None | dict[str, str] = None,
**request_args,
) -> Response:
...
Metadata
Release files for python-http_request 0.1.6.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| python_http_request-0.1.6.1.tar.gz | 9.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_http_request-0.1.6.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.3 kB
Release files / python_http_request-0.1.6.1.tar.gz
| Download URL | python_http_request-0.1.6.1.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
287e2d8f9340fadcfc7928f8a4afbbf7c2e266e83f79daa0224b3b7f1be24678
|
|
BLAKE2b-256 checksum How to use checksums |
df1f5f312a8f4d9bb2bcbb5307d79b805e2699a832a24632208eaeb15541c781
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.12.4 Darwin/23.5.0
|
Release files / python_http_request-0.1.6.1-py3-none-any.whl
| Download URL | python_http_request-0.1.6.1-py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cf190205f0c80e1445ccc3948f3719cde25760410d921f7d21f20834b1b336b0
|
|
BLAKE2b-256 checksum How to use checksums |
3e3e55ab3c2ebbbf91891e6bea2d17e86a5c0e90908ab1f1759cfb1a6a9d9807
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.12.4 Darwin/23.5.0
|