Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Mar 2024 18:55:59 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 31e33834dc07 - main - devel/py-hishel: Add py-hishel 0.0.25
Message-ID:  <202403311855.42VItxvu043776@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=31e33834dc077101cd34ad455df685ad345c4fb2

commit 31e33834dc077101cd34ad455df685ad345c4fb2
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-03-31 18:43:15 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-03-31 18:43:15 +0000

    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.
---
 devel/Makefile            |  1 +
 devel/py-hishel/Makefile  | 25 +++++++++++++++++++++++++
 devel/py-hishel/distinfo  |  3 +++
 devel/py-hishel/pkg-descr | 18 ++++++++++++++++++
 4 files changed, 47 insertions(+)

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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202403311855.42VItxvu043776>