cachetory


Namecachetory JSON
Version 3.5.1 PyPI version JSON
download
home_pagehttps://github.com/kpn/cachetory
SummaryCaching library with support for multiple cache backends
upload_time2025-07-14 11:38:11
maintainerNone
docs_urlNone
authorPavel Perestoronin
requires_python<4.0.0,>=3.9.0
licenseApache-2.0
keywords cache
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Cachetory

[![PyPI](https://img.shields.io/pypi/v/cachetory?logo=python&logoColor=yellow)](https://pypi.org/project/cachetory/)
[![Python versions](https://img.shields.io/pypi/pyversions/cachetory?logo=python&logoColor=yellow)](https://pypi.org/project/cachetory/)
[![Checks](https://img.shields.io/github/actions/workflow/status/kpn/cachetory/check.yml?label=checks&logo=github)](https://github.com/kpn/cachetory/actions/workflows/check.yml)
[![Coverage](https://codecov.io/gh/kpn/cachetory/branch/main/graph/badge.svg?token=UNYTTvxiWk)](https://codecov.io/gh/kpn/cachetory)
![Code style](https://img.shields.io/badge/code%20style-ruff-000000.svg)

## Documentation

<a href="https://kpn.github.io/cachetory/">
    <img alt="Documentation" height="30em" src="https://img.shields.io/github/actions/workflow/status/kpn/cachetory/docs.yml?label=documentation&logo=github">
</a>

## Sneak peak

```python
from cachetory import serializers
from cachetory.backends import async_ as async_backends
from cachetory.caches.async_ import Cache


cache = Cache[int, bytes](
    serializer=serializers.from_url("pickle://?pickle-protocol=4"),
    backend=async_backends.from_url("redis://localhost:6379"),
)

async def main() -> None:
    await cache.set("foo", 42)
    assert await cache.get("foo") == 42
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/kpn/cachetory",
    "name": "cachetory",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0.0,>=3.9.0",
    "maintainer_email": null,
    "keywords": "cache",
    "author": "Pavel Perestoronin",
    "author_email": "pavel.perestoronin@kpn.com",
    "download_url": "https://files.pythonhosted.org/packages/31/ba/f4fa5e02df367b76a854eeb47a16dd1e5cf530495172381ad1e04be3c8d1/cachetory-3.5.1.tar.gz",
    "platform": null,
    "description": "# Cachetory\n\n[![PyPI](https://img.shields.io/pypi/v/cachetory?logo=python&logoColor=yellow)](https://pypi.org/project/cachetory/)\n[![Python versions](https://img.shields.io/pypi/pyversions/cachetory?logo=python&logoColor=yellow)](https://pypi.org/project/cachetory/)\n[![Checks](https://img.shields.io/github/actions/workflow/status/kpn/cachetory/check.yml?label=checks&logo=github)](https://github.com/kpn/cachetory/actions/workflows/check.yml)\n[![Coverage](https://codecov.io/gh/kpn/cachetory/branch/main/graph/badge.svg?token=UNYTTvxiWk)](https://codecov.io/gh/kpn/cachetory)\n![Code style](https://img.shields.io/badge/code%20style-ruff-000000.svg)\n\n## Documentation\n\n<a href=\"https://kpn.github.io/cachetory/\">\n    <img alt=\"Documentation\" height=\"30em\" src=\"https://img.shields.io/github/actions/workflow/status/kpn/cachetory/docs.yml?label=documentation&logo=github\">\n</a>\n\n## Sneak peak\n\n```python\nfrom cachetory import serializers\nfrom cachetory.backends import async_ as async_backends\nfrom cachetory.caches.async_ import Cache\n\n\ncache = Cache[int, bytes](\n    serializer=serializers.from_url(\"pickle://?pickle-protocol=4\"),\n    backend=async_backends.from_url(\"redis://localhost:6379\"),\n)\n\nasync def main() -> None:\n    await cache.set(\"foo\", 42)\n    assert await cache.get(\"foo\") == 42\n```\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Caching library with support for multiple cache backends",
    "version": "3.5.1",
    "project_urls": {
        "Homepage": "https://github.com/kpn/cachetory",
        "Repository": "https://github.com/kpn/cachetory"
    },
    "split_keywords": [
        "cache"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "88dfafb7f4f68d4afeae66f6de3e096f0ae7d394c84e41e5033d4d14f3b50168",
                "md5": "27bfbbc6ff93232cbbe03d9f80d72221",
                "sha256": "3ec01fd7f68d5370342f8c9901e8fb6b7b6d9080ceb161cffac94b829e3cdf22"
            },
            "downloads": -1,
            "filename": "cachetory-3.5.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "27bfbbc6ff93232cbbe03d9f80d72221",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0.0,>=3.9.0",
            "size": 37805,
            "upload_time": "2025-07-14T11:38:10",
            "upload_time_iso_8601": "2025-07-14T11:38:10.021088Z",
            "url": "https://files.pythonhosted.org/packages/88/df/afb7f4f68d4afeae66f6de3e096f0ae7d394c84e41e5033d4d14f3b50168/cachetory-3.5.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "31baf4fa5e02df367b76a854eeb47a16dd1e5cf530495172381ad1e04be3c8d1",
                "md5": "6dda1fcee28141723ee884a124d7459b",
                "sha256": "d5229cceec2ebae6e5f579dd885edcd47ac3ef5eb1f41b69d107549502ae1a88"
            },
            "downloads": -1,
            "filename": "cachetory-3.5.1.tar.gz",
            "has_sig": false,
            "md5_digest": "6dda1fcee28141723ee884a124d7459b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0.0,>=3.9.0",
            "size": 20011,
            "upload_time": "2025-07-14T11:38:11",
            "upload_time_iso_8601": "2025-07-14T11:38:11.171515Z",
            "url": "https://files.pythonhosted.org/packages/31/ba/f4fa5e02df367b76a854eeb47a16dd1e5cf530495172381ad1e04be3c8d1/cachetory-3.5.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-14 11:38:11",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "kpn",
    "github_project": "cachetory",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "cachetory"
}
        
Elapsed time: 2.97997s