{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/17"},{"label":"Scientific/Engineering","url":"https://skillfed.io/packages/category/scientific-engineering/8"},{"label":"Database","url":"https://skillfed.io/packages/category/database/5"}],"enrichment":{"capability":"klepto provides multiple caching algorithms (LRU, LFU, MRU, random-replacement) and persistent archiving to files, databases, or HDF5, with a dictionary-style interface and function decorator support.","skillfed_tags":["caching","memoization","distributed-computing"],"use_cases":["Cache expensive computations across multiple Python sessions by saving results to disk or database","Decorate functions in distributed workflows where multiple workers need access to the same cached results","Implement custom caching strategies (LFU, MRU) instead of only LRU for domain-specific performance tuning","Archive function call results to SQL or HDF5 for long-term storage and analysis","Build fault-tolerant parallel applications that can recover cached state after restart"],"what_it_does":"klepto extends Python's standard caching with multiple replacement strategies and persistent storage backends. It provides LRU, LFU, MRU, and random-replacement caching algorithms, each available in standard and \"safe\" variants that recover from hashing errors. Beyond in-memory caching, klepto archives function results to files, SQL databases, or HDF5 files using a dictionary-style interface, enabling cache reuse across interpreter sessions.\n\nThe package is designed for distributed and parallel computing where caches need to be shared across threads and processes. It uses keymaps to convert function arguments into cache keys, supporting raw objects, hashes, strings, or serialized forms. klepto depends on dill for serialization and pox for utilities, and is part of the larger pathos framework for heterogeneous computing.","worth_installing":"Yes. klepto is actively maintained, has low install friction, carries a permissive license, and fills a genuine gap for persistent, multi-algorithm caching in distributed settings. It's stable (Production/Stable status) with no known vulnerabilities. Install it if you need caching beyond functools.lru_cache or persistent result archiving; skip it if simple in-memory caching suffices."},"id":"klepto","links":{"html":"https://skillfed.io/packages/klepto","md":"https://skillfed.io/packages/klepto.md","pypi":"https://pypi.org/project/klepto/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-01-19","license_spdx":null,"license_treatment":"permissive","name":"klepto","python_support":"supports_current","summary":"persistent caching to memory, disk, or database"},"popularity":{"monthly_downloads":96083,"position":13232,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.2.8"}
