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.1.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

cachestore-0.3.1-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

Details for the file cachestore-0.3.1.tar.gz.

File metadata

  • Download URL: cachestore-0.3.1.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.2 Linux/6.5.0-1021-azure

File hashes

Hashes for cachestore-0.3.1.tar.gz
Algorithm Hash digest
SHA256 d3f9efbbcafc52e3655cf9aa17e3a88784f618a73c0c3821bc955553f6e9554b
MD5 768e04c9c7a1ba25fc2e4a30ee57bd3f
BLAKE2b-256 1d9874b48160be8b2b4245cdedf57a05b7236c78a96e769246b4722869912ce7

See more details on using hashes here.

File details

Details for the file cachestore-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: cachestore-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 22.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.2 Linux/6.5.0-1021-azure

File hashes

Hashes for cachestore-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b10ba85e1a495966fd87fa4d754d1974187bb693a467369c49ace6ddfadb3404
MD5 217514fb5adabce29c2ba8cf64ebbfcc
BLAKE2b-256 6224be1f9448823c5aac6852a581aed0cd6ad51408c36fd472804b53193c02ae

See more details on using hashes here.

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