Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devel/py-hishel: Add py-hishel 0.0.25
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.
- Loading branch information
Showing
4 changed files
with
47 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,25 @@ | ||
PORTNAME= hishel | ||
PORTVERSION= 0.0.25 | ||
CATEGORIES= devel python | ||
MASTER_SITES= PYPI | ||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | ||
|
||
MAINTAINER= sunpoet@FreeBSD.org | ||
COMMENT= Persistent cache implementation for httpx and httpcore | ||
WWW= https://hishel.com/ \ | ||
https://github.com/karpetrosyan/hishel | ||
|
||
LICENSE= BSD3CLAUSE | ||
LICENSE_FILE= ${WRKSRC}/LICENSE | ||
|
||
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatch-fancy-pypi-readme>=0:devel/py-hatch-fancy-pypi-readme@${PY_FLAVOR} \ | ||
${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR} | ||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}httpx>=0.22.0:www/py-httpx@${PY_FLAVOR} \ | ||
${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.8.0:devel/py-typing-extensions@${PY_FLAVOR} | ||
|
||
USES= python | ||
USE_PYTHON= autoplist concurrent pep517 | ||
|
||
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 = 1711860455 | ||
SHA256 (hishel-0.0.25.tar.gz) = ddb22ee32c656e3c75cd05efefd1165c5fbd1c3f023edffda684f5125625700b | ||
SIZE (hishel-0.0.25.tar.gz) = 28285 |
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,18 @@ | ||
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. |