{ "info": { "author": "Stefan Eiermann", "author_email": "python-org@ultraapp.de", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Software Development" ], "description": "# Python Method Cache\n\n[![Build Status](https://travis-ci.org/eieste/MethodCache.svg?branch=master)](https://travis-ci.org/eieste/MethodCache)\n[![PyPI version](https://badge.fury.io/py/method-cache.svg)](https://badge.fury.io/py/method-cache)\n[![Documentation Status](https://readthedocs.org/projects/methodcache/badge/?version=latest)](https://methodcache.readthedocs.io/en/latest/?badge=latest)\n\n## What it does\n\nMethodCache can be used to cache the result of an method in a flexible way.\nThis libary has no dependencies!\n\n**Currently only TTL Cache available**\n\nThe cache storage can be segmented in categories.\nMethods with the ``@cache`` decorator are saved in these categories.\n\n## Example\n```python\nfrom methodcache import cache, Store\nimport time\n\n# TTL in Seconds (Default TTl is 60)\nst = Store(ttl=60*300)\n\n# Define Store for this Cache, and overwrite Store TTL. And categorize this cache object to demo\n@cache(store=st, ttl=5, category=\"demo\")\ndef doothings(a,b,c):\n # Do here what ever you want.\n # eg. MySQL querys or other slow operations\n time.sleep(2)\n return a+b+c\n\n# Slow Execution\ndoothings(1,2,3)\n# Slow Execution\n\ndoothings(4,5,6)\n\n# Fast Execution because the Cache was used\ndoothings(1,2,3)\ntime.sleep(2)\n\n# Slow Execution because the Cache TTL is Expired\ndoothings(1,2,3)\n\n```\n\n## Documentation\n\n[Read the Docs](https://methodcache.readthedocs.io/en/latest/)\n\nor \nshow ``example.py``", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/eieste/MethodCache", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "method-cache", "package_url": "https://pypi.org/project/method-cache/", "platform": "", "project_url": "https://pypi.org/project/method-cache/", "project_urls": { "Homepage": "https://github.com/eieste/MethodCache" }, "release_url": "https://pypi.org/project/method-cache/1.0.4/", "requires_dist": null, "requires_python": "", "summary": "Simple TTL Cache for methods and there results.", "version": "1.0.4" }, "last_serial": 4873653, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "da5a0df441bdb302917ef9c96b3c0f7a", "sha256": "9ef3c1d8847c8d47de696633c6565f67727a28562eb23f39258d63dd3c07faef" }, "downloads": -1, "filename": "method_cache-0.0.1.tar.gz", "has_sig": false, "md5_digest": "da5a0df441bdb302917ef9c96b3c0f7a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4895, "upload_time": "2019-01-04T21:58:57", "url": "https://files.pythonhosted.org/packages/e6/63/0549621c3603a82eb25bc316cf5e59e4113a783bda7dd5336fb5e92c301b/method_cache-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "d81abef7c38506357ef89c1400797ce9", "sha256": "25e0256234aed14d4c56061bc051e5199bd0f169a4e5d435131bcc735b0ffe4e" }, "downloads": -1, "filename": "method_cache-0.0.2.tar.gz", "has_sig": false, "md5_digest": "d81abef7c38506357ef89c1400797ce9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4910, "upload_time": "2019-01-04T22:41:39", "url": "https://files.pythonhosted.org/packages/22/e2/d86a7f6a31494a825ae7945a145c1e94d995f25373a8826b82a45ca88a35/method_cache-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "3dfc75b141ff03f48f3fcf66af3cda30", "sha256": "f3d313cdce50b6f3e5b345b542469476b70fd3aadf36bc05ea7c0ad016765761" }, "downloads": -1, "filename": "method_cache-0.0.3.tar.gz", "has_sig": false, "md5_digest": "3dfc75b141ff03f48f3fcf66af3cda30", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5301, "upload_time": "2019-01-07T09:57:27", "url": "https://files.pythonhosted.org/packages/82/b7/79f8cf37e7443670b2957962be17448dff62844342fbb7b758c00ba0305b/method_cache-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "92714ca76c39d81b856d94578ac8dd3a", "sha256": "62fd39b1ba1340d8c507d7547a2322c4824ec1edd4b41c9f5dbca116d8ef0b58" }, "downloads": -1, "filename": "method_cache-0.0.4.tar.gz", "has_sig": false, "md5_digest": "92714ca76c39d81b856d94578ac8dd3a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5307, "upload_time": "2019-01-07T10:38:31", "url": "https://files.pythonhosted.org/packages/65/77/3970eba4fed3dbb86e431af36a5bd7bbdd01989161cf8f3d3d0ca49ff2f3/method_cache-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "eb49c8a23656e3889498f6601ce7c2b4", "sha256": "4621197b262142897c33df0fa2872b17897542d21a870148db2002cd43897f14" }, "downloads": -1, "filename": "method_cache-0.0.5.tar.gz", "has_sig": false, "md5_digest": "eb49c8a23656e3889498f6601ce7c2b4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5304, "upload_time": "2019-01-07T13:39:53", "url": "https://files.pythonhosted.org/packages/23/1d/e6078ad7e63b4fc3ecd129d9f193f19c8d97562b1b491a8b06b729b324d7/method_cache-0.0.5.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "9dc2fe0d1daf482301100024c29ee0f8", "sha256": "5eac7234b08bcafdc63ceff74307cb2ae1ec891775972f756e6e4eb696e80fba" }, "downloads": -1, "filename": "method_cache-1.0.0.tar.gz", "has_sig": false, "md5_digest": "9dc2fe0d1daf482301100024c29ee0f8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5356, "upload_time": "2019-02-01T13:46:26", "url": "https://files.pythonhosted.org/packages/eb/0e/d9b14aaae660b43efb81c7f3784af5fb4bfc1d1941d4a71843d25ca1c6a6/method_cache-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "8dd90613a9120e8746faa080af2471c5", "sha256": "8407098a50463641f7bc3f85e4e2ef1200675ddb8025b682c7d1b9b7134ba0d9" }, "downloads": -1, "filename": "method_cache-1.0.1.tar.gz", "has_sig": false, "md5_digest": "8dd90613a9120e8746faa080af2471c5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5354, "upload_time": "2019-02-15T12:54:43", "url": "https://files.pythonhosted.org/packages/62/15/fb3889517eb348d2410199c7fdb1a4730cd0feed8487287f729be7a6c0ed/method_cache-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "3138117a423403784f04f7a5645ceade", "sha256": "c3de681faa42e428dbd193ad75780f53403642ba12212e6df09d2a4b048573e7" }, "downloads": -1, "filename": "method_cache-1.0.2.tar.gz", "has_sig": false, "md5_digest": "3138117a423403784f04f7a5645ceade", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5350, "upload_time": "2019-02-15T12:59:01", "url": "https://files.pythonhosted.org/packages/7c/ac/a0b480457833690d365a3114c918544520717eefb3b19da43036e6bb6005/method_cache-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "f808c1955a3ee2c242d084abd5769030", "sha256": "1bfe1c8b350532ce27d96edba472c0414cb19a082daaceacc16e19fe35c86452" }, "downloads": -1, "filename": "method_cache-1.0.3.tar.gz", "has_sig": false, "md5_digest": "f808c1955a3ee2c242d084abd5769030", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5352, "upload_time": "2019-02-15T14:06:24", "url": "https://files.pythonhosted.org/packages/df/48/ab6ffb8d9da3928cafc9d938afb6ab7051316f4fb51eab05c915476872b6/method_cache-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "ca611959341e9686cec716a4120c15c8", "sha256": "993f26d552af44a4f8b3b34f52320f4b7102a3ac76bda2e1a924022eb7e3470a" }, "downloads": -1, "filename": "method_cache-1.0.4.tar.gz", "has_sig": false, "md5_digest": "ca611959341e9686cec716a4120c15c8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5343, "upload_time": "2019-02-27T10:56:57", "url": "https://files.pythonhosted.org/packages/d5/b7/6afcec7f501b02dbed7f5221e6b4aeddca3011ccf93ae76b314f14c6dc86/method_cache-1.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ca611959341e9686cec716a4120c15c8", "sha256": "993f26d552af44a4f8b3b34f52320f4b7102a3ac76bda2e1a924022eb7e3470a" }, "downloads": -1, "filename": "method_cache-1.0.4.tar.gz", "has_sig": false, "md5_digest": "ca611959341e9686cec716a4120c15c8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5343, "upload_time": "2019-02-27T10:56:57", "url": "https://files.pythonhosted.org/packages/d5/b7/6afcec7f501b02dbed7f5221e6b4aeddca3011ccf93ae76b314f14c6dc86/method_cache-1.0.4.tar.gz" } ] }