SlackBuilds Repository

15.0 > Python > python3-klepto (0.2.6)

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.

optional requirements:

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

This requires: python3-dill, python3-pox

Maintained by: Vijay Marcel
Keywords: python,klepto,cache,archive
ChangeLog: python3-klepto

Homepage:
https://github.com/uqfoundation/klepto

Source Downloads:
klepto-0.2.6.tar.gz (f056862fd0a267e6f823c8cfc3f6950c)

Download SlackBuild:
python3-klepto.tar.gz
python3-klepto.tar.gz.asc (FAQ)

(the SlackBuild does not include the source)

Validated for Slackware 15.0

See our HOWTO for instructions on how to use the contents of this repository.

Access to the repository is available via:
ftp git cgit http rsync

© 2006-2024 SlackBuilds.org Project. All rights reserved.
Slackware® is a registered trademark of Patrick Volkerding
Linux® is a registered trademark of Linus Torvalds