aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-03-31 18:43:15 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-03-31 18:43:15 +0000
commit31e33834dc077101cd34ad455df685ad345c4fb2 (patch)
tree3fb1847d8bb1ec1b1a57e68cf0971655f3b66f54
parent2e5dc08c1cbed0c123e6d25ea1fbf1a2c5dc8585 (diff)
downloadports-31e33834dc077101cd34ad455df685ad345c4fb2.tar.gz
ports-31e33834dc077101cd34ad455df685ad345c4fb2.zip
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.
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-hishel/Makefile25
-rw-r--r--devel/py-hishel/distinfo3
-rw-r--r--devel/py-hishel/pkg-descr18
4 files changed, 47 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 80c6a2f0d7d9..32e2039ab419 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -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
diff --git a/devel/py-hishel/Makefile b/devel/py-hishel/Makefile
new file mode 100644
index 000000000000..52d2f2d15b12
--- /dev/null
+++ b/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>
diff --git a/devel/py-hishel/distinfo b/devel/py-hishel/distinfo
new file mode 100644
index 000000000000..4025f572e90d
--- /dev/null
+++ b/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
diff --git a/devel/py-hishel/pkg-descr b/devel/py-hishel/pkg-descr
new file mode 100644
index 000000000000..ceb0a2557ac4
--- /dev/null
+++ b/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.