Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 04 Apr 2026 18:40:42 +0000
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 42972019fc9e - main - www/py-slowapi: New port: Rate limiting extension for Starlette and Fastapi
Message-ID:  <69d15b2a.24de8.61dde1a@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=42972019fc9e61ed0e808c1626222c4aea5d757e

commit 42972019fc9e61ed0e808c1626222c4aea5d757e
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-04-03 20:54:37 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-04-04 18:40:39 +0000

    www/py-slowapi: New port: Rate limiting extension for Starlette and Fastapi
---
 www/Makefile             |  1 +
 www/py-slowapi/Makefile  | 24 ++++++++++++++++++++++++
 www/py-slowapi/distinfo  |  3 +++
 www/py-slowapi/pkg-descr | 10 ++++++++++
 4 files changed, 38 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 233d8e864f54..f8acad5a22a2 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -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
diff --git a/www/py-slowapi/Makefile b/www/py-slowapi/Makefile
new file mode 100644
index 000000000000..44cefdc8e42e
--- /dev/null
+++ b/www/py-slowapi/Makefile
@@ -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>
diff --git a/www/py-slowapi/distinfo b/www/py-slowapi/distinfo
new file mode 100644
index 000000000000..4eb31f4c777b
--- /dev/null
+++ b/www/py-slowapi/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1775248660
+SHA256 (slowapi-0.1.9.tar.gz) = 639192d0f1ca01b1c6d95bf6c71d794c3a9ee189855337b4821f7f457dddad77
+SIZE (slowapi-0.1.9.tar.gz) = 14028
diff --git a/www/py-slowapi/pkg-descr b/www/py-slowapi/pkg-descr
new file mode 100644
index 000000000000..04feab693740
--- /dev/null
+++ b/www/py-slowapi/pkg-descr
@@ -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


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69d15b2a.24de8.61dde1a>