Skip to main content

Function Cache Management Tool for Python

Project description

CacheStore

Actions Status Python version License pypi version

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.0.tar.gz (15.6 kB view hashes)

Uploaded Source

Built Distribution

cachestore-0.3.0-py3-none-any.whl (23.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page