cachestore


Namecachestore JSON
Version 0.4.0 PyPI version JSON
download
home_pagehttps://github.com/altescy/cachestore
SummaryFunction Cache Management Tool for Python
upload_time2025-02-19 17:23:40
maintainerNone
docs_urlNone
authoraltescy
requires_python<4.0,>=3.8
licenseMIT
keywords python cache
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # CacheStore

[![Actions Status](https://github.com/altescy/cachestore/workflows/CI/badge.svg)](https://github.com/altescy/cachestore/actions/workflows/ci.yml)
[![Python version](https://img.shields.io/pypi/pyversions/cachestore)](https://github.com/altescy/cachestore)
[![License](https://img.shields.io/github/license/altescy/cachestore)](https://github.com/altescy/cachestore/blob/master/LICENSE)
[![pypi version](https://img.shields.io/pypi/v/cachestore)](https://pypi.org/project/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](./examples))
- Providing a useful command line tool to manage caches
- Written in pure Python, no external dependencies

## Installation

```bash
pip install cachestore
```

## Usage

### Python

```python
from cachestore import Cache

cache = Cache()

@cache()
def awesome_function(x, *, y="y", **kwargs):
    ...
```

### CLI

```bash
$ 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
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/altescy/cachestore",
    "name": "cachestore",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.8",
    "maintainer_email": null,
    "keywords": "python, cache",
    "author": "altescy",
    "author_email": "me@altescy.jp",
    "download_url": "https://files.pythonhosted.org/packages/b1/09/8faf515511ca3d63eb71296fa976be0ba9bec25f84387cf6ed5f980ab87e/cachestore-0.4.0.tar.gz",
    "platform": null,
    "description": "# CacheStore\n\n[![Actions Status](https://github.com/altescy/cachestore/workflows/CI/badge.svg)](https://github.com/altescy/cachestore/actions/workflows/ci.yml)\n[![Python version](https://img.shields.io/pypi/pyversions/cachestore)](https://github.com/altescy/cachestore)\n[![License](https://img.shields.io/github/license/altescy/cachestore)](https://github.com/altescy/cachestore/blob/master/LICENSE)\n[![pypi version](https://img.shields.io/pypi/v/cachestore)](https://pypi.org/project/cachestore/)\n\n**CacheStore** is a simple cache management system for Python functions.\nYou can reuse the cached results even accross different executions.\n\n**cachestore** command enables you to manage the cached results from command line.\nPlease see `--help` for more details.\n\n**Features**\n\n- Caching execution results by decorating target functions easily\n- Exporting caches into an external storage to reuse them access different exeutions\n- Detecting appropreate caches based on argumetns/source code of functions\n- Changing cache behavior via configuration file (see [exmaples](./examples))\n- Providing a useful command line tool to manage caches\n- Written in pure Python, no external dependencies\n\n## Installation\n\n```bash\npip install cachestore\n```\n\n## Usage\n\n### Python\n\n```python\nfrom cachestore import Cache\n\ncache = Cache()\n\n@cache()\ndef awesome_function(x, *, y=\"y\", **kwargs):\n    ...\n```\n\n### CLI\n\n```bash\n$ cachestore --help\nusage: cachestore\n\npositional arguments:\n  {list,prune,remove}\n\noptional arguments:\n  -h, --help           show this help message and exit\n  --version            show program's version number and exit\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Function Cache Management Tool for Python",
    "version": "0.4.0",
    "project_urls": {
        "Homepage": "https://github.com/altescy/cachestore"
    },
    "split_keywords": [
        "python",
        " cache"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fc8517a50df34caa12f58f4b8cc9fb0431698c1fea65858576f869244755c5bd",
                "md5": "32417059cebc469e0c8e6767046ce711",
                "sha256": "f9e81ff935c6d8e33a402c9ac28e61ef5ff5290931bbba46129a9274cf81ff8c"
            },
            "downloads": -1,
            "filename": "cachestore-0.4.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "32417059cebc469e0c8e6767046ce711",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8",
            "size": 23483,
            "upload_time": "2025-02-19T17:23:38",
            "upload_time_iso_8601": "2025-02-19T17:23:38.823191Z",
            "url": "https://files.pythonhosted.org/packages/fc/85/17a50df34caa12f58f4b8cc9fb0431698c1fea65858576f869244755c5bd/cachestore-0.4.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b1098faf515511ca3d63eb71296fa976be0ba9bec25f84387cf6ed5f980ab87e",
                "md5": "0037db0fbea4ac94f8aad3861825bd45",
                "sha256": "7f4213efb6b66e83576b3bea46e202f2bdd144f6306015b90e78a5ea18183867"
            },
            "downloads": -1,
            "filename": "cachestore-0.4.0.tar.gz",
            "has_sig": false,
            "md5_digest": "0037db0fbea4ac94f8aad3861825bd45",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.8",
            "size": 15541,
            "upload_time": "2025-02-19T17:23:40",
            "upload_time_iso_8601": "2025-02-19T17:23:40.538768Z",
            "url": "https://files.pythonhosted.org/packages/b1/09/8faf515511ca3d63eb71296fa976be0ba9bec25f84387cf6ed5f980ab87e/cachestore-0.4.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-19 17:23:40",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "altescy",
    "github_project": "cachestore",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "cachestore"
}
        
Elapsed time: 0.44787s