{ "info": { "author": "Tim Paine", "author_email": "timothy.k.paine@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "# temporal-cache\nTime-based cache invalidation\n\n[![Build Status](https://travis-ci.org/timkpaine/temporal-cache.svg?branch=master)](https://travis-ci.org/timkpaine/temporal-cache)\n[![Coverage](https://codecov.io/gh/timkpaine/temporal-cache/branch/master/graph/badge.svg)](https://codecov.io/gh/timkpaine/temporal-cache)\n[![Waffle.io](https://badge.waffle.io/timkpaine/temporal-cache.png?label=ready&title=Ready)](https://waffle.io/timkpaine/temporal-cache?utm_source=badge)\n[![BCH compliance](https://bettercodehub.com/edge/badge/timkpaine/temporal-cache?branch=master)](https://bettercodehub.com/)\n[![License](https://img.shields.io/github/license/timkpaine/temporal-cache.svg)](https://pypi.python.org/pypi/temporal-cache/)\n[![PyPI](https://img.shields.io/pypi/v/temporal-cache.svg)](https://pypi.python.org/pypi/temporal-cache/)\n[![Docs](https://img.shields.io/readthedocs/temporal-cache.svg)](https://temporal-cache.readthedocs.io)\n\n\n\n## Why?\nI needed something that would automagically refresh at 4:00pm when markets close.\n\n```python3\n\n @expire(hour=16)\n def fetchFinancialData():\n \n```\n\n## Interval Cache\nThe interval cache expires every `time` interval since its first use\n\n```python3\n\n @interval(seconds=5, minutes=2)\n def myfoo():\n '''myfoo's lru_cache will expire 2 minutes, 5 seconds after last use'''\n```\n\n\n## Expire Cache\nThe expire cache expires on the time given, in scheduler/cron style.\n\n```python3\n\n @expire(second=5, minute=2)\n def myfoo():\n '''myfoo's lru_cache will expire on the second minute, fifth second of every hour, every day, etc'''\n```\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/timkpaine/temporal-cache/archive/v0.0.3.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/timkpaine/temporal-cache", "keywords": "analytics tools", "license": "Apache 2.0", "maintainer": "", "maintainer_email": "", "name": "temporal-cache", "package_url": "https://pypi.org/project/temporal-cache/", "platform": "", "project_url": "https://pypi.org/project/temporal-cache/", "project_urls": { "Download": "https://github.com/timkpaine/temporal-cache/archive/v0.0.3.tar.gz", "Homepage": "https://github.com/timkpaine/temporal-cache" }, "release_url": "https://pypi.org/project/temporal-cache/0.0.3/", "requires_dist": null, "requires_python": "", "summary": "Time based function caching", "version": "0.0.3" }, "last_serial": 4573074, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "7eb45634530b081bec05dffa9045f897", "sha256": "46d219d9baba9052bc74bb435d44163d44985789b450dab4a78381c9ad4e489c" }, "downloads": -1, "filename": "temporal-cache-0.0.1.tar.gz", "has_sig": false, "md5_digest": "7eb45634530b081bec05dffa9045f897", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2177, "upload_time": "2018-12-05T22:16:50", "url": "https://files.pythonhosted.org/packages/eb/4d/21c4c7e7e0d103357d31503239effe31d6902f6493eec02e2d21611f6def/temporal-cache-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "fb462077739e9e0619c85ae2f3323def", "sha256": "dbcc258cb737e88c9e87e5957592003239dc5a89176d49de9f4511ca8cad1036" }, "downloads": -1, "filename": "temporal-cache-0.0.2.tar.gz", "has_sig": false, "md5_digest": "fb462077739e9e0619c85ae2f3323def", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3649, "upload_time": "2018-12-07T17:38:18", "url": "https://files.pythonhosted.org/packages/0b/06/fd6604d9e177db6a6b074a4288f0eb1c4d44f3a83201eea1a3fd9c9c1ba7/temporal-cache-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "f9d85ce86b0e0780b8d5eb4f2745d85f", "sha256": "1d1b83076657473a071e0e219ffc2de3d7fd4864b627124676db4ce8cc4d4de6" }, "downloads": -1, "filename": "temporal-cache-0.0.3.tar.gz", "has_sig": false, "md5_digest": "f9d85ce86b0e0780b8d5eb4f2745d85f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3801, "upload_time": "2018-12-07T19:32:27", "url": "https://files.pythonhosted.org/packages/0d/20/7aa91ff8b6dec41a52bf6cd39d21d2d73901124d4322ac9f47739ae77fd7/temporal-cache-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f9d85ce86b0e0780b8d5eb4f2745d85f", "sha256": "1d1b83076657473a071e0e219ffc2de3d7fd4864b627124676db4ce8cc4d4de6" }, "downloads": -1, "filename": "temporal-cache-0.0.3.tar.gz", "has_sig": false, "md5_digest": "f9d85ce86b0e0780b8d5eb4f2745d85f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3801, "upload_time": "2018-12-07T19:32:27", "url": "https://files.pythonhosted.org/packages/0d/20/7aa91ff8b6dec41a52bf6cd39d21d2d73901124d4322ac9f47739ae77fd7/temporal-cache-0.0.3.tar.gz" } ] }