Skip to content

Commit

Permalink
devel/py-hishel: Add py-hishel 0.0.25
Browse files Browse the repository at this point in the history
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
sunpoet committed Mar 31, 2024
1 parent 2e5dc08 commit 31e3383
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Expand Up @@ -4835,6 +4835,7 @@
SUBDIR += py-hglib
SUBDIR += py-hgtools
SUBDIR += py-hidraw
SUBDIR += py-hishel
SUBDIR += py-holidays
SUBDIR += py-hologram
SUBDIR += py-homebase
Expand Down
25 changes: 25 additions & 0 deletions devel/py-hishel/Makefile
@@ -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>
3 changes: 3 additions & 0 deletions devel/py-hishel/distinfo
@@ -0,0 +1,3 @@
TIMESTAMP = 1711860455
SHA256 (hishel-0.0.25.tar.gz) = ddb22ee32c656e3c75cd05efefd1165c5fbd1c3f023edffda684f5125625700b
SIZE (hishel-0.0.25.tar.gz) = 28285
18 changes: 18 additions & 0 deletions devel/py-hishel/pkg-descr
@@ -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.

0 comments on commit 31e3383

Please sign in to comment.