Skip to main content

CurateClick

CurateClick 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

Independent audiophile gear reviews with a transparent scoring system, plus 16 free in-browser audio tools.

CurateClick favicon

getfacereport.com

Private face analysis with personalized style guidance and hairstyle previews.

CurateClick favicon

lovableapp.org

Discover beautiful apps built with vibe coding

CurateClick favicon

antiquescanner.org

Identify antiques, vintage items and collectibles from photos, with estimated market value.

CurateClick favicon

imagelayered.com

AI-powered image decomposition tool that transforms flat images into editable layers.

CurateClick favicon

kaigpt.ai

gpt代充:如何快速申请免手续费的充值服务?

CurateClick favicon

magiclayers.net

Magic Layers – Official Website, What It Is & How to Use

CurateClick favicon

lifepathcalculator.app

Life Path Calculator - free deterministic numerology: your number, strengths, challenges, and shareable cards.