BSD Ports

devel/py-pyrate-limiter 4.5.0 DragonFly

Python rate limiter with pluggable algorithms and backends

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
devel, python
Package size
96.8 KiB, 526.6 KiB installed

Description

PyrateLimiter is a fast, async-friendly rate limiter for Python -- Leaky-Bucket algorithm with pluggable backends.

Features:

  • Leaky-bucket algorithm: smooth, well-understood rate limiting.
  • Multiple rates at once: e.g. 5/second and 1000/hour on the same key.
  • Per-key limits: track different services, users, or resources independently.
  • Pluggable backends: in-memory, SQLite, Redis (sync and async), Postgres, and multiprocessing.
  • Sync & async: the same API works in both; async paths never block the event loop.
  • Direct calls or decorators: limiter.try_acquire(...) or @limiter.as_decorator(...).
  • Blocking or non-blocking: wait for a permit (with optional timeout) or fail fast.

In the other systems

The newest version among them is 4.5.1, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlydevel/py-pyrate-limiter4.5.0 behind since 2026-10-23none known-[email protected]-
FreeBSDdevel/py-pyrate-limiter4.5.1 newestnone known-[email protected]2026-11-09
OpenBSDdevel/py-pyrate-limiter4.5.1 newestno data-The OpenBSD ports mailing-list <[email protected]>2026-10-23
HardenedBSDdevel/py-pyrate-limiter4.5.0 behind since 2026-10-23no data-[email protected]-
GhostBSDdevel/py-pyrate-limiter4.5.0 behind since 2026-10-23no data-[email protected]-

Compare across BSDs

Version history 1

  1. 4.5.0

Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.

Install

Binary package:

pkg install py312-pyrate-limiter

From DPorts:

cd /usr/dports/devel/py-pyrate-limiter && make install clean

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 1