devel/py-cachey: New port: Caching mindful of computation/storage costs

This commit is contained in:
Yuri Victorovich 2024-12-11 12:46:23 -08:00
parent b38d38c770
commit 8ab7d67491
4 changed files with 32 additions and 0 deletions

View File

@ -4582,6 +4582,7 @@
SUBDIR += py-cabby
SUBDIR += py-cached-property
SUBDIR += py-cachetools
SUBDIR += py-cachey
SUBDIR += py-cacheyou
SUBDIR += py-cachy
SUBDIR += py-cadquery-pywrap

21
devel/py-cachey/Makefile Normal file
View File

@ -0,0 +1,21 @@
PORTNAME= cachey
DISTVERSION= 0.2.1
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Caching mindful of computation/storage costs
WWW= https://github.com/dask/cachey/
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}heapdict>0:devel/py-heapdict@${PY_FLAVOR}
USES= python
USE_PYTHON= distutils autoplist pytest
NO_ARCH= yes
.include <bsd.port.mk>

3
devel/py-cachey/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1733949081
SHA256 (cachey-0.2.1.tar.gz) = 0310ba8afe52729fa7626325c8d8356a8421c434bf887ac851e58dcf7cf056a6
SIZE (cachey-0.2.1.tar.gz) = 6461

View File

@ -0,0 +1,7 @@
cachey implements caching based on computation time and storage space.
Cachey tries to hold on to values that have the following characteristics:
* Expensive to recompute (in seconds)
* Cheap to store (in bytes)
* Frequently used
* Recenty used