{ "info": { "author": "Alexander Todorov", "author_email": "atodorov@nospam.otb.bg", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python" ], "description": "Django S3 Cache\n---------------\n\n.. image:: https://drone.io/github.com/atodorov/django-s3-cache/status.png\n :target: https://drone.io/github.com/atodorov/django-s3-cache\n :alt: Build status\n\n.. image:: https://pypip.in/download/django-s3-cache/badge.png\n :target: https://pypi.python.org/pypi/django-s3-cache/\n :alt: Downloads\n\n.. image:: https://pypip.in/version/django-s3-cache/badge.png\n :target: https://pypi.python.org/pypi/django-s3-cache/\n :alt: Latest Version\n\n.. image:: https://pypip.in/license/django-s3-cache/badge.png\n :target: https://pypi.python.org/pypi/django-s3-cache/\n :alt: License\n\nThis is Amazon Simple Storage Service (S3) cache backend for Django.\nIt is based on the *django.core.cache.backends.filebased.FileBasedCache* backend\nand operates in similar fashion. This backend uses\n`django-storages `_ to read/write the\ndata into S3. It uses the *s3boto* storage backend.\n\nAll key/values passed to this backend are stored in a flat directory structure\nin your S3 bucket. It uses sha1 instead of md5 to create the file name.\n\nInstallation\n============\n\nUse pip to install from PyPI:\n\n::\n\n pip install django-s3-cache\n\n\nConfigure the use of this backend:\n\n::\n\n CACHES = {\n 'default': {\n 'BACKEND': 's3cache.AmazonS3Cache',\n 'OPTIONS': {\n 'ACCESS_KEY' : 'Your AWS access key',\n 'SECRET_KEY' : 'Your AWS secret access key',\n 'BUCKET_NAME': 'Your AWS storage bucket name',\n 'LOCATION' : 'directory_prefix',\n }\n }\n }\n\nConfiguration\n=============\n\nDjango S3 Cache supports many configuration options. They should be defined as\nkeys of the *OPTIONS* dictionary in *settings.py* as shown above. If something\nis not defined explicitly it follows the defaults of *s3boto* backend from\n*django-storages* which in turn reads them from *settings.py*.\n\n**NOTE-1:** some values in *settings.py* may be used globally by *boto* and other AWS aware\nDjango components since they follow the format *AWS_XXXX*. It's always best to define your\nvalues as cache options explicitly if you don't want to run into problems.\n\n**NOTE-2:** since version 1.2 Django S3 Cache is compatible with django-storages v1.1.8 which\nhas changed the names of configuration variables. All new variables are expected to be lower\ncase and the AWS keys variables changed names. For exact names see the S3BotoStorage class\ndefinition in *s3boto.py*. Django S3 Cache implements backward compatibility with its previous\nOPTIONS syntax to allow for easier upgrades. Older names are mapped to new ones and all\noptions are lower cased before passing to S3BotoStorage. The example above shows the new syntax.\n\n**NOTE-3:** before version 1.3 there is a **CRITICAL BUG** in the handling of the *LOCATION*\noption. If used cache objects will be stored under the defined directory, however culling\nand clearing the cache **was not** taking this into account. cache.clear() or cache._cull()\nwill **delete the entire bucket**. This has been fixed in version 1.3!\n\n**NOTE-4:** in versions 1.2 to 1.3 there is a **BUG** in the backward compatibility handling\nof *OPTIONS*. If you have been using the new style syntax for *ACCESS_KEY*, *SECRET_KEY*,\n*BUCKET_NAME* it would be overriden and boto will crash due to missing authentication parameters.\nThis has been fixed in version 1.4!\n\nSome notable options are:\n\n* *LOCATION* - the directory prefix under which to store cache files. Defaults to empty string, which means the root directory;\n* *DEFAULT_ACL* == *private* - default ACL for created objects. Unlike the *s3boto* storage backend we set this to *private*;\n* *BUCKET_ACL* == *DEFAULT_ACL* - ACL for the bucket if auto created. By default set to *private*. It's best to use separate bucket for cache files;\n* *REDUCED_REDUNDANCY* - set to *True* if you want to save a few cents on storage costs;\n* *IS_GZIPPED* - set to *True* to enable Gzip compression. Used together with *GZIP_CONTENT_TYPES*. See *django-storages* `documentation `_.\n\n\nDjango S3 implements culling strategy similar to the stock filesystem backend. It will honor the following options:\n\n* *MAX_ENTRIES* - the maximum number of entries allowed in the cache before old values are deleted. If 0 culling is disabled. This argument defaults to 300;\n* *CULL_FREQUENCY* - the fraction of entries that are culled when *MAX_ENTRIES* is reached. The actual ratio is *1/CULL_FREQUENCY*, so set *CULL_FREQUENCY* to 2 to cull half of the entries when *MAX_ENTRIES* is reached;\n\n\nContributing\n============\n\nSource code and issue tracker are at https://github.com/atodorov/django-s3-cache", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/atodorov/django-s3-cache", "keywords": "Amazon,S3,Django,cache", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-s3-cache", "package_url": "https://pypi.org/project/django-s3-cache/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-s3-cache/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/atodorov/django-s3-cache" }, "release_url": "https://pypi.org/project/django-s3-cache/1.4.2/", "requires_dist": null, "requires_python": null, "summary": "Amazon Simple Storage Service (S3) cache backend for Django", "version": "1.4.2" }, "last_serial": 1330492, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "6c3500491c4ca03a2e119c67e6658ce8", "sha256": "53511a1df02ae4433f02a976d2a97c3bfadca8bf3929d9b3b3fdccbf23af4a60" }, "downloads": -1, "filename": "django-s3-cache-0.1.tar.gz", "has_sig": false, "md5_digest": "6c3500491c4ca03a2e119c67e6658ce8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4864, "upload_time": "2012-07-13T21:41:16", "url": "https://files.pythonhosted.org/packages/9f/bc/4e66c59d78d58ac3e5bae263526af4e8a96a96b5cf83d42516cdde8ef499/django-s3-cache-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "04153a30936127c22b87b00dd115f540", "sha256": "cb2942c6fc1863fd3042f1d8e7a47db0e1de6951c202b7f9c6b20ebe0b868f9d" }, "downloads": -1, "filename": "django-s3-cache-0.2.tar.gz", "has_sig": false, "md5_digest": "04153a30936127c22b87b00dd115f540", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4860, "upload_time": "2012-07-13T21:44:21", "url": "https://files.pythonhosted.org/packages/dc/85/0c1eaf3d2ac7d534b9e677319869f92b125dda3bbc0df1ca3519276b87ae/django-s3-cache-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "23ac3b476cfcf25bbe79e9f83e54d6af", "sha256": "3536647ad7892398cc1f46db60ca9546db6bfec304d2d16d1757ee0b21f4105f" }, "downloads": -1, "filename": "django-s3-cache-0.3.tar.gz", "has_sig": false, "md5_digest": "23ac3b476cfcf25bbe79e9f83e54d6af", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4826, "upload_time": "2012-07-13T22:14:38", "url": "https://files.pythonhosted.org/packages/7d/de/8dafcc0a0fc011251646805906bd753a204d7e258bfc28b9d1255531224d/django-s3-cache-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "64a388227b0d1310a12c093cc1280402", "sha256": "bd5b9b5c2129665910d723d2b6852fb2040fef123940a51fddb75620683a611f" }, "downloads": -1, "filename": "django-s3-cache-0.4.tar.gz", "has_sig": false, "md5_digest": "64a388227b0d1310a12c093cc1280402", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4822, "upload_time": "2012-07-13T22:18:15", "url": "https://files.pythonhosted.org/packages/6f/fa/a0bd4b660abe4a3be3992bce56c03ceed17e4958c0032fe7fd80ef2cfabe/django-s3-cache-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "8e8d5f5d1bab0f1e0abadc8c1bef0a07", "sha256": "91cc473d1b2269f3e6637bdeac4ad847d605ab4176383deb1082e7f85acc6354" }, "downloads": -1, "filename": "django-s3-cache-0.5.tar.gz", "has_sig": false, "md5_digest": "8e8d5f5d1bab0f1e0abadc8c1bef0a07", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4826, "upload_time": "2012-07-13T22:21:12", "url": "https://files.pythonhosted.org/packages/10/2d/dec729f3031212b0381ed4c923451ebfd072fd4a5f2af6177ff129b038b2/django-s3-cache-0.5.tar.gz" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "0c1bc40122467f7204f147d4e03890b7", "sha256": "9bcb7542d7a4c9bc04d9676b10fa9e9ac83aec756ddc2f56816cb36bda7fa955" }, "downloads": -1, "filename": "django-s3-cache-0.6.tar.gz", "has_sig": false, "md5_digest": "0c1bc40122467f7204f147d4e03890b7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4860, "upload_time": "2012-07-13T22:29:27", "url": "https://files.pythonhosted.org/packages/37/69/6d5d2390c80121f7fc9066b41b4a1032f4e4f40c7e507fc84763bb505a3b/django-s3-cache-0.6.tar.gz" } ], "1.0": [ { "comment_text": "", "digests": { "md5": "363efebc03c7cea1fc69b2e9545502a1", "sha256": "777b892e3a2b0a112a094a916065caa485eda18147a5d1df524ecfbf57bea247" }, "downloads": -1, "filename": "django-s3-cache-1.0.tar.gz", "has_sig": false, "md5_digest": "363efebc03c7cea1fc69b2e9545502a1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4883, "upload_time": "2012-07-13T22:57:25", "url": "https://files.pythonhosted.org/packages/68/09/33bea511ecc485a548a4ce9cb708d2ff74c1c466176eb9dc2fac0212f924/django-s3-cache-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "4b74428cc196b44956eb0634a90e153f", "sha256": "b7acd1b0cc18d5d8bedf2e0bda4c3bbdeaecf03444da67b958db1f36eb4251c2" }, "downloads": -1, "filename": "django-s3-cache-1.1.tar.gz", "has_sig": false, "md5_digest": "4b74428cc196b44956eb0634a90e153f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4911, "upload_time": "2013-04-22T19:38:48", "url": "https://files.pythonhosted.org/packages/78/d6/3824769c05ae388ebddcbff2a524a82d761455891efac043edf1cb1eeefc/django-s3-cache-1.1.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "e5dcfddbaef11b809533be6e5b56290a", "sha256": "f5052a6a9156011bd02d3ce23b83d56de2eca908c2a2ff68905e3c8571121f95" }, "downloads": -1, "filename": "django-s3-cache-1.2.tar.gz", "has_sig": false, "md5_digest": "e5dcfddbaef11b809533be6e5b56290a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4823, "upload_time": "2013-05-29T22:50:12", "url": "https://files.pythonhosted.org/packages/e8/2f/7613fee1473bb0b58a4de323e51e290e751b5d82641d7da6308d5c5422a5/django-s3-cache-1.2.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "eb9dc4cb0613e4eb323749f799ffec4a", "sha256": "b146aa00049a193684c7854e7dfefaf8f886c6bd2f1f21adbf0a71f0bca982f4" }, "downloads": -1, "filename": "django-s3-cache-1.2.1.tar.gz", "has_sig": false, "md5_digest": "eb9dc4cb0613e4eb323749f799ffec4a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4821, "upload_time": "2013-05-29T23:10:32", "url": "https://files.pythonhosted.org/packages/f0/2c/0baf68932758c068e59bf72bc788b824435e82a3abeedf7f75a0537a26f1/django-s3-cache-1.2.1.tar.gz" } ], "1.3": [ { "comment_text": "", "digests": { "md5": "0491457d2020d6aa49cfb20fe6d38fea", "sha256": "413f1ff4d38ceb92a644b5b2d461e92bb9c384d63e4926016ec51b5f7918bd62" }, "downloads": -1, "filename": "django-s3-cache-1.3.tar.gz", "has_sig": false, "md5_digest": "0491457d2020d6aa49cfb20fe6d38fea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5248, "upload_time": "2013-06-16T20:52:43", "url": "https://files.pythonhosted.org/packages/40/96/1dea976635e1a4b233a578cf3931e88b08c0af00c9563038c0fb4583413b/django-s3-cache-1.3.tar.gz" } ], "1.4": [ { "comment_text": "", "digests": { "md5": "948f56851494dba3d09956eefb91f172", "sha256": "afe0cdc7dd1205017a045a3fb8e9a139b1714e0dca8bc1235c01c5cf77b211fc" }, "downloads": -1, "filename": "django-s3-cache-1.4.tar.gz", "has_sig": false, "md5_digest": "948f56851494dba3d09956eefb91f172", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5358, "upload_time": "2014-12-03T12:32:39", "url": "https://files.pythonhosted.org/packages/c6/d8/fc1799f9591019351ef3300096192448aef9df9b208f81d63497383816e3/django-s3-cache-1.4.tar.gz" } ], "1.4.1": [ { "comment_text": "", "digests": { "md5": "c8ea8cd62b79f4164a727ca3ed897053", "sha256": "5adb50b364826f58b042b9d74b79fc15032dda13e9954cbd9058059ba8f510b0" }, "downloads": -1, "filename": "django-s3-cache-1.4.1.tar.gz", "has_sig": false, "md5_digest": "c8ea8cd62b79f4164a727ca3ed897053", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6685, "upload_time": "2014-12-03T23:48:38", "url": "https://files.pythonhosted.org/packages/f0/8f/0b49a22069700cb9e956bb30932a01c8978ab18bc5f0f116c60eb482ed6f/django-s3-cache-1.4.1.tar.gz" } ], "1.4.2": [ { "comment_text": "", "digests": { "md5": "3a731275a95b920e23d7bc5b1eea566e", "sha256": "cdd755276f8f9b6b9253307709cb14eceddcd7f3ef3952c7535f77daf60223b4" }, "downloads": -1, "filename": "django-s3-cache-1.4.2.tar.gz", "has_sig": false, "md5_digest": "3a731275a95b920e23d7bc5b1eea566e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6751, "upload_time": "2014-12-04T00:15:33", "url": "https://files.pythonhosted.org/packages/82/b9/bca55ce21c9f8a83684985e40d2b7c5aa8e4fde4d9bc9ecf21b9c5c7441a/django-s3-cache-1.4.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3a731275a95b920e23d7bc5b1eea566e", "sha256": "cdd755276f8f9b6b9253307709cb14eceddcd7f3ef3952c7535f77daf60223b4" }, "downloads": -1, "filename": "django-s3-cache-1.4.2.tar.gz", "has_sig": false, "md5_digest": "3a731275a95b920e23d7bc5b1eea566e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6751, "upload_time": "2014-12-04T00:15:33", "url": "https://files.pythonhosted.org/packages/82/b9/bca55ce21c9f8a83684985e40d2b7c5aa8e4fde4d9bc9ecf21b9c5c7441a/django-s3-cache-1.4.2.tar.gz" } ] }