Skip to main content

HTTPX2 Limiter

A lightweight package that provides rate-limited httpx2 transports.

This package is a fork of httpx-limiter version 0.6.1, migrated from httpx to httpx2.

Installation

The package is published on PyPI. Install it, for example, with the aiolimiter backend:

pip install 'httpx2-limiter[aiolimiter]'

There is also a pyrate-limiter backend available:

pip install 'httpx2-limiter[pyrate]'

Usage

Apply a rate limit to all requests made through a client by wrapping the transport. If you want to be able to make twenty requests per second, for example:

import httpx2
from httpx2_limiter import AsyncRateLimitedTransport, Rate
from httpx2_limiter.aiolimiter import AiolimiterAsyncLimiter


async def main():
    limiter = AiolimiterAsyncLimiter.create(Rate.create(magnitude=20))
    async with httpx2.AsyncClient(
        transport=AsyncRateLimitedTransport.create(limiter=limiter),
    ) as client:
        response = await client.get("https://httpbin.org/get")

More advanced use cases, such as applying multiple rate limits or different rate limits per domain, are described in the documentation.

Copyright

  • Original httpx-limiter Copyright © 2024, 2025 Moritz E. Beber.
  • httpx2-limiter Copyright © 2026 Zach Gottesman.
  • Free software distributed under the Apache Software License 2.0.

Metadata

Release files for httpx2-limiter 1.0.0

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

Source distribution (sdist)

Source distribution for httpx2-limiter 1.0.0
File Size Uploaded
httpx2_limiter-1.0.0.tar.gz 13.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for httpx2-limiter 1.0.0
File Interpreter ABI Platform
httpx2_limiter-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 32.1 kB

Release files / httpx2_limiter-1.0.0.tar.gz

Download URL httpx2_limiter-1.0.0.tar.gz
Size 13.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d41e59951b81531db84fc81cb1a71e186c67788760dc0abb66ed62faefddbc48
BLAKE2b-256 checksum
How to use checksums
359e5cf9ecdc6b2cdbcfa7b5f19f90dda78b787823a8a9fcfc5f82a7d5b64bd2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 26, 2026.

Transparency log

Release files / httpx2_limiter-1.0.0-py3-none-any.whl

Download URL httpx2_limiter-1.0.0-py3-none-any.whl
Size 18.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
62c6f5ed6b045d76d12ef26be6ddf15d79c29cb1076789a0bbf6aef4d4d989ac
BLAKE2b-256 checksum
How to use checksums
dbe467e2a3ae2ab4dfecc7a8df972397eef57212582a7d7645a2f773910cf98a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 26, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.0 This release

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