Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Jun 2026 20:49:30 +0000
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 08e092647a70 - main - www/py-requests-ratelimiter: Add py-requests-ratelimiter 0.10.0
Message-ID:  <6a3ee5da.1d9ae.1d66d8bb@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=08e092647a7076c6d0a7e220978732b9e90c91de

commit 08e092647a7076c6d0a7e220978732b9e90c91de
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2026-06-26 20:43:01 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2026-06-26 20:43:01 +0000

    www/py-requests-ratelimiter: Add py-requests-ratelimiter 0.10.0
    
    Requests-Ratelimiter is a simple wrapper around pyrate-limiter that adds
    convenient integration with the requests library.
    
    Features:
    - pyrate-limiter is a general-purpose rate-limiting library that implements the
      leaky bucket algorithm, supports multiple rate limits, and has optional
      persistence with SQLite and Redis backends
    - requests-ratelimiter adds some conveniences for sending rate-limited HTTP
      requests with the requests library
    - It can be used as either a session or a transport adapter
    - It can also be used as a mixin, for compatibility with other requests-based
      libraries
    - Rate limits are tracked separately per host
    - Different rate limits can optionally be applied to different hosts
---
 www/Makefile                          |  1 +
 www/py-requests-ratelimiter/Makefile  | 25 +++++++++++++++++++++++++
 www/py-requests-ratelimiter/distinfo  |  3 +++
 www/py-requests-ratelimiter/pkg-descr | 14 ++++++++++++++
 4 files changed, 43 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index b476e66456eb..ebdfbc643048 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1975,6 +1975,7 @@
     SUBDIR += py-requests-gssapi
     SUBDIR += py-requests-mock
     SUBDIR += py-requests-oauthlib
+    SUBDIR += py-requests-ratelimiter
     SUBDIR += py-requests-toolbelt
     SUBDIR += py-requests-unixsocket
     SUBDIR += py-requests-wsgi-adapter
diff --git a/www/py-requests-ratelimiter/Makefile b/www/py-requests-ratelimiter/Makefile
new file mode 100644
index 000000000000..31f58e1161aa
--- /dev/null
+++ b/www/py-requests-ratelimiter/Makefile
@@ -0,0 +1,25 @@
+PORTNAME=	requests-ratelimiter
+PORTVERSION=	0.10.0
+CATEGORIES=	www python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	requests_ratelimiter-${PORTVERSION}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Rate-limiting for the requests library
+WWW=		https://requests-ratelimiter.readthedocs.io/en/stable/ \
+		https://github.com/JWCook/requests-ratelimiter
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pyrate-limiter>=4.1<5:devel/py-pyrate-limiter@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}requests>=2.20:www/py-requests@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/www/py-requests-ratelimiter/distinfo b/www/py-requests-ratelimiter/distinfo
new file mode 100644
index 000000000000..14bc4206de79
--- /dev/null
+++ b/www/py-requests-ratelimiter/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1780751896
+SHA256 (requests_ratelimiter-0.10.0.tar.gz) = 9c1a78d7646caa5ccf211a6c341abd16d329be2c8c35044a418aa9da7c0e7a33
+SIZE (requests_ratelimiter-0.10.0.tar.gz) = 17190
diff --git a/www/py-requests-ratelimiter/pkg-descr b/www/py-requests-ratelimiter/pkg-descr
new file mode 100644
index 000000000000..df7226c1874d
--- /dev/null
+++ b/www/py-requests-ratelimiter/pkg-descr
@@ -0,0 +1,14 @@
+Requests-Ratelimiter is a simple wrapper around pyrate-limiter that adds
+convenient integration with the requests library.
+
+Features:
+- pyrate-limiter is a general-purpose rate-limiting library that implements the
+  leaky bucket algorithm, supports multiple rate limits, and has optional
+  persistence with SQLite and Redis backends
+- requests-ratelimiter adds some conveniences for sending rate-limited HTTP
+  requests with the requests library
+- It can be used as either a session or a transport adapter
+- It can also be used as a mixin, for compatibility with other requests-based
+  libraries
+- Rate limits are tracked separately per host
+- Different rate limits can optionally be applied to different hosts


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a3ee5da.1d9ae.1d66d8bb>