Skip to main content

Python http request utils.

Project description

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:
    ...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_http_request-0.1.7.1.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_http_request-0.1.7.1-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file python_http_request-0.1.7.1.tar.gz.

File metadata

  • Download URL: python_http_request-0.1.7.1.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.5 Darwin/25.0.0

File hashes

Hashes for python_http_request-0.1.7.1.tar.gz
Algorithm Hash digest
SHA256 ade9376d737ce7df6048defb5839803979130eb9304bd80321641f31534d95f0
MD5 c81a999612ec6ccc1fa5533c667efc81
BLAKE2b-256 5b780c27be4c93b8484e45036e2f8494be974d8e465483f0dd9e3aa76ece3586

See more details on using hashes here.

File details

Details for the file python_http_request-0.1.7.1-py3-none-any.whl.

File metadata

File hashes

Hashes for python_http_request-0.1.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e2c891e437f133b4605834bbb95d9dc339f5d727e63b58d42b0cb40fcb0f8659
MD5 28b5c59f8730f778a5b2bed793d3fda4
BLAKE2b-256 e2b320597e8f548c41f78a693eef6bcc8257c4cdcc9dd10cf117426e5d9bbcf3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page