Skip to main content

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.

  1. aiohttp_client_request
  2. aiosonic_request
  3. asks_request
  4. blacksheep_client_request
  5. curl_cffi_request
  6. http_client_request
  7. httpcore_request
  8. httpx_request
  9. hyper_request
  10. pycurl_request
  11. python-urlopen
  12. requests_request
  13. tornado_client_request
  14. 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.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-http_request 0.1.6.4
File Size Uploaded
python_http_request-0.1.6.4.tar.gz 9.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-http_request 0.1.6.4
File Interpreter ABI Platform
python_http_request-0.1.6.4-py3-none-any.whl Python 3 none any Details

Total release size: 19.9 kB

Release files / python_http_request-0.1.6.4.tar.gz

Download URL python_http_request-0.1.6.4.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b8538cdb244e224f07fd4fa91fdbce6a468f919041644d2d0a3790630f4e69ff
BLAKE2b-256 checksum
How to use checksums
82dea8df7c3f9367d796381701b742700f50ac84a83cd8650a102cf0645bc3d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.13.5 Darwin/25.0.0

Release files / python_http_request-0.1.6.4-py3-none-any.whl

Download URL python_http_request-0.1.6.4-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d12f26055927c8fac6de46f5d142cc81e708cfb74f5e0469b5add568e24f9197
BLAKE2b-256 checksum
How to use checksums
93ac003e09dc6b7afb507dcc38566711f33a33d41f6bc235fd24f70e193c042d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.13.5 Darwin/25.0.0

Release history Release notifications | RSS feed

0.1.7

2 release files

This release

0.1.6.4 This release

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

1 release file

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page