www/py-requests-cache 1.3.3 FreeBSD
Persistent cache for python requests
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Last update
- Commit
1b7a28d488- License
- BSD2CLAUSE
- Categories
- www, python
- Package size
- 130.6 KiB, 695.8 KiB installed
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 |
|---|---|---|
| FreeBSD | www/py-requests-cache | 1.3.3 |
| OpenBSD | www/py-requests-cache | 1.3.2 |
| NetBSD | devel/py-requests-cache | 1.3.3 |
| DragonFly | www/py-requests-cache | 1.2.1 |
| MidnightBSD | www/py-requests-cache | 1.2.1_1 |
Install
Binary package:
pkg install py312-requests-cache
From the ports tree:
cd /usr/ports/www/py-requests-cache/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-requests-cache>0:www/py-requests-cache
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 1.3.3 | 1.3.3 | 0.9.6 | 1.2.1 | 1.3.3 |
| FreeBSD:14:quarterly | 1.3.3 | 1.3.3 | n/a | 1.2.1 | 1.3.3 |
| FreeBSD:15:latest | 1.3.3 | 1.3.3 | n/a | 1.2.1 | 1.2.1 |
| FreeBSD:15:quarterly | 1.3.3 | 1.3.3 | n/a | n/a | n/a |
| FreeBSD:16:latest | 1.3.3 | 1.3.3 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 1
${PYTHON_PKGNAMEPREFIX}hatchling>=1.0.0: devel/py-hatchling
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>=2.0: net/py-url-normalize${PYTHON_PKGNAMEPREFIX}urllib3>=1.25.5,1: net/py-urllib3
The full lists below include those, and their dependencies in turn.
Build dependencies 19
- archivers/liblz4
- archivers/zstd
- devel/gettext-runtime
- devel/libffi
- devel/py-build
- devel/py-hatchling
- devel/py-installer
- devel/py-packaging
- devel/py-pathspec
- devel/py-pluggy
- devel/py-pyproject-hooks
- devel/py-trove-classifiers
- devel/readline
- lang/python312
- lang/python315
- math/mpdecimal
- print/indexinfo
- textproc/expat2
- textproc/py-tomlkit
Run dependencies 18
- devel/gettext-runtime
- devel/libffi
- devel/py-attrs
- devel/py-cattrs
- devel/py-platformdirs
- devel/py-typing-extensions
- devel/readline
- dns/py-idna
- lang/python312
- math/mpdecimal
- net/py-pysocks
- net/py-url-normalize
- net/py-urllib3
- print/indexinfo
- security/py-certifi
- textproc/expat2
- textproc/py-charset-normalizer
- www/py-requests
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| requests_cache-1.3.3.tar.gz | 101179 | 79b72d5ac5143992d1836ad78f4d8e65666061dd44e220548caab3723089826b |
Master sites 1
- PYPI