devel/py-hishel 1.4.0 FreeBSD
Elegant HTTP Caching for Python
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Last update
- Commit
c7f1c8c991- License
- BSD3CLAUSE
- Categories
- devel, python
- Package size
- 125.5 KiB, 883.0 KiB installed
Description
Hishel is a library that implements HTTP Caching for HTTPX and HTTP Core libraries in accordance with RFC 9111, the most recent caching specification.
Features:
- Persistence: Responses are cached in the persistent memory for later use.
- Compatibility: It is completely compatible with your existing transports or connection pools, whether they are default, custom, or provided by third-party libraries.
- Easy to use: You continue to use httpx while also enabling web cache.
- Smart: Attempts to clearly implement RFC 9111, understands Vary, Etag, Last-Modified, Cache-Control, and Expires headers, and handles response re-validation automatically.
- Configurable: You have complete control over how the responses are stored and serialized.
- From the package:
- Built-in support for File system, Redis, SQLite, and AWS S3 backends.
- Built-in support for JSON, YAML, and pickle serializers.
- Very fast: Your requests will be even faster if there are no IO operations.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/py-hishel | 1.4.0 |
| DragonFly | devel/py-hishel | 0.1.1 |
| HardenedBSD | devel/py-hishel | 1.4.0 |
| GhostBSD | devel/py-hishel | 1.4.0 |
Install
Binary package:
pkg install py312-hishel
From the ports tree:
cd /usr/ports/devel/py-hishel/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-hishel>0:devel/py-hishel
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.4.0 | 1.4.0 | - | 0.1.3 | 1.4.0 |
| FreeBSD:14:quarterly | 1.4.0 | 1.4.0 | n/a | 0.1.2 | 1.4.0 |
| FreeBSD:15:latest | 1.4.0 | 1.4.0 | n/a | 0.1.3 | 0.1.3 |
| FreeBSD:15:quarterly | 1.4.0 | 1.4.0 | n/a | n/a | n/a |
| FreeBSD:16:latest | 1.4.0 | 1.4.0 | 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>=0: devel/py-hatchling
Runtime 2
${PYTHON_PKGNAMEPREFIX}msgpack>=1.1.2: devel/py-msgpack${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.14.1: devel/py-typing-extensions
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 21
- databases/py-anysqlite
- devel/gettext-runtime
- devel/libffi
- devel/py-anyio
- devel/py-msgpack
- devel/py-typing-extensions
- devel/readline
- dns/py-idna
- lang/python312
- math/mpdecimal
- net/py-h11
- net/py-socksio
- print/indexinfo
- security/py-certifi
- security/py-truststore
- textproc/expat2
- www/py-h2
- www/py-hpack
- www/py-httpcore
- www/py-httpx
- www/py-hyperframe
Required by 1
Configuration
Options name: devel_hishel
| Option | Default | Description |
|---|---|---|
| ASYNC | off | Asynchronous support |
| FASTAPI | off | FastAPI support |
| HTTPX | on | HTTPX support |
| HTTPX2 | off | HTTPX2 support |
| REDIS | off | Redis key-value store database support |
| REQUESTS | off | Requests support |
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| hishel-1.4.0.tar.gz | 813499 | e406b052c658ce28629fc31423b9914b637d47d7c923f5fe9e288ec47e4823d1 |
Master sites 1
- PYPI