Skip to main content

CurateClick

github.com favicon

throttled-py

Weekly Pick

throttled-py 是一个高性能 Python 限流库,支持多种算法(固定窗口、滑动窗口、令牌桶、漏桶和 GCRA)及存储选项(Redis、内存),提供线程安全的后端和灵活的限流策略。

Check out throttled-py on CurateClick

• Copy the embed code to showcase this product on your website

• Share on X to spread the word about this amazing tool

throttled-py 是一个功能强大的 Python 限流库,支持多种限流算法,包括固定窗口、滑动窗口、令牌桶、漏桶和通用信元速率算法(GCRA)。它提供线程安全的存储后端,支持 Redis(基于 Lua 实现限流算法)和内存(基于 threading.RLock,支持 Key 过期淘汰)。该库具有灵活的限流策略和配额设置 API,文档详尽,并支持装饰器模式。不同存储选项均有良好的性能,内存存储的限流 API 执行耗时约为 2.5 ~ 4.5 次 dict[key] += 1 操作,Redis 存储约为 1.06 ~ 1.37 次 INCRBY key increment 操作。安装简单,可通过 pip 安装。

Latest Weekly Picks

Powerful Motion Control AI Video Generator

Motion Control AI

PlusGO 是面向中国大陆用户的 ChatGPT Plus 代充值服务平台。使用官方 CDKey,支持支付宝和微信扫码支付,平均 2 分钟完成 Plus 开通,自 2025 年起已为超过 10,000 名用户完成充值。

www.toolcenter.ai favicon
Weekly Pick

Discover the Best AI & Productivity Tools — 1,500+ tools with honest reviews.

ToolCenter
huntereyes.net favicon
Weekly Pick

AI Eye Area Evaluation

Hunter Eyes
www.payforchat.com favicon
Weekly Pick

Subscribe to ChatGPT Plus/Pro in 1 minute — no international credit card needed.

PayForChat
happyhorseai.ai favicon
Weekly Pick

Happy Horse AI Creates Videos with Motion and Storytelling

Happy Horse
promptbuilder.cc favicon
Weekly Pick

Generate, optimize, test, and manage AI prompts in one place. Turn an idea into a ready-to-use prompt in seconds.

Prompt Builder
webleadr.com favicon
Weekly Pick

Find and contact web design leads and businesses without websites, like local dentists, effortlessly from any location in just a few clicks.

Webleadr