www/py-requests-cache 1.2.1_1 MidnightBSD
Persistent cache for python requests
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- License
- bsd2
- Categories
- www, python
Description
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
In the other systems
| System | Port | Version |
|---|---|---|
| MidnightBSD | www/py-requests-cache | 1.2.1_1 |
| FreeBSD | www/py-requests-cache | 1.3.3 |
| OpenBSD | www/py-requests-cache | 1.3.2 |
| DragonFly | www/py-requests-cache | 1.2.1 |
| HardenedBSD | www/py-requests-cache | 1.3.3 |
| GhostBSD | www/py-requests-cache | 1.3.3 |
Install
Binary package:
mport install ${PYTHON_PKGNAMEPREFIX}requests-cache
From mports:
cd /usr/mports/www/py-requests-cache && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests-cache>0:www/py-requests-cache
Dependencies
As this port's Makefile names them.
Build 1
${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0: devel/py-poetry-core
Runtime 6
${PYTHON_PKGNAMEPREFIX}attrs>=21.2: devel/py-attrs${PYTHON_PKGNAMEPREFIX}cattrs>=22.2: devel/py-cattrs${PYTHON_PKGNAMEPREFIX}platformdirs>=2.5: devel/py-platformdirs${PYTHON_PKGNAMEPREFIX}requests>=2.22: www/py-requests${PYTHON_PKGNAMEPREFIX}url-normalize>=1.4: net/py-url-normalize${PYTHON_PKGNAMEPREFIX}urllib3>=1.25.5,1: net/py-urllib3
Build dependencies 1
Run dependencies 6
No port depends on this one.
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| requests_cache-1.2.1.tar.gz | 3.018209e+06 | 68abc986fdc5b8d0911318fbb5f7c80eebcd4d01bfacc6685ecf8876052511d1 |
Master sites 1
- PYPI