{ "info": { "author": "R\u00e9my Sanchez", "author_email": "remy.sanchez@activkonnect.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Intended Audience :: Developers", "License :: Other/Proprietary License", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.0", "Programming Language :: Python :: 3.1", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4" ], "description": "Pycachu\n=======\n\nA tool to provide a LRU cache on files.\n\nIt has been created to store gigabytes of Thumbor thumbnails on a DigitalOcean server.\n\nUsage\n~~~~~\n\n.. code-block::\n\n from pycachu import Pycachu\n\n # Initialize the cache\n # The dir has to exist\n p = Pycachu('/storage/pycachu', 20 * (1024 ** 3))\n\n # Get a file\n f = p.get('/some/file')\n\n if f is not None:\n yield f\n f.close()\n else:\n content = generate_file_content()\n p.put('/some/file', content)\n content.seek(0)\n yield content\n content.close()\n\n\nPerformance\n~~~~~~~~~~~\n\nThe performance is not exceptional, but operations basically take a constant time independently of\nthe number of files in the cache, which is not too bad.\n\nRough benchmarking gave about 170 get per second.", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Xowap/pycachu", "keywords": null, "license": "WTFPL", "maintainer": null, "maintainer_email": null, "name": "pycachu", "package_url": "https://pypi.org/project/pycachu/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pycachu/", "project_urls": { "Homepage": "https://github.com/Xowap/pycachu" }, "release_url": "https://pypi.org/project/pycachu/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "A basic Python package to store files in a LRU cache.", "version": "0.1.1" }, "last_serial": 1577347, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "0c60b7108504dc7c8d1a006d7a6785ae", "sha256": "cc2c717e90872defa24f3e4c1b85944c7a580626e1614370b55c18dfe4cbfb1e" }, "downloads": -1, "filename": "pycachu-0.1.0.tar.gz", "has_sig": false, "md5_digest": "0c60b7108504dc7c8d1a006d7a6785ae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3071, "upload_time": "2015-06-03T13:16:14", "url": "https://files.pythonhosted.org/packages/94/22/552102655837a2073125a292d1032722d36a845c7c729b347235b2c12938/pycachu-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "de14aacdbc4c699048daed21a4a2e903", "sha256": "10c5941f555fb996cd1e8fb93fdcfcf73df45a5636f9238f4b1850db95a15ba6" }, "downloads": -1, "filename": "pycachu-0.1.1.tar.gz", "has_sig": false, "md5_digest": "de14aacdbc4c699048daed21a4a2e903", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3185, "upload_time": "2015-06-03T20:43:33", "url": "https://files.pythonhosted.org/packages/bc/20/a55db8d8e744344c718b534aee5226cb879b5c813dd099dab0bfc27ca1a3/pycachu-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "de14aacdbc4c699048daed21a4a2e903", "sha256": "10c5941f555fb996cd1e8fb93fdcfcf73df45a5636f9238f4b1850db95a15ba6" }, "downloads": -1, "filename": "pycachu-0.1.1.tar.gz", "has_sig": false, "md5_digest": "de14aacdbc4c699048daed21a4a2e903", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3185, "upload_time": "2015-06-03T20:43:33", "url": "https://files.pythonhosted.org/packages/bc/20/a55db8d8e744344c718b534aee5226cb879b5c813dd099dab0bfc27ca1a3/pycachu-0.1.1.tar.gz" } ] }