{ "info": { "author": "Deepak Mishra", "author_email": "deepakmishra117@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: Freeware", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7" ], "description": "# Cache Function\n\nYou can use this python decorator\n[Github-flavored Markdown](https://github.com/deepakmishra/cache_function/)\nto cache a result of a function.\n\n## Installation\npip install -i https://test.pypi.org/simple/ cache-function-deepakmishra\n\n## Usage\n\n### Production Setting\n```python\nfrom cache_function import cache_function\ncache_function.cache = **your cache object which has get and set functions**\n```\n\n### Development Setting\n```python\nfrom cache_function import cache_function, test_cache_function\ncache_function.cache = test_cache_function.DummyCache()\n```\n\n### Usage: Cache a function result\n```python\nfrom cache_function.cache_function import cache_function\n\n@cache_function(expiry=30) # time in seconds\ndef foo(a, b, c):\n return a + b + c\n```\n\n\n", "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/deepakmishra/cache_function", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "cache-function-deepakmishra", "package_url": "https://pypi.org/project/cache-function-deepakmishra/", "platform": "", "project_url": "https://pypi.org/project/cache-function-deepakmishra/", "project_urls": { "Homepage": "https://github.com/deepakmishra/cache_function" }, "release_url": "https://pypi.org/project/cache-function-deepakmishra/0.0.3/", "requires_dist": null, "requires_python": "", "summary": "A small decorator which helps cache a result of a function", "version": "0.0.3" }, "last_serial": 5729925, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "e18fc26d01971e3eb379ad435e6c9d7e", "sha256": "8d327e93b47aad098b8212bc6dfebaf0374b4da938a03ea67bc88af7046f68bd" }, "downloads": -1, "filename": "cache_function_deepakmishra-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "e18fc26d01971e3eb379ad435e6c9d7e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 13956, "upload_time": "2019-08-26T09:53:42", "url": "https://files.pythonhosted.org/packages/8f/a9/94e1533360940a8fe7b8908cc3833de099d6c5a9612c85c52a8f624248af/cache_function_deepakmishra-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "76faafacfc60fb752a59d06f8aa1aae6", "sha256": "51bc7cf01acfec41025931299b843733fce8f3eb8bb67d87ac5e9899f0c208af" }, "downloads": -1, "filename": "cache-function-deepakmishra-0.0.1.tar.gz", "has_sig": false, "md5_digest": "76faafacfc60fb752a59d06f8aa1aae6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1134, "upload_time": "2019-08-26T09:53:48", "url": "https://files.pythonhosted.org/packages/c5/73/2dc07f96f7707c42de8a5c0fd21bcd7e2db76a00b63b0d962040292900f2/cache-function-deepakmishra-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "90c72efac19e9b760acfa3143ea1d22e", "sha256": "a881f62403bafb232377972ab64f69b5a5feaf9630312361388fb161fc2f38a5" }, "downloads": -1, "filename": "cache_function_deepakmishra-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "90c72efac19e9b760acfa3143ea1d22e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 16532, "upload_time": "2019-08-26T09:53:44", "url": "https://files.pythonhosted.org/packages/59/bf/fbb3f9b5b93902ea4174bcf427818bb11415bd42b61ed79cc34fd16ddfed/cache_function_deepakmishra-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "94d26e0af7bc797b9c8c8ab332189999", "sha256": "05944f1ba6846947a31e888e043d441f0e0b32927646391fed0dec38407ea1ef" }, "downloads": -1, "filename": "cache-function-deepakmishra-0.0.2.tar.gz", "has_sig": false, "md5_digest": "94d26e0af7bc797b9c8c8ab332189999", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3315, "upload_time": "2019-08-26T09:53:50", "url": "https://files.pythonhosted.org/packages/03/cd/372e03e765dccbe9bb2cab2bd818ae6923c0008a71701430bc467cc0f639/cache-function-deepakmishra-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "e68014b646d80ec03c88857229cb3a02", "sha256": "d1fc4ee57940ad80bf77acab95f71b1d89065426e422efb52e48b9e4568259e7" }, "downloads": -1, "filename": "cache_function_deepakmishra-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "e68014b646d80ec03c88857229cb3a02", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 16532, "upload_time": "2019-08-26T09:53:46", "url": "https://files.pythonhosted.org/packages/39/0e/719b82bde24fb85d683c123c44a3e4065d79a1d089f1505864517a7fdfd1/cache_function_deepakmishra-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "adefee947402294d160e2e8becd7c3c5", "sha256": "af1c73c13974081b26cdf8b15bd37612cb6c462b5d558d5c466274ca33807f03" }, "downloads": -1, "filename": "cache-function-deepakmishra-0.0.3.tar.gz", "has_sig": false, "md5_digest": "adefee947402294d160e2e8becd7c3c5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3316, "upload_time": "2019-08-26T09:53:51", "url": "https://files.pythonhosted.org/packages/49/92/eef19642972cbb5949b6a36476979985cf73adc00a02f4abf9712be5055a/cache-function-deepakmishra-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e68014b646d80ec03c88857229cb3a02", "sha256": "d1fc4ee57940ad80bf77acab95f71b1d89065426e422efb52e48b9e4568259e7" }, "downloads": -1, "filename": "cache_function_deepakmishra-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "e68014b646d80ec03c88857229cb3a02", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 16532, "upload_time": "2019-08-26T09:53:46", "url": "https://files.pythonhosted.org/packages/39/0e/719b82bde24fb85d683c123c44a3e4065d79a1d089f1505864517a7fdfd1/cache_function_deepakmishra-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "adefee947402294d160e2e8becd7c3c5", "sha256": "af1c73c13974081b26cdf8b15bd37612cb6c462b5d558d5c466274ca33807f03" }, "downloads": -1, "filename": "cache-function-deepakmishra-0.0.3.tar.gz", "has_sig": false, "md5_digest": "adefee947402294d160e2e8becd7c3c5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3316, "upload_time": "2019-08-26T09:53:51", "url": "https://files.pythonhosted.org/packages/49/92/eef19642972cbb5949b6a36476979985cf73adc00a02f4abf9712be5055a/cache-function-deepakmishra-0.0.3.tar.gz" } ] }