Skip to content
Snippets Groups Projects
Verified Commit e17e236d authored by sunpoet's avatar sunpoet
Browse files

www/py-requests-cache0: Add py-requests-cache0 0.9.8 (copied from py-requests-cache)

- Update WWW
- Add PORTSCOUT
parent 0eaa0819
No related branches found
No related tags found
No related merge requests found
......@@ -1748,6 +1748,7 @@
SUBDIR += py-requests
SUBDIR += py-requests-aws4auth
SUBDIR += py-requests-cache
SUBDIR += py-requests-cache0
SUBDIR += py-requests-cache93
SUBDIR += py-requests-file
SUBDIR += py-requests-futures
......
PORTNAME= requests-cache
PORTVERSION= 0.9.8
CATEGORIES= www python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= requests_cache-${PORTVERSION}
PKGNAMESUFFIX= 0
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Persistent cache for python requests
WWW= https://requests-cache.readthedocs.io/en/stable/ \
https://github.com/requests-cache/requests-cache
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}appdirs>=1.4.4:devel/py-appdirs@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}attrs>=21.2:devel/py-attrs@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}cattrs>=22.2:devel/py-cattrs@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>=2.22:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}url-normalize>=1.4:net/py-url-normalize@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}urllib3>=1.25.5,1:net/py-urllib3@${PY_FLAVOR}
USES= python
USE_PYTHON= autoplist concurrent pep517
NO_ARCH= yes
PORTSCOUT= limit:^0\.
do-test:
cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v
.include <bsd.port.mk>
TIMESTAMP = 1688166360
SHA256 (requests_cache-0.9.8.tar.gz) = eaed4eb5fd5c392ba5e7cfa000d4ab96b1d32c1a1620f37aa558c43741ac362b
SIZE (requests_cache-0.9.8.tar.gz) = 1508006
requests-cache is a transparent, persistent cache that provides an easy way to
get better performance with the python requests library.
Features:
- Ease of use: Keep using the requests library you're already familiar with. Add
caching with a drop-in replacement for requests.Session, or install globally
to add caching to all requests functions.
- Performance: Get sub-millisecond response times for cached responses. When
they expire, you still save time with conditional requests.
- Persistence: Works with several storage backends including SQLite, Redis,
MongoDB, and DynamoDB; or save responses as plain JSON files, YAML, and more
- Customization: Works out of the box with zero config, but with a robust set of
features for configuring and extending the library to suit your needs
- Expiration: Keep your cache fresh using Cache-Control, eagerly cache
everything for long-term storage, use URL patterns for selective caching, or
any combination of strategies
- Compatibility: Can be combined with other popular libraries based on requests
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment