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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cachestore-0.4.0-py3-none-any.whl (23.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cachestore-0.4.0.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.1 Linux/6.8.0-1021-azure

File hashes

Hashes for cachestore-0.4.0.tar.gz
Algorithm Hash digest
SHA256 7f4213efb6b66e83576b3bea46e202f2bdd144f6306015b90e78a5ea18183867
MD5 0037db0fbea4ac94f8aad3861825bd45
BLAKE2b-256 b1098faf515511ca3d63eb71296fa976be0ba9bec25f84387cf6ed5f980ab87e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cachestore-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 23.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.1 Linux/6.8.0-1021-azure

File hashes

Hashes for cachestore-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f9e81ff935c6d8e33a402c9ac28e61ef5ff5290931bbba46129a9274cf81ff8c
MD5 32417059cebc469e0c8e6767046ce711
BLAKE2b-256 fc8517a50df34caa12f58f4b8cc9fb0431698c1fea65858576f869244755c5bd

See more details on using hashes here.

Supported by

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