Name | httpx-limiter JSON |
Version |
0.1.0
JSON |
| download |
home_page | None |
Summary | A lightweight package that provides rate-limited httpx transports. |
upload_time | 2024-11-22 02:27:11 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.10 |
license | Apache-2.0 |
keywords |
httpx
limiter
rate-limit
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# HTTPX Limiter
| | |
|---|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Package | [](https://pypi.org/project/httpx-limiter/) [](https://pypi.org/project/httpx-limiter/) [](https://httpx-limiter.readthedocs.io/en/latest/?badge=latest) |
| Meta | [](LICENSE) [](.github/CODE_OF_CONDUCT.md) [](https://mypy-lang.org/) [](https://github.com/ambv/black) [](https://github.com/astral-sh/ruff) |
| Automation | |
_A lightweight package that provides rate-limited httpx transports._
## Installation
The package is published on [PyPI](). Install it, for example, with
```sh
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 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:
```python
import httpx
from httpx_limiter import AsyncRateLimitedTransport
async with httpx.AsyncClient(
transport=AsyncRateLimitedTransport.create(rate=10, capacity=10),
) as client:
...
```
## Copyright
- Copyright © 2024 Moritz E. Beber.
- Free software distributed under the [Apache Software License 2.0](./LICENSE).
Raw data
{
"_id": null,
"home_page": null,
"name": "httpx-limiter",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "httpx, limiter, rate-limit",
"author": null,
"author_email": "\"Moritz E. Beber\" <midnighter@posteo.net>",
"download_url": "https://files.pythonhosted.org/packages/d2/69/a9062906ee8d3762c45c1ca276054ff02b349bb2d8987680eb12a578fc92/httpx_limiter-0.1.0.tar.gz",
"platform": null,
"description": "# HTTPX Limiter\n\n| | |\n|---|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Package | [](https://pypi.org/project/httpx-limiter/) [](https://pypi.org/project/httpx-limiter/) [](https://httpx-limiter.readthedocs.io/en/latest/?badge=latest) |\n| Meta | [](LICENSE) [](.github/CODE_OF_CONDUCT.md) [](https://mypy-lang.org/) [](https://github.com/ambv/black) [](https://github.com/astral-sh/ruff) |\n| Automation | |\n\n_A lightweight package that provides rate-limited httpx transports._\n\n## Installation\n\nThe package is published on [PyPI](). Install it, for example, with\n\n```sh\npip install httpx-limiter\n```\n\n## Usage\n\nFor situations when you need to make a large number of asynchronous request with a\ncontrolled number of requests per time, you can apply rate limiting to an HTTPX client\nusing the provided transport. If you want to be able to make ten requests per second,\nfor example, use the following:\n\n```python\nimport httpx\nfrom httpx_limiter import AsyncRateLimitedTransport\n\nasync with httpx.AsyncClient(\n transport=AsyncRateLimitedTransport.create(rate=10, capacity=10),\n) as client:\n ...\n```\n\n## Copyright\n\n- Copyright \u00a9 2024 Moritz E. Beber.\n- Free software distributed under the [Apache Software License 2.0](./LICENSE).\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "A lightweight package that provides rate-limited httpx transports.",
"version": "0.1.0",
"project_urls": {
"Bug Tracker": "https://github.com/Midnighter/httpx-limiter/issues",
"Documentation": "https://httpx-limiter.readthedocs.io",
"Download": "https://pypi.org/project/httpx-limiter/#files",
"Homepage": "https://github.com/Midnighter/httpx-limiter",
"Source Code": "https://github.com/Midnighter/httpx-limiter"
},
"split_keywords": [
"httpx",
" limiter",
" rate-limit"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "4c4811e518f9c771100689250501ecb51a86f81cb8900bc47b3b00e3d34f5376",
"md5": "ba9a62880ba5d515fb53c404550be8c1",
"sha256": "fd037fe70c51d916505ad5318f4222dfc4a3a8214763306d687837fb90ee0380"
},
"downloads": -1,
"filename": "httpx_limiter-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ba9a62880ba5d515fb53c404550be8c1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 8482,
"upload_time": "2024-11-22T02:27:10",
"upload_time_iso_8601": "2024-11-22T02:27:10.706930Z",
"url": "https://files.pythonhosted.org/packages/4c/48/11e518f9c771100689250501ecb51a86f81cb8900bc47b3b00e3d34f5376/httpx_limiter-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d269a9062906ee8d3762c45c1ca276054ff02b349bb2d8987680eb12a578fc92",
"md5": "9d9f5ca424ab9d9eb122b80fc0eb3537",
"sha256": "023e63333664b757256f9df2d2d2982363b6233811bf23114d0d272613dd3237"
},
"downloads": -1,
"filename": "httpx_limiter-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "9d9f5ca424ab9d9eb122b80fc0eb3537",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 10318,
"upload_time": "2024-11-22T02:27:11",
"upload_time_iso_8601": "2024-11-22T02:27:11.862621Z",
"url": "https://files.pythonhosted.org/packages/d2/69/a9062906ee8d3762c45c1ca276054ff02b349bb2d8987680eb12a578fc92/httpx_limiter-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-22 02:27:11",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Midnighter",
"github_project": "httpx-limiter",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "httpx-limiter"
}