{ "info": { "author": "Joao Valverde", "author_email": "acci.valverde@gmail.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "# cachedprop\n[![Python 3.6](https://img.shields.io/badge/python-3.6-blue.svg)](https://www.python.org/downloads/release/python-360/)\n[![Python 3.7](https://img.shields.io/badge/python-3.7-blue.svg)](https://www.python.org/downloads/release/python-370/)\n[![Build Status](https://travis-ci.com/Spin14/cachedprop.svg?branch=master)](https://travis-ci.com/Spin14/cachedprop) \n\ncached property method decorator\n\n## Demo\n```python\nfrom cachedprop import cpd\n\n\nclass LabRat:\n def __init__(self) -> None:\n self._hp = None\n \n def expensive_hp_getter(self) -> int:\n ...\n \n @cpd\n def hp(self):\n return self.expensive_hp_getter()\n \n\nrat = LabRat()\nprint(rat.hp) # expensive_hp_getter is called, value gets \"cached\", prints value\nprint(rat.hp) # prints \"cached\" value only.\n```", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "", "maintainer": "Joao Valverde", "maintainer_email": "acci.valverde@gmail.com", "name": "cachedprop", "package_url": "https://pypi.org/project/cachedprop/", "platform": "", "project_url": "https://pypi.org/project/cachedprop/", "project_urls": null, "release_url": "https://pypi.org/project/cachedprop/0.1.0/", "requires_dist": [ "flake8 (>=3.6,<4.0)" ], "requires_python": ">=3.6,<4.0", "summary": "cached property method decorator", "version": "0.1.0" }, "last_serial": 4762000, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "a62bb0e3eb359da26f7ae4c1c2490786", "sha256": "7827459f269b7c8d649c9c88441b452fabc32cdb2747aed500394b22a74a5fae" }, "downloads": -1, "filename": "cachedprop-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "a62bb0e3eb359da26f7ae4c1c2490786", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 2028, "upload_time": "2019-01-31T01:25:46", "url": "https://files.pythonhosted.org/packages/15/e2/dece11e6b4f37c99cf85407b1531e8b64d3072e4a70ce04fe952e65a8cb7/cachedprop-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0074580caa3dee7097519e0af5467a6b", "sha256": "ae50077b1fa204e9932d76a9284d800859225d0177edb8312c5dd5ef09863eb1" }, "downloads": -1, "filename": "cachedprop-0.1.0.tar.gz", "has_sig": false, "md5_digest": "0074580caa3dee7097519e0af5467a6b", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 1571, "upload_time": "2019-01-31T01:25:48", "url": "https://files.pythonhosted.org/packages/71/bb/5f0f6884a8ee716d72ad4f5f78dd808b29e3394c8c557c49167105d0e09b/cachedprop-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a62bb0e3eb359da26f7ae4c1c2490786", "sha256": "7827459f269b7c8d649c9c88441b452fabc32cdb2747aed500394b22a74a5fae" }, "downloads": -1, "filename": "cachedprop-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "a62bb0e3eb359da26f7ae4c1c2490786", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 2028, "upload_time": "2019-01-31T01:25:46", "url": "https://files.pythonhosted.org/packages/15/e2/dece11e6b4f37c99cf85407b1531e8b64d3072e4a70ce04fe952e65a8cb7/cachedprop-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0074580caa3dee7097519e0af5467a6b", "sha256": "ae50077b1fa204e9932d76a9284d800859225d0177edb8312c5dd5ef09863eb1" }, "downloads": -1, "filename": "cachedprop-0.1.0.tar.gz", "has_sig": false, "md5_digest": "0074580caa3dee7097519e0af5467a6b", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 1571, "upload_time": "2019-01-31T01:25:48", "url": "https://files.pythonhosted.org/packages/71/bb/5f0f6884a8ee716d72ad4f5f78dd808b29e3394c8c557c49167105d0e09b/cachedprop-0.1.0.tar.gz" } ] }