notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photosAll times are UTC
Ukraine
Port details
py-klepto Persistent caching to memory, disk, or database
0.2.6 devel on this many watch lists=2 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 0.2.5Version of this port present on the latest quarterly branch.
Maintainer: sunpoet@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2023-04-18 18:09:20
Last Update: 2024-10-14 05:25:31
Commit Hash: 3495f0f
People watching this port, also watch:: jdictionary, py311-Automat, py311-python-gdsii, py39-PyOpenGL, p5-Sane
Also Listed In: python
License: BSD3CLAUSE
WWW:
https://klepto.readthedocs.io/en/latest/
https://github.com/uqfoundation/klepto
Description:
klepto extends Python's lru_cache to utilize different keymaps and alternate caching algorithms, such as lfu_cache and mru_cache. While caching is meant for fast access to saved results, klepto also has archiving capabilities, for longer-term storage. klepto uses a simple dictionary-sytle interface for all caches and archives, and all caches can be applied to any Python function as a decorator. Keymaps are algorithms for converting a function's input signature to a unique dictionary, where the function's results are the dictionary value. Thus for y = f(x), y will be stored in cache[x] (e.g. {x:y}). klepto provides both standard and "safe" caching, where "safe" caches are slower but can recover from hashing errors. klepto is intended to be used for distributed and parallel computing, where several of the keymaps serialize the stored objects. Caches and archives are intended to be read/write accessible from different threads and processes. klepto enables a user to decorate a function, save the results to a file or database archive, close the interpreter, start a new session, and reload the function and it's cache.
HomepageHomepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
There is no configure plist information for this port.
Dependency lines:
  • ${PYTHON_PKGNAMEPREFIX}klepto>0:devel/py-klepto@${PY_FLAVOR}
To install the port:
cd /usr/ports/devel/py-klepto/ && make install clean
To add the package, run one of these commands:
  • pkg install devel/py-klepto
  • pkg install py311-klepto
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
NOTE: This is a Python port. Instead of py311-klepto listed in the above command, you can pick from the names under the Packages section.
PKGNAME: py311-klepto
Package flavors (<flavor>: <package>)
  • py311: py311-klepto
distinfo:
TIMESTAMP = 1728632362 SHA256 (klepto-0.2.6.tar.gz) = a59b3b36a6a0f0155c373f20326790b0f96eddb981e7cbe2482024f2b94ca75c SIZE (klepto-0.2.6.tar.gz) = 158595

Packages (timestamps in pop-ups are UTC):
py39-klepto
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest--------
FreeBSD:13:quarterly--0.2.3--0.2.40.2.40.2.4
FreeBSD:14:latest-----0.2.3-0.2.3
FreeBSD:14:quarterly-----0.2.40.2.40.2.4
FreeBSD:15:latest--n/a-n/a0.2.40.2.40.2.5
 

py311-klepto
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest0.2.60.2.6-0.2.60.2.6---
FreeBSD:13:quarterly0.2.50.2.5-0.2.50.2.5---
FreeBSD:14:latest0.2.60.2.6-0.2.60.2.6---
FreeBSD:14:quarterly0.2.50.2.5-0.2.50.2.5---
FreeBSD:15:latest0.2.60.2.6n/a0.2.6n/a---
 

Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. py311-setuptools>=42 : devel/py-setuptools@py311
  2. py311-wheel>=0 : devel/py-wheel@py311
  3. python3.11 : lang/python311
  4. py311-build>=0 : devel/py-build@py311
  5. py311-installer>=0 : devel/py-installer@py311
Test dependencies:
  1. python3.11 : lang/python311
Runtime dependencies:
  1. py311-dill>=0.3.9 : devel/py-dill@py311
  2. py311-pox>=0.3.5 : devel/py-pox@py311
  3. python3.11 : lang/python311
This port is required by:
for Run
  1. devel/py-mystic

Configuration Options:
No options to configure
Options name:
devel_py-klepto
USES:
python
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (2 items)
Collapse this list.
  1. https://files.pythonhosted.org/packages/source/k/klepto/
  2. https://pypi.org/packages/source/k/klepto/
Collapse this list.

Number of commits found: 7

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
0.2.6
14 Oct 2024 05:25:31
commit hash: 3495f0f0bc47758c7d98bd15337c23e84e69a27fcommit hash: 3495f0f0bc47758c7d98bd15337c23e84e69a27fcommit hash: 3495f0f0bc47758c7d98bd15337c23e84e69a27fcommit hash: 3495f0f0bc47758c7d98bd15337c23e84e69a27f files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/py-klepto: Update to 0.2.6

Changes:	https://github.com/uqfoundation/klepto/releases
0.2.5
09 Mar 2024 14:05:50
commit hash: 948683ceab2f71dd540ba96c04739e7954bf933acommit hash: 948683ceab2f71dd540ba96c04739e7954bf933acommit hash: 948683ceab2f71dd540ba96c04739e7954bf933acommit hash: 948683ceab2f71dd540ba96c04739e7954bf933a files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/py-klepto: Update version requirement of RUN_DEPENDS
0.2.5
21 Feb 2024 15:07:25
commit hash: dc58ef254fe37d74dd53cf9f9171a658bc136ec8commit hash: dc58ef254fe37d74dd53cf9f9171a658bc136ec8commit hash: dc58ef254fe37d74dd53cf9f9171a658bc136ec8commit hash: dc58ef254fe37d74dd53cf9f9171a658bc136ec8 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/py-klepto: Update to 0.2.5

Changes:	https://github.com/uqfoundation/klepto/releases
0.2.4
16 Aug 2023 18:25:27
commit hash: cae7c487a3f650fd4e434886b44ff4dbba82f3c8commit hash: cae7c487a3f650fd4e434886b44ff4dbba82f3c8commit hash: cae7c487a3f650fd4e434886b44ff4dbba82f3c8commit hash: cae7c487a3f650fd4e434886b44ff4dbba82f3c8 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/py-klepto: Update to 0.2.4

- Update WWW

Changes:	https://github.com/uqfoundation/klepto/releases
0.2.3
18 Jul 2023 00:53:09
commit hash: 9a80a6ee5e8ebf5c279b3d7a9e7e8b7dbabbaf0acommit hash: 9a80a6ee5e8ebf5c279b3d7a9e7e8b7dbabbaf0acommit hash: 9a80a6ee5e8ebf5c279b3d7a9e7e8b7dbabbaf0acommit hash: 9a80a6ee5e8ebf5c279b3d7a9e7e8b7dbabbaf0a files touched by this commit
Charlie Li (vishwin) search for other commits by this committer
devel/py-setuptools: convert individual consumers to ${PY_SETUPTOOLS}

Currently a no-op, but in the future outputs the correct setuptools
port depending on whether USES_PYTHON=distutils is specified.

With hat: python
PR: 270510, 270358
0.2.3
27 Jun 2023 19:34:34
commit hash: 3d9a815d9c5acbb71f4bb07738bdeab4879feacbcommit hash: 3d9a815d9c5acbb71f4bb07738bdeab4879feacbcommit hash: 3d9a815d9c5acbb71f4bb07738bdeab4879feacbcommit hash: 3d9a815d9c5acbb71f4bb07738bdeab4879feacb files touched by this commit
Rene Ladan (rene) search for other commits by this committer
all: remove explicit versions in USES=python for "3.x+"

The logic in USES=python will automatically convert this to 3.8+ by
itself.

Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.

finance/quickfix: mark BROKEN with PYTHON

libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++
-DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable
-Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong
-fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi
-Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings
-Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x
-MT _quickfix_la-QuickfixPython.lo -MD -MP -MF
.deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp  -fPIC -DPIC -o
.libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean
'-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
          ^~~~~~~~~~
1 warning and 1 error generated.

Reviewed by:	portmgr, vishwin, yuri
Differential Revision:	<https://reviews.freebsd.org/D40568>
0.2.3
18 Apr 2023 18:00:40
commit hash: 36ae8f643ea4d811693c6cf3af8cc0fee8e8df65commit hash: 36ae8f643ea4d811693c6cf3af8cc0fee8e8df65commit hash: 36ae8f643ea4d811693c6cf3af8cc0fee8e8df65commit hash: 36ae8f643ea4d811693c6cf3af8cc0fee8e8df65 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/py-klepto: Add py-klepto 0.2.3

klepto extends Python's lru_cache to utilize different keymaps and alternate
caching algorithms, such as lfu_cache and mru_cache. While caching is meant for
fast access to saved results, klepto also has archiving capabilities, for
longer-term storage. klepto uses a simple dictionary-sytle interface for all
caches and archives, and all caches can be applied to any Python function as a
decorator. Keymaps are algorithms for converting a function's input signature to
a unique dictionary, where the function's results are the dictionary value. Thus
for y = f(x), y will be stored in cache[x] (e.g. {x:y}).

klepto provides both standard and "safe" caching, where "safe" caches are slower
but can recover from hashing errors. klepto is intended to be used for
distributed and parallel computing, where several of the keymaps serialize the
stored objects. Caches and archives are intended to be read/write accessible
from different threads and processes. klepto enables a user to decorate a
function, save the results to a file or database archive, close the interpreter,
start a new session, and reload the function and it's cache.

Number of commits found: 7