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:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
@@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1775248660
|
||||
SHA256 (slowapi-0.1.9.tar.gz) = 639192d0f1ca01b1c6d95bf6c71d794c3a9ee189855337b4821f7f457dddad77
|
||||
SIZE (slowapi-0.1.9.tar.gz) = 14028
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user