{ "info": { "author": "Wes Mason", "author_email": "wes@1stvamp.org", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4" ], "description": "memorised\n=========\n\nAbout\n-----\n\n``memorised`` is a python module containing handy ``python-memcached``\ndecorators and utils.\nSpecifically the ``memorise`` decorator allows you to quickly and simply\nadd memcache caching to any function or method.\n\nInstallation\n------------\n\nInstall ``memorised`` using pip::\n\n pip install memorised\n\nOr using the supplied ``setup.py``::\n\n python setup.py install\n\nUsage\n-----\n\nTo cache a simple unbound function, just include the ``@memorise()`` tag to the\nfunction definition (the paranthesis are needed as the decorator needs to be\ninitialised at the time of binding to handle ``memorise`` specific arguements)::\n\n from memorised.decorators import memorise\n\n @memorise()\n def myfunction():\n return 'hello world'\n\nYou can do the same for simple instance and class methods, however for most\ninstance methods, e.g. when caching results for database models, you probably\nwant to include some form of identity to single out a method call on one\ninstance from another instance. You can do this by providing a list of one ore\nmore `parent keys`, these are the names of attributes in the parent instance\nthat you want to be appended to the memcache key::\n\n class MyModel:\n id = 1\n\n @memorise(parent_keys=['id'])\n def get_stats():\n return blah()\n\nFor other usage examples see the unittests in ``tests.py``.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/1stvamp/memorised/", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "memorised", "package_url": "https://pypi.org/project/memorised/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/memorised/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/1stvamp/memorised/" }, "release_url": "https://pypi.org/project/memorised/1.1.0/", "requires_dist": null, "requires_python": null, "summary": "memcache memoization decorators and utils for python", "version": "1.1.0" }, "last_serial": 1190706, "releases": { "1.0": [], "1.0.1": [ { "comment_text": "", "digests": { "md5": "5f516ec257f3120555b6fedc26c357df", "sha256": "475f57ca78f1471dcf54966e92370b3ed62e1f8d6e8b3e70d639bb86be4ea833" }, "downloads": -1, "filename": "memorised-1.0.1.tar.gz", "has_sig": false, "md5_digest": "5f516ec257f3120555b6fedc26c357df", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3895, "upload_time": "2010-08-31T00:52:29", "url": "https://files.pythonhosted.org/packages/07/88/495dc2f0faa6c1f5872adf3345bd1240befd495e19b3887781436162df64/memorised-1.0.1.tar.gz" } ], "1.0.2": [], "1.0.3": [ { "comment_text": "", "digests": { "md5": "0f8c563c848112c275ad8e2c1ab62959", "sha256": "cd10e1b04233c108736790df8d26a49696f10f19b10982dd1a40b10392e3928a" }, "downloads": -1, "filename": "memorised-1.0.3.tar.gz", "has_sig": false, "md5_digest": "0f8c563c848112c275ad8e2c1ab62959", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4841, "upload_time": "2013-01-15T10:41:30", "url": "https://files.pythonhosted.org/packages/1f/e1/4e19890a4ce62b420c2bb90ca71e7a2d9832947bf196bc61f4302d6b7a22/memorised-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "2667787a66274505fb6fcd26276e4ac9", "sha256": "f1311f4a8d50bedacc341c595d5a4ae786785fb083b0e51d4139981a9a2fa27a" }, "downloads": -1, "filename": "memorised-1.0.4.tar.gz", "has_sig": false, "md5_digest": "2667787a66274505fb6fcd26276e4ac9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4846, "upload_time": "2013-03-11T02:41:01", "url": "https://files.pythonhosted.org/packages/00/18/1d2f6db0d5ad50f3bf7949c7c57158f71bce8148080aa2c01bb474def1f6/memorised-1.0.4.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "92b9473d80ddf6a66133b2c7029f03ad", "sha256": "8c75368f6b93f2be89550bfd8768ae71f69fd2095837aa45cfef22514fd5e7c7" }, "downloads": -1, "filename": "memorised-1.0.5.tar.gz", "has_sig": false, "md5_digest": "92b9473d80ddf6a66133b2c7029f03ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5026, "upload_time": "2013-08-09T14:00:32", "url": "https://files.pythonhosted.org/packages/2d/d4/e9393a9288a77bb1459df90ec20174cebbb806b1049103e13803eea9976a/memorised-1.0.5.tar.gz" } ], "1.1.0": [ { "comment_text": "built for Linux-3.13.0-24-generic-x86_64-with-glibc2.4", "digests": { "md5": "2307c766e83726c3c6ac2a61190ef979", "sha256": "a1f41121b61214003829f60742c6c1a692aa2267669cdff00378add2a616cfc4" }, "downloads": -1, "filename": "memorised-1.1.0.linux-x86_64.tar.gz", "has_sig": false, "md5_digest": "2307c766e83726c3c6ac2a61190ef979", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 9833, "upload_time": "2014-08-14T17:37:18", "url": "https://files.pythonhosted.org/packages/78/f5/1ee3b726bfb31b4037146fe27cffd5b0d66e2df5a0732a63cf53f9023902/memorised-1.1.0.linux-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "f76e1e13a0c4eb73f3c3114334d08fd8", "sha256": "a2cb90e04e614a7002f6948d9e54fa3641d2dc5fa70391c128d0df361cc03ce8" }, "downloads": -1, "filename": "memorised-1.1.0.tar.gz", "has_sig": false, "md5_digest": "f76e1e13a0c4eb73f3c3114334d08fd8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5720, "upload_time": "2014-08-14T17:37:26", "url": "https://files.pythonhosted.org/packages/c9/76/3befd53117486bedc3ef92bb451a58cf893596254623e33827600c77ddaf/memorised-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "built for Linux-3.13.0-24-generic-x86_64-with-glibc2.4", "digests": { "md5": "2307c766e83726c3c6ac2a61190ef979", "sha256": "a1f41121b61214003829f60742c6c1a692aa2267669cdff00378add2a616cfc4" }, "downloads": -1, "filename": "memorised-1.1.0.linux-x86_64.tar.gz", "has_sig": false, "md5_digest": "2307c766e83726c3c6ac2a61190ef979", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 9833, "upload_time": "2014-08-14T17:37:18", "url": "https://files.pythonhosted.org/packages/78/f5/1ee3b726bfb31b4037146fe27cffd5b0d66e2df5a0732a63cf53f9023902/memorised-1.1.0.linux-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "f76e1e13a0c4eb73f3c3114334d08fd8", "sha256": "a2cb90e04e614a7002f6948d9e54fa3641d2dc5fa70391c128d0df361cc03ce8" }, "downloads": -1, "filename": "memorised-1.1.0.tar.gz", "has_sig": false, "md5_digest": "f76e1e13a0c4eb73f3c3114334d08fd8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5720, "upload_time": "2014-08-14T17:37:26", "url": "https://files.pythonhosted.org/packages/c9/76/3befd53117486bedc3ef92bb451a58cf893596254623e33827600c77ddaf/memorised-1.1.0.tar.gz" } ] }