百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
A

aiolimiter

> DevOps
开源

asyncio 的速率限制器的高效实现。

774 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

asyncio 的速率限制器的高效实现。

aiolimiter

[![GitHub Actions 默认分支的状态][checks_badge]][checks_status] [![codecov.io 状态 (默认分支)][codecov_badge]][codecov_status] [![最新的 PyPI 包版本][pypi_badge]][aiolimiter_release] [![最新的 Read The Docs][rtd_badge]][aiolimiter_docs] [checks_status]: https://github.com/mjpieters/aiolimiter/actions/workflows/ci-cd.yml "默认分支的 GitHub Actions 状态" [codecov_status]: https://codecov.io/gh/mjpieters/aiolimiter "codecov.io 对默认分支的状态" [aiolimiter_release]: https://pypi.org/project/aiolimiter "最新的 PyPI 包版本" [aiolimiter_docs]: https://aiolimiter.readthedocs.io/en/latest/?badge=latest "最新的 Read The Docs"

简介

asyncio 的速率限制器的高效实现。

此项目实现了漏桶算法,可精确控制代码段进入的速率:```python from aiolimiter import AsyncLimiter

allow for 100 concurrent entries within a 30 second window

rate_limit = AsyncLimiter(100, 30)

async def some_coroutine(): async with rate_limit: # this section is at most going to entered 100 times # in a 30 second period. await do_something()


本项目使用 [uv][] 来管理依赖项、测试和发布。请确保已安装该工具,然后运行 fo

[checks_badge]: https://github.com/mjpieters/aiolimiter/actions/workflows/ci-cd.yml/badge.svg
[codecov_badge]: https://codecov.io/gh/mjpieters/aiolimiter/branch/main/graph/badge.svg
[pypi_badge]: https://img.shields.io/pypi/v/aiolimiter
[rtd_badge]: https://readthedocs.org/projects/aiolimiter/badge/?version=latest

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Pythonasyncioleaky-bucketrate-limiting

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类DevOps
定价开源

> 相关工具

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理