devel/py-pyrate-limiter 4.5.0 FreeBSD
Python rate limiter with pluggable algorithms and backends
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Last update
- Commit
8ace50658a- License
- MIT
- Categories
- devel, python
- Package size
- 102.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.0, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| FreeBSD | devel/py-pyrate-limiter | 4.5.0 newest | none known | - | [email protected] | 2026-09-09 |
| OpenBSD | devel/py-pyrate-limiter | 4.0.2 | no data | - | The OpenBSD ports mailing-list <[email protected]> | 2026-10-23 |
| HardenedBSD | devel/py-pyrate-limiter | 4.5.0 newest | no data | - | [email protected] | - |
| GhostBSD | devel/py-pyrate-limiter | 4.5.0 newest | no data | - | [email protected] | - |
Install
Binary package:
pkg install py312-pyrate-limiter
From the ports tree:
cd /usr/ports/devel/py-pyrate-limiter/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-pyrate-limiter>0:devel/py-pyrate-limiter
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 4.5.0 | 4.5.0 | - | - | 4.5.0 |
| FreeBSD:14:quarterly | 4.5.0 | 4.5.0 | n/a | - | 4.5.0 |
| FreeBSD:15:latest | 4.5.0 | 4.5.0 | n/a | - | - |
| FreeBSD:15:quarterly | 4.5.0 | 4.5.0 | n/a | n/a | n/a |
| FreeBSD:16:latest | 4.5.0 | 4.5.0 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 1
${PYTHON_PKGNAMEPREFIX}hatchling>=0: devel/py-hatchling
The full lists below include those, and their dependencies in turn.
Build dependencies 19
- archivers/liblz4
- archivers/zstd
- devel/gettext-runtime
- devel/libffi
- devel/py-build
- devel/py-hatchling
- devel/py-installer
- devel/py-packaging
- devel/py-pathspec
- devel/py-pluggy
- devel/py-pyproject-hooks
- devel/py-trove-classifiers
- devel/readline
- lang/python312
- lang/python315
- math/mpdecimal
- print/indexinfo
- textproc/expat2
- textproc/py-tomlkit
Run dependencies 7
Required by 1
Configuration
Options name: devel_pyrate-limiter
| Option | Default | Description |
|---|---|---|
| ALL | off | All optional dependencies |
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| pyrate_limiter-4.5.0.tar.gz | 123240 | 098345fff3a52b84dee9bcf6973f184c8b3ef8d34e1f4f781ac0773e3984598b |
Master sites 1
- PYPI