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

pslscale.com favicon
Weekly Pick

Discover your PSL (Perceived Sexual Market Value) score with our AI-powered facial analysis

MILO

IPYNB to PDF Converter – Free & Secure

lejintian
www.reverie.im favicon
Weekly Pick

Dream It, Chat It, Create It

Louis
make.ink favicon
Weekly Pick

Your AI tattoo generator for pro-grade concepts

Leo Wade
sellfy.com favicon
Weekly Pick

A code-free online store builder to turn views into revenue. Sell digital products, subscriptions, and merch, without fees or hassle.

Maris
www.videotoblog.ai favicon
Weekly Pick

Convert videos into awesome blog posts.

Video To Blog
www.sellerpic.ai favicon
Weekly Pick

SellerPic is the all-in-one AI design platform for e-commerce

SellerPic
fastimage.ai favicon
Weekly Pick

Fast Image AI instantly transforms your photos into stunning styles like Ghibli, Sketch, and Pixar. Effortlessly control image elements and create amazing effects with just one click.

Fast AI Team