1
0
mirror of https://git.freebsd.org/ports.git synced 2026-06-02 11:08:52 +00:00

www/py-slowapi: New port: Rate limiting extension for Starlette and Fastapi

This commit is contained in:
Yuri Victorovich
2026-04-03 13:54:37 -07:00
parent 39679cf3f8
commit 42972019fc
4 changed files with 38 additions and 0 deletions
+1
View File
@@ -1948,6 +1948,7 @@
SUBDIR += py-sherlock-project
SUBDIR += py-simple-websocket
SUBDIR += py-slimit
SUBDIR += py-slowapi
SUBDIR += py-slumber
SUBDIR += py-social-auth-app-django
SUBDIR += py-sockjs-tornado
+24
View File
@@ -0,0 +1,24 @@
PORTNAME= slowapi
PORTVERSION= 0.1.9
CATEGORIES= www python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Rate limiting extension for Starlette and Fastapi
WWW= https://github.com/laurents/slowapi
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0:devel/py-poetry-core@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}limits>0:www/py-limits@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}starlette>0:www/py-starlette@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}typing-extensions>0:devel/py-typing-extensions@${PY_FLAVOR}
USES= python
USE_PYTHON= pep517 autoplist
NO_ARCH= yes
.include <bsd.port.mk>
+3
View File
@@ -0,0 +1,3 @@
TIMESTAMP = 1775248660
SHA256 (slowapi-0.1.9.tar.gz) = 639192d0f1ca01b1c6d95bf6c71d794c3a9ee189855337b4821f7f457dddad77
SIZE (slowapi-0.1.9.tar.gz) = 14028
+10
View File
@@ -0,0 +1,10 @@
SlowApi is a rate limiting library for Starlette and FastAPI adapted from
flask-limiter. Most features are coming from flask-limiter and the
underlying limits package.
Features:
- Single and multiple limit decorator on endpoint functions to apply limits
- redis, memcached and memory backends to track your limits (memory as a
fallback)
- support for sync and async HTTP endpoints
- Support for shared limits across a set of routes