Skip to main content

Use `aiohttp` with `httpx` Interface

Project description

Use aiohttp with httpx Interface

httpx has performance issue, especially when working with high concurrency, while aiohttp does not.

However, your production code and tests may already heavily rely on httpx, making it difficult to migrate to aiohttp.

This repo provides a workaround: take advantage of httpx's custom transport capability to use aiohttp for the actual requests

This package supports:

  • transport limits (max connection)
  • auth
  • proxy
  • respx

Known limitations:

  • http2. aiohttp does not support http2.

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

httpx_aiohttptransport-0.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

httpx_aiohttptransport-0.1.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file httpx_aiohttptransport-0.1.0.tar.gz.

File metadata

  • Download URL: httpx_aiohttptransport-0.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.12.6 Darwin/24.1.0

File hashes

Hashes for httpx_aiohttptransport-0.1.0.tar.gz
Algorithm Hash digest
SHA256 24909fa64e5dbfd1eba82c7d51fd5bf097fd9c638bb416dbbd9dba693126d3a5
MD5 895aabbd127d3ff369c9fb6c1cf3da47
BLAKE2b-256 621cd8f116b707fffabea44d63e257b5ff5d3ab53f4e5b510b18e1d1b00f95d6

See more details on using hashes here.

File details

Details for the file httpx_aiohttptransport-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for httpx_aiohttptransport-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 010b4b630f49e2d5dfb1a64413a8693dce81b81ea59a35df1abf9283de9865ed
MD5 5259a9582b237eee0b2569400d9b90ee
BLAKE2b-256 add880c648e569284ea17cd8430c52522ba197d4a31d507bf66ffdcbc6874785

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