Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
4 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <bsd.port.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
TIMESTAMP = 1680320725 | ||
SHA256 (ratelim-0.1.6.tar.gz) = 826d32177e11f9a12831901c9fda6679fd5bbea3605910820167088f5acbb11d | ||
SIZE (ratelim-0.1.6.tar.gz) = 2793 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |