devel/py-klepto 0.2.8 FreeBSD
Persistent caching to memory, disk, or database
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- BSD3CLAUSE
- Categories
- devel, python
- Package size
- 152.2 KiB, 1197.7 KiB installed
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.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/py-klepto | 0.2.8 |
| DragonFly | devel/py-klepto | 0.2.6 |
| HardenedBSD | devel/py-klepto | 0.2.8 |
| GhostBSD | devel/py-klepto | 0.2.8 |
Install
Binary package:
pkg install py312-klepto
From the ports tree:
cd /usr/ports/devel/py-klepto/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-klepto>0:devel/py-klepto
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.2.8 | 0.2.8 | - | 0.2.7 | 0.2.8 |
| FreeBSD:14:quarterly | 0.2.8 | 0.2.8 | n/a | 0.2.7 | 0.2.8 |
| FreeBSD:15:latest | 0.2.8 | 0.2.8 | n/a | 0.2.7 | 0.2.7 |
| FreeBSD:15:quarterly | 0.2.8 | 0.2.8 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.2.8 | 0.2.8 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 2
${PYTHON_PKGNAMEPREFIX}setuptools>=42: devel/py-setuptools${PYTHON_PKGNAMEPREFIX}wheel>=0: devel/py-wheel
Runtime 2
${PYTHON_PKGNAMEPREFIX}dill>=0.4.1: devel/py-dill${PYTHON_PKGNAMEPREFIX}pox>=0.3.7: devel/py-pox
The full lists below include those, and their dependencies in turn.
Build dependencies 16
Run dependencies 9
Required by 1
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| klepto-0.2.8.tar.gz | 158590 | 0f02cf17ea5963645600d69c50275f9b43d04dbfc1c019eed6c9008d952240b4 |
Master sites 1
- PYPI
Commit history 0
No commits in the history this site was built from.