{ "info": { "author": "Shoji Ihara", "author_email": "shoji.ihara@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "switchcache\n====\n\nTest utils for testing with memcache\n\n## with_cache/no_cache decorators\n\n```python\nfrom switchcache import init, with_cache, no_cache\n\nclass Configure:\n HOSTS = ['127.0.0.1:11211']\n CACHE = {\n 'foo': 'bar',\n 'fuga': 'hoge'\n }\ninit(Configure)\n\n@with_cache\ndef test_with_cache():\n \n \n@no_cache\ndef test_no_cache():\n \n```\n\n## \"with\" clause\n\n```python\nfrom switchcache import cache\n\ndef test():\n with cache:\n \n \n```\n\n## twice/times decorators\n\n```python\nfrom switchcache import twice, times\n\n@twice\ndef test_twice(s):\n return s\n>>> test_twice('foo')\n['foo', 'foo']\n \n@times(5)\ndef test_5_times(s):\n return s\n>>> test_5_times('bar')\n['bar', 'bar', 'bar', 'bar', 'bar']\n```\n\n## Note\n\nMake sure HOSTS point to a your testing environment.\nYour current caches on memcache will be flushed & overrided.\n\n", "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/shoz/switchcache", "keywords": "memcached,test,testing,decorators", "license": "switchcache\nThe MIT License\nCopyright (c) 2014 Shoji Ihara\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.", "maintainer": null, "maintainer_email": null, "name": "switchcache", "package_url": "https://pypi.org/project/switchcache/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/switchcache/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/shoz/switchcache" }, "release_url": "https://pypi.org/project/switchcache/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "Utils for testing with/without cache", "version": "0.1.1" }, "last_serial": 1127805, "releases": { "0.0.1": [ { "comment_text": "built for Darwin-13.1.0", "digests": { "md5": "dae346c360c731b3704fdb7b802286ca", "sha256": "e8f310084b78062949dcc151f33a2f3e063d380cf2b68756edd62d70c72b3c49" }, "downloads": -1, "filename": "switchcache-0.0.1.macosx-10.9-intel.tar.gz", "has_sig": false, "md5_digest": "dae346c360c731b3704fdb7b802286ca", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 4098, "upload_time": "2014-05-09T18:36:54", "url": "https://files.pythonhosted.org/packages/64/c8/8cdff8cdedbaf82be6e0d469a52bdeca263e7e31ba31b1d1c94cf39ea8e4/switchcache-0.0.1.macosx-10.9-intel.tar.gz" }, { "comment_text": "", "digests": { "md5": "e0fe5cc4f7a6c0d5de65ea8ecee294a9", "sha256": "b0f52ee6ee7633de43742fbde73d30c3e7414f2f1ce72e8a33e655260734e232" }, "downloads": -1, "filename": "switchcache-0.0.1-py2.7.egg", "has_sig": false, "md5_digest": "e0fe5cc4f7a6c0d5de65ea8ecee294a9", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 5130, "upload_time": "2014-05-09T18:36:57", "url": "https://files.pythonhosted.org/packages/53/5c/a789d4b5e2b5a0ac9620c1713c117e77f1a0796708a3891cec6253b72bd8/switchcache-0.0.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "dc9ceede71c6bce36fc6d4c02f208750", "sha256": "2e82f654c8d4854ee966854f86104bd39aea1b88029c2f60c8462dea2c9d872c" }, "downloads": -1, "filename": "switchcache-0.0.1.tar.gz", "has_sig": false, "md5_digest": "dc9ceede71c6bce36fc6d4c02f208750", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2893, "upload_time": "2014-05-09T18:36:51", "url": "https://files.pythonhosted.org/packages/4f/f5/1c9754e2c479ebc0191c82b98947e02f01cb55e389e06aab87d86530e987/switchcache-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "built for Darwin-13.1.0", "digests": { "md5": "e785f0b12429a699e21c7a5b24b3e691", "sha256": "30abd705a24c6a049cf9c3c224a050108c8bc37de21fba83088429f2fdf9171d" }, "downloads": -1, "filename": "switchcache-0.0.2.macosx-10.9-intel.tar.gz", "has_sig": false, "md5_digest": "e785f0b12429a699e21c7a5b24b3e691", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 4273, "upload_time": "2014-05-09T18:43:33", "url": "https://files.pythonhosted.org/packages/c6/95/8abf7ad34ff5f662731f89e00f3cdbb9e6d06840bbc976c4ab4de2a89e05/switchcache-0.0.2.macosx-10.9-intel.tar.gz" }, { "comment_text": "", "digests": { "md5": "b1aefad69d0893b1e10837fb7465530f", "sha256": "2da9a88496aca4250454c338d97a218e4876b2032676ad5a948ba39f847c81a0" }, "downloads": -1, "filename": "switchcache-0.0.2-py2.7.egg", "has_sig": false, "md5_digest": "b1aefad69d0893b1e10837fb7465530f", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 5288, "upload_time": "2014-05-09T18:43:36", "url": "https://files.pythonhosted.org/packages/dd/94/ceb13dc29d3fe79b7a5024d14b7b47c9c6fab05b5a0d1b8fa1548f2b67ac/switchcache-0.0.2-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "67ec20fc16b5ec491024da6f139099ac", "sha256": "e9a79c00c11f575d2a90053e72a3d62c95c76d01a5b4324e71fa25115fde0655" }, "downloads": -1, "filename": "switchcache-0.0.2.tar.gz", "has_sig": false, "md5_digest": "67ec20fc16b5ec491024da6f139099ac", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2937, "upload_time": "2014-05-09T18:43:29", "url": "https://files.pythonhosted.org/packages/f4/76/b85156256c899481c59b8621f1a556b692fa7ab513b0a0e12f2349c47e7a/switchcache-0.0.2.tar.gz" } ], "0.1.0": [ { "comment_text": "built for Darwin-13.1.0", "digests": { "md5": "d04a0da595bca4322c2531654c67293b", "sha256": "28892b7973241e167e06f14a7dec4148b3315c321c624adeb0795a4de4d979b6" }, "downloads": -1, "filename": "switchcache-0.1.0.macosx-10.9-intel.tar.gz", "has_sig": false, "md5_digest": "d04a0da595bca4322c2531654c67293b", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 4916, "upload_time": "2014-05-09T20:08:25", "url": "https://files.pythonhosted.org/packages/c1/1b/981e7ca0b78c3a16b266dae17eb64935f57b6a5b896e1fdb29112e61d848/switchcache-0.1.0.macosx-10.9-intel.tar.gz" }, { "comment_text": "", "digests": { "md5": "053e424840f6107482b22cf0773a53e1", "sha256": "bf49d39ae9c21b0418c09bc8941cc87ff33debf6a063eab3831cfaa2c5a145ea" }, "downloads": -1, "filename": "switchcache-0.1.0-py2.7.egg", "has_sig": false, "md5_digest": "053e424840f6107482b22cf0773a53e1", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 5908, "upload_time": "2014-05-09T20:08:27", "url": "https://files.pythonhosted.org/packages/c5/bb/c191ef8142188e76ff091bba75a341fd12ffaf68ff02cfdd07e121b0498f/switchcache-0.1.0-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "a96326c41e0811175e4958038cc10d14", "sha256": "036f40245e14380ca6f7d4ae3bcdec30e6976923a6cddfb97b90ef7bc228be1f" }, "downloads": -1, "filename": "switchcache-0.1.0.tar.gz", "has_sig": false, "md5_digest": "a96326c41e0811175e4958038cc10d14", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3171, "upload_time": "2014-05-09T20:08:22", "url": "https://files.pythonhosted.org/packages/1a/fa/f971345389694376980aad8b0eb50814bc6a30a88714b49307fc3efd018e/switchcache-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "built for Darwin-13.2.0", "digests": { "md5": "e64d4efee63d5b110416929ebd83fe4b", "sha256": "cc65f08d1bd0823f8b09cb1097f10867ca5b927863a5f6c95f07c21c899a5701" }, "downloads": -1, "filename": "switchcache-0.1.1.macosx-10.9-intel.tar.gz", "has_sig": false, "md5_digest": "e64d4efee63d5b110416929ebd83fe4b", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 4776, "upload_time": "2014-06-17T15:35:34", "url": "https://files.pythonhosted.org/packages/44/96/2e3b6041677cae55468e165802a14c33b1012fa3fedf5fd8a5b8cec4420f/switchcache-0.1.1.macosx-10.9-intel.tar.gz" }, { "comment_text": "", "digests": { "md5": "35d419cb20cf6023478e685daa6bd929", "sha256": "62a116b521bdc830593c072940052827dbedab9f8542d5cb2b824373c54cee1f" }, "downloads": -1, "filename": "switchcache-0.1.1-py2.7.egg", "has_sig": false, "md5_digest": "35d419cb20cf6023478e685daa6bd929", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 5937, "upload_time": "2014-06-17T15:35:37", "url": "https://files.pythonhosted.org/packages/0d/a8/154a54f9da46c812d0103656be0b2d41509327357f2af5b84f34e917e4fb/switchcache-0.1.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "77d1b6f417f45b06611c4009bfd38234", "sha256": "959d20702610d362361eb212353b9173b8065ef03189cebf569b6240e5ab1ad3" }, "downloads": -1, "filename": "switchcache-0.1.1.tar.gz", "has_sig": false, "md5_digest": "77d1b6f417f45b06611c4009bfd38234", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3185, "upload_time": "2014-06-17T15:35:32", "url": "https://files.pythonhosted.org/packages/5e/d9/da38ca995834481aa5e80e63577ebd38d38d1c0e13ee45b8adba8afa714b/switchcache-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "built for Darwin-13.2.0", "digests": { "md5": "e64d4efee63d5b110416929ebd83fe4b", "sha256": "cc65f08d1bd0823f8b09cb1097f10867ca5b927863a5f6c95f07c21c899a5701" }, "downloads": -1, "filename": "switchcache-0.1.1.macosx-10.9-intel.tar.gz", "has_sig": false, "md5_digest": "e64d4efee63d5b110416929ebd83fe4b", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 4776, "upload_time": "2014-06-17T15:35:34", "url": "https://files.pythonhosted.org/packages/44/96/2e3b6041677cae55468e165802a14c33b1012fa3fedf5fd8a5b8cec4420f/switchcache-0.1.1.macosx-10.9-intel.tar.gz" }, { "comment_text": "", "digests": { "md5": "35d419cb20cf6023478e685daa6bd929", "sha256": "62a116b521bdc830593c072940052827dbedab9f8542d5cb2b824373c54cee1f" }, "downloads": -1, "filename": "switchcache-0.1.1-py2.7.egg", "has_sig": false, "md5_digest": "35d419cb20cf6023478e685daa6bd929", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 5937, "upload_time": "2014-06-17T15:35:37", "url": "https://files.pythonhosted.org/packages/0d/a8/154a54f9da46c812d0103656be0b2d41509327357f2af5b84f34e917e4fb/switchcache-0.1.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "77d1b6f417f45b06611c4009bfd38234", "sha256": "959d20702610d362361eb212353b9173b8065ef03189cebf569b6240e5ab1ad3" }, "downloads": -1, "filename": "switchcache-0.1.1.tar.gz", "has_sig": false, "md5_digest": "77d1b6f417f45b06611c4009bfd38234", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3185, "upload_time": "2014-06-17T15:35:32", "url": "https://files.pythonhosted.org/packages/5e/d9/da38ca995834481aa5e80e63577ebd38d38d1c0e13ee45b8adba8afa714b/switchcache-0.1.1.tar.gz" } ] }