Function Cache Management Tool for Python
Project description
CacheStore
CacheStore is a simple cache management system for Python functions. You can reuse the cached results even accross different executions.
cachestore command enables you to manage the cached results from command line.
Please see --help
for more details.
Features
- Caching execution results by decorating target functions easily
- Exporting caches into an external storage to reuse them access different exeutions
- Detecting appropreate caches based on argumetns/source code of functions
- Changing cache behavior via configuration file (see exmaples)
- Providing a useful command line tool to manage caches
- Written in pure Python, no external dependencies
Installation
pip install cachestore
Usage
Python
from cachestore import Cache
cache = Cache()
@cache()
def awesome_function(x, *, y="y", **kwargs):
...
CLI
$ cachestore --help
usage: cachestore
positional arguments:
{list,prune,remove}
optional arguments:
-h, --help show this help message and exit
--version show program's version number and exit
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cachestore-0.3.1.tar.gz
(15.3 kB
view hashes)
Built Distribution
cachestore-0.3.1-py3-none-any.whl
(22.6 kB
view hashes)
Close
Hashes for cachestore-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b10ba85e1a495966fd87fa4d754d1974187bb693a467369c49ace6ddfadb3404 |
|
MD5 | 217514fb5adabce29c2ba8cf64ebbfcc |
|
BLAKE2b-256 | 6224be1f9448823c5aac6852a581aed0cd6ad51408c36fd472804b53193c02ae |