From nobody Sun Apr 30 00:33:29 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q86lF2RgQz48TSm; Sun, 30 Apr 2023 00:33:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q86lF1ph2z44mY; Sun, 30 Apr 2023 00:33:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682814809; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=shg0JS9F7GlwbA6pnUfBPBguW3Cqp2ed+x1M3Q5tiJw=; b=hQoXe6imz8ymmbrOFuUYinHqOwVy4mDaovMjyyCasr4GOrVOoP0Qdc52yve38b5AKZtinW 2LtUdH3yLK9XqdQVJWCBcMXGI+TYUeOLzvgTnKwpQ8lMDBRN6xtHwfBw5Aig55bElFcvoq wNRFuZnPT16y4BrfTjb1YkNM9RfRE8N6x5oEVHuNXPTwg9mSqsf2Han9hNnhtqt08G5EZs DCdhXDhm7QRYYsFkg2W4i4ssaX3B+qx2m+dqwbdFmwxO1G+0+nsFJSH2H7wDWiKcDMVJGj 93L5Zw9ucgNrYjcLW89IX8/FEVlnkQBP/4ZQZzDMYZmpmMBNanw/y4XzgySaQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682814809; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=shg0JS9F7GlwbA6pnUfBPBguW3Cqp2ed+x1M3Q5tiJw=; b=QVVSIgNqTolMw74Jq2ZUUaf1rwGh1W95j1pIOejikw+XNZayDZyViHSpkrc9mv70Mf4Gh7 qOQQy+HgnGM0CcFTRCVAcASS6DUo9UWiVOLvMPsHUG6Wb4wr8NHKqoD5vUZVIwvlXPUd5K Q0/ommyND1gXuLtSJPYuESvmwjKkOqccEBgy7LoX0NfJgylNdMpsK5ZEzs2iXugng9zzBu Wvwt1ga0At/ZbPTx3KWRhvXSiVucSqygXijQNQ17nlnDc4GJTZZMZTqVA+WIsI/8l5SIap x47P5/lZ18yfN96Da7/KL7sNq6fifWnLmNGp4MI0YrG3xcBFsCYN73jhmUEshQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1682814809; a=rsa-sha256; cv=none; b=EWuWbLJTPV90Q+2z+u9i1rxEVFceQOEdTLFAY2aNSMcU5VY8pfTNfeyhgHF0yEESBJhWwo +LiLXizH8BxK62stoAZOK3oW4WhYZN6Uwtb1pfl/kx5Q59tyqQQn0b7kCZGeETyei/vFX2 mxSEuV/L//OIC9zNPS+2f7Pqo+C2bbTWtdveVVC5dprjkJoRRZG9lR1VGVfvfQ5Zs96DAS pFDdt5GdZF7vlN8yV88y/4nlAD76r4HnKMSwgpDFaa9alyPpi0V99SJ7T5AEvZvpD0u1Uv mgwcxpT1DcnP10higuRsLYJzm88LxLVCCYJvs8nVyCrgUd+LF73O51q9v8L+fQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Q86lF0rd2z13D2; Sun, 30 Apr 2023 00:33:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 33U0XTG9043171; Sun, 30 Apr 2023 00:33:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33U0XTqr043170; Sun, 30 Apr 2023 00:33:29 GMT (envelope-from git) Date: Sun, 30 Apr 2023 00:33:29 GMT Message-Id: <202304300033.33U0XTqr043170@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jose Alonso Cardenas Marquez Subject: git: 830b1bd0714c - main - devel/py-ratelim: New port: Makes it easy to respect rate limits List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: acm X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 830b1bd0714ca15eb725e9fef45033ea82ca00a3 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by acm: URL: https://cgit.FreeBSD.org/ports/commit/?id=830b1bd0714ca15eb725e9fef45033ea82ca00a3 commit 830b1bd0714ca15eb725e9fef45033ea82ca00a3 Author: Jose Alonso Cardenas Marquez AuthorDate: 2023-04-29 23:50:32 +0000 Commit: Jose Alonso Cardenas Marquez CommitDate: 2023-04-29 23:50:32 +0000 devel/py-ratelim: New port: Makes it easy to respect rate limits Ratelim is a simple Python library that limits the number of times a function can be called during a time interval. It is particularly useful when using online APIs, which commonly enforce rate limits. Features - Works in Py2 and Py3. - Greedy and patient rate limiting. - Preserves function signature. --- devel/Makefile | 1 + devel/py-ratelim/Makefile | 20 ++++++++++++++++++++ devel/py-ratelim/distinfo | 3 +++ devel/py-ratelim/pkg-descr | 9 +++++++++ 4 files changed, 33 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index c7ced4982b07..8ad10b2bbd4c 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5393,6 +5393,7 @@ SUBDIR += py-rapidfuzz SUBDIR += py-rapidfuzz-capi SUBDIR += py-rapidfuzz2 + SUBDIR += py-ratelim SUBDIR += py-ratelimiter SUBDIR += py-rauth SUBDIR += py-raven diff --git a/devel/py-ratelim/Makefile b/devel/py-ratelim/Makefile new file mode 100644 index 000000000000..2419e71315be --- /dev/null +++ b/devel/py-ratelim/Makefile @@ -0,0 +1,20 @@ +PORTNAME= ratelim +PORTVERSION= 0.1.6 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= acm@FreeBSD.org +COMMENT= Makes it easy to respect rate limits +WWW= https://github.com/themiurgo/ratelim + +LICENSE= MIT + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}decorator>0:devel/py-decorator@${PY_FLAVOR} + +USES= python:3.6+ +USE_PYTHON= autoplist distutils + +NO_ARCH= yes + +.include diff --git a/devel/py-ratelim/distinfo b/devel/py-ratelim/distinfo new file mode 100644 index 000000000000..3a00f1c3ffab --- /dev/null +++ b/devel/py-ratelim/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1680320725 +SHA256 (ratelim-0.1.6.tar.gz) = 826d32177e11f9a12831901c9fda6679fd5bbea3605910820167088f5acbb11d +SIZE (ratelim-0.1.6.tar.gz) = 2793 diff --git a/devel/py-ratelim/pkg-descr b/devel/py-ratelim/pkg-descr new file mode 100644 index 000000000000..d66a0a20baca --- /dev/null +++ b/devel/py-ratelim/pkg-descr @@ -0,0 +1,9 @@ +Ratelim is a simple Python library that limits the number of times a function +can be called during a time interval. It is particularly useful when using +online APIs, which commonly enforce rate limits. + +Features + +- Works in Py2 and Py3. +- Greedy and patient rate limiting. +- Preserves function signature.