Skip to content

feat(rate-limiter): add rate limiter package#3

Merged
smirnoffmg merged 3 commits into
mainfrom
rate-limiter
Feb 25, 2026
Merged

feat(rate-limiter): add rate limiter package#3
smirnoffmg merged 3 commits into
mainfrom
rate-limiter

Conversation

@smirnoffmg

Copy link
Copy Markdown
Owner

No description provided.

…s and framework examples

- Add RateLimiter and IStrategy protocol with async allow(key)
- Add strategies: fixed window, leaky bucket, token bucket, sliding window counter/log, concurrency limiter
- Add integration examples for aiohttp, django, fastapi, flask, litestar, sanic
- Add pytest tests for rate limiter and strategies
- Configure package with hatchling and dev deps (pytest, pytest-asyncio)
… docs

Implement SlidingWindowLogStrategy, SlidingWindowCounterStrategy, and
ConcurrencyLimiterStrategy with full test coverage (21 new tests, 48 total).

Restructure documentation into granular multi-page layout:
- Split URL Shortener monolith into 6 child pages
- Add 14 Rate Limiter doc pages with mermaid diagrams
- Update mkdocs nav, site index, and README
@smirnoffmg smirnoffmg merged commit a6a13c9 into main Feb 25, 2026
3 checks passed
@smirnoffmg smirnoffmg deleted the rate-limiter branch February 26, 2026 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant