slackbuilds_ponce/python/python3-klepto
Vijay Marcel 7bb10a46ed
python/python3-klepto: Updated for version 0.2.5.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2024-02-16 21:58:01 +07:00
..
python3-klepto.info
python3-klepto.SlackBuild
README
slack-desc

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

klepto extends Pythons 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 functions input
signature to a unique dictionary, where the functions 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 its cache.

optional requirements:

h5py, >=2.8.0
pandas, >=0.17.0
sqlalchemy, >=1.4.0
jsonpickle, >=0.9.6
cloudpickle, >=0.5.2