aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2026-04-19 17:43:22 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2026-04-19 17:49:34 +0000
commitec4e4a60ecfaf85440cb60164168f84b66a12311 (patch)
treef0e1a1fdc5bf5e5deda51ec221c7f15f5dc2c059
parent9df94fdd159d28c101199a98fcab4258419989ac (diff)
devel/py-throttler: New port: Python package for easy throttling with asyncio support
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-throttler/Makefile22
-rw-r--r--devel/py-throttler/distinfo3
-rw-r--r--devel/py-throttler/pkg-descr2
4 files changed, 28 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 050743751ef2..52afd852b15d 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -6175,6 +6175,7 @@
SUBDIR += py-threema-msgapi
SUBDIR += py-thrift
SUBDIR += py-thriftpy2
+ SUBDIR += py-throttler
SUBDIR += py-tiamat
SUBDIR += py-time-machine
SUBDIR += py-timelib
diff --git a/devel/py-throttler/Makefile b/devel/py-throttler/Makefile
new file mode 100644
index 000000000000..c1b3c045908f
--- /dev/null
+++ b/devel/py-throttler/Makefile
@@ -0,0 +1,22 @@
+PORTNAME= throttler
+DISTVERSION= 1.2.3
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Python package for easy throttling with asyncio support
+WWW= https://github.com/uburuntu/throttler
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= pep517 autoplist
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-throttler/distinfo b/devel/py-throttler/distinfo
new file mode 100644
index 000000000000..37d63d8e6a5a
--- /dev/null
+++ b/devel/py-throttler/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1776617668
+SHA256 (throttler-1.2.3.tar.gz) = d2f5b0b499d62f1fc984dcac8043450b606549b0097753a9c8a707f7427c27e1
+SIZE (throttler-1.2.3.tar.gz) = 11792
diff --git a/devel/py-throttler/pkg-descr b/devel/py-throttler/pkg-descr
new file mode 100644
index 000000000000..24ff16020512
--- /dev/null
+++ b/devel/py-throttler/pkg-descr
@@ -0,0 +1,2 @@
+throttler is a zero-dependency Python package for easy throttling with
+asyncio support. It enables rate limiting for async and sync code.