{"added":null,"apiVersion":1,"behindSince":null,"buildDepends":[],"categories":["devel","python"],"comment":"Persistent caching to memory, disk, or database","compare":null,"dependentCount":null,"description":"klepto extends Python's lru_cache to utilize different keymaps and alternate\ncaching algorithms, such as lfu_cache and mru_cache. While caching is meant for\nfast access to saved results, klepto also has archiving capabilities, for\nlonger-term storage. klepto uses a simple dictionary-sytle interface for all\ncaches and archives, and all caches can be applied to any Python function as a\ndecorator. Keymaps are algorithms for converting a function's input signature to\na unique dictionary, where the function's results are the dictionary value. Thus\nfor y = f(x), y will be stored in cache[x] (e.g. {x:y}).\n\nklepto provides both standard and \"safe\" caching, where \"safe\" caches are slower\nbut can recover from hashing errors. klepto is intended to be used for\ndistributed and parallel computing, where several of the keymaps serialize the\nstored objects. Caches and archives are intended to be read/write accessible\nfrom different threads and processes. klepto enables a user to decorate a\nfunction, save the results to a file or database archive, close the interpreter,\nstart a new session, and reload the function and it's cache.","flavors":[],"html":"https://daemonports.org/dragonfly/devel/py-klepto/","kind":"port","lastUpdate":null,"license":["BSD3CLAUSE"],"maintainer":"sunpoet@FreeBSD.org","name":"py311-klepto","newest":false,"newestVersion":"0.2.8","noVulnData":false,"origin":"devel/py-klepto","otherSystems":[{"maintainer":"sunpoet@FreeBSD.org","newest":true,"origin":"devel/py-klepto","path":"/devel/py-klepto/","system":"FreeBSD","version":"0.2.8"},{"maintainer":"sunpoet@FreeBSD.org","newest":true,"noVulnData":true,"origin":"devel/py-klepto","path":"","system":"HardenedBSD","version":"0.2.8"},{"maintainer":"sunpoet@FreeBSD.org","newest":true,"noVulnData":true,"origin":"devel/py-klepto","path":"","system":"GhostBSD","version":"0.2.8"}],"packages":null,"pkgName":"py311-klepto-0.2.6","related":null,"repository":"DPorts","requiredBy":["devel/py-mystic"],"requiredByCount":1,"runDepends":["devel/py-dill","devel/py-pox","lang/python311"],"status":null,"system":"dragonfly","systemLabel":"DragonFly","version":"0.2.6","versions":null,"vulnerabilities":null,"www":"https://klepto.readthedocs.io/en/latest/"}
