A lightweight package that provides rate-limited httpx transports.
Project description
HTTPX Limiter
| Package | |
| Meta | |
| Automation |
A lightweight package that provides rate-limited httpx transports.
Installation
The package is published on PyPI. Install it, for example, with
pip install httpx-limiter
Usage
For situations when you need to make a large number of asynchronous request with a controlled number of requests per unit time, you can apply rate limiting to an HTTPX client using the provided transport. If you want to be able to make ten requests per second, for example, use the following:
import httpx
from httpx_limiter import AsyncRateLimitedTransport, Rate
async def main():
async with httpx.AsyncClient(
transport=AsyncRateLimitedTransport.create(rate=Rate.create(magnitude=10)),
) as client:
response = await client.get("https://httpbin.org")
Copyright
- Copyright © 2024,2025 Moritz E. Beber.
- Free software distributed under the Apache Software License 2.0.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file httpx_limiter-0.2.0.tar.gz.
File metadata
- Download URL: httpx_limiter-0.2.0.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
085e74e0c28414b2f1adea3fee68f31b1139ed66824790feb4fa57534be83cfc
|
|
| MD5 |
3e0dbd460615bccb3cca8723ff5d32b3
|
|
| BLAKE2b-256 |
74ad8f645704623afe117cc9f457affdb3cc98a1162646bdb788c44f690029ac
|
Provenance
The following attestation bundles were made for httpx_limiter-0.2.0.tar.gz:
Publisher:
release.yml on Midnighter/httpx-limiter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
httpx_limiter-0.2.0.tar.gz -
Subject digest:
085e74e0c28414b2f1adea3fee68f31b1139ed66824790feb4fa57534be83cfc - Sigstore transparency entry: 192612550
- Sigstore integration time:
-
Permalink:
Midnighter/httpx-limiter@898025e5df11c60b219dc03880243280a54c976c -
Branch / Tag:
refs/tags/0.2.0 - Owner: https://github.com/Midnighter
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@898025e5df11c60b219dc03880243280a54c976c -
Trigger Event:
push
-
Statement type:
File details
Details for the file httpx_limiter-0.2.0-py3-none-any.whl.
File metadata
- Download URL: httpx_limiter-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6a28a19346c3b88310262b91801a600574d207b5f51eb46167247a0f7620542
|
|
| MD5 |
f49ca1c111563636a45d41e1a8d488b7
|
|
| BLAKE2b-256 |
80a2f6b94755bcb9e5e28bcd578b5f5786cdb9543e14144589cba56e1e199cc4
|
Provenance
The following attestation bundles were made for httpx_limiter-0.2.0-py3-none-any.whl:
Publisher:
release.yml on Midnighter/httpx-limiter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
httpx_limiter-0.2.0-py3-none-any.whl -
Subject digest:
a6a28a19346c3b88310262b91801a600574d207b5f51eb46167247a0f7620542 - Sigstore transparency entry: 192612552
- Sigstore integration time:
-
Permalink:
Midnighter/httpx-limiter@898025e5df11c60b219dc03880243280a54c976c -
Branch / Tag:
refs/tags/0.2.0 - Owner: https://github.com/Midnighter
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@898025e5df11c60b219dc03880243280a54c976c -
Trigger Event:
push
-
Statement type: