{ "info": { "author": "Stanislas Guerra", "author_email": "stanislas.guerra@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "=====================\ndjango-thumborstorage\n=====================\n\n.. image:: https://coveralls.io/repos/Starou/django-thumborstorage/badge.png?branch=master\n :target: https://coveralls.io/r/Starou/django-thumborstorage?branch=master\n\n.. image:: https://img.shields.io/pypi/v/django-thumborstorage.svg\n :target: https://pypi.python.org/pypi/django-thumborstorage\n\n.. image:: https://travis-ci.org/Starou/django-thumborstorage.svg\n :target: https://travis-ci.org/Starou/django-thumborstorage\n :alt: Travis C.I.\n\nA Django custom storage for Thumbor backend.\n\nThis app provide 2 classes ``ThumborStorage`` and ``ThumborMigrationStorage``. The last one\nis a storage you can use for ``Imagefield`` initialy using a ``FileSystemStorage`` you want\nto migrate to Thumbor without batch-moving all of them. That way, Django continues to serve\nthem from the file system until you change the image on that field.\n\nInstall\n=======\n\n::\n\n pip install django-thumborstorage\n\nDependencies\n''''''''''''\n\n* Python 2.7\n* Python 3.5+\n* Django 1.11\n* Requests_\n* Libthumbor_\n\nRecommended:\n\n* Django-thumbor_ (to manage thumbnails).\n* Thumbor_\n\nUsage\n=====\n\nsettings.py\n'''''''''''\n\nAdd ``django_thumborstorage`` in your ``INSTALLED_APPS``.\n\nAnd set the following:\n\n.. code-block:: python\n\n THUMBOR_SERVER = 'http://localhost:8888'\n THUMBOR_SECURITY_KEY = 'MY_SECURE_KEY'\n # This may be a different host than THUMBOR_SERVER\n # only reachable by your Django server.\n THUMBOR_RW_SERVER = 'http://localhost:8888'\n\nmodels.py\n'''''''''\n\nJust set the ``storage`` parameter in the ImageField you want to manage with Thumbor:\n\n.. code-block:: python\n\n from django_thumborstorage.storages import ThumborStorage\n\n class Stuff(models.Model):\n def upload_path(instance, filename):\n return 'stuffs/%s' % filename\n photo = models.ImageField(upload_to=upload_path,\n storage=ThumborStorage(),\n height_field='photo_height',\n width_field='photo_width')\n photo_height = models.IntegerField(blank=True, null=True)\n photo_width = models.IntegerField(blank=True, null=True)\n\nIn the code\n'''''''''''\n\nYou can get the Thumbor ``uuid`` from the ```` instance using:\n\n.. code-block:: python\n\n my_stuff.photo.storage.key(my_stuff.photo.name)\n\nThis is useful to ``generate_url()`` with Django-thumbor_ when original files are stored on Thumbor. Thus,\nyou can pass the key as url parameter.\n\nCHANGELOG\n=========\n\n1.11.0\n''''''\n\n* Drop support for Django < 1.11 and Python 3.4.\n* Remove ``mock`` from dependencies.\n\n\n0.92.2\n''''''\n\n* Fix ``readonly_to_rw_url()`` to manage suffix in the urls.\n\n0.92.1\n''''''\n\n* Handle status code of the Thumbor server response when posting an image.\n\n0.92.0\n''''''\n\n* Added experimental Python 3.4 support (Thanks to *Charlie 123*.)\n* Fixed broken support for Django < 1.7 (Thanks to *Rizziepit*.)\n* Added unicode support in file names (Thanks to *Rizziepit*.)\n\n0.91.6\n''''''\n\n* Add ``storages.readonly_to_rw_url()``, a function to convert a read-only thumbor url in a rw url.\n\n0.91.5\n''''''\n\n* Use THUMBOR_SERVER to generate the original file url.\n\nBackward imcompatibilities\n--------------------------\n\n* ``THUMBOR_SERVER`` and ``THUMBOR_SECURITY_KEY`` are required in settings.\n\n0.91.4\n''''''\n\n* Add ``ThumborStorage.key(name)`` to retrieve the Thumbor uuid from the name.\n\n0.91.3\n''''''\n\nBackward imcompatibilities\n--------------------------\n\n* ``THUMBOR_WRITABLE_SERVER`` setting is replaced by ``THUMBOR_RW_SERVER`` since it is now used to retrieve the\n original file.\n\nTODO\n====\n\n* PUT\n\n.. _Requests: http://www.python-requests.org/en/latest/\n.. _Thumbor: https://github.com/globocom/thumbor\n.. _Libthumbor: https://github.com/heynemann/libthumbor\n.. _Django-thumbor: https://django-thumbor.readthedocs.org/en/latest/", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Starou/django-thumborstorage", "keywords": "", "license": "MIT Licence", "maintainer": "", "maintainer_email": "", "name": "django-thumborstorage", "package_url": "https://pypi.org/project/django-thumborstorage/", "platform": "", "project_url": "https://pypi.org/project/django-thumborstorage/", "project_urls": { "Homepage": "https://github.com/Starou/django-thumborstorage" }, "release_url": "https://pypi.org/project/django-thumborstorage/1.12.0/", "requires_dist": null, "requires_python": "", "summary": "Django custom storage for Thumbor backend.", "version": "1.12.0" }, "last_serial": 5567469, "releases": { "0.91.1": [ { "comment_text": "", "digests": { "md5": "1d2e700742e33befdf635a05c81c5418", "sha256": "87f50337285f6ef3d0d70e86787323a59d35301f54e8a707851808c356d0a520" }, "downloads": -1, "filename": "django-thumborstorage-0.91.1.tar.gz", "has_sig": false, "md5_digest": "1d2e700742e33befdf635a05c81c5418", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 119819, "upload_time": "2013-11-21T11:32:45", "url": "https://files.pythonhosted.org/packages/bc/29/7ba8441d573e664948755d2c48e311f981586c7eb5fa86fd766166aadf6d/django-thumborstorage-0.91.1.tar.gz" } ], "0.91.2": [ { "comment_text": "", "digests": { "md5": "ccc493b71d6e3c6a1090fc34a827434d", "sha256": "03cf527fd8adb5695c026dbf7f9e79952c6fe371f05d407b4dcd5e97f695e06c" }, "downloads": -1, "filename": "django-thumborstorage-0.91.2.tar.gz", "has_sig": false, "md5_digest": "ccc493b71d6e3c6a1090fc34a827434d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 117766, "upload_time": "2013-11-21T16:51:55", "url": "https://files.pythonhosted.org/packages/9a/d0/e75d989f683e470f64b0ceaea5dd8ca9052bdfbe316d2c13366b32735e8f/django-thumborstorage-0.91.2.tar.gz" } ], "0.91.3": [ { "comment_text": "", "digests": { "md5": "d4d6772d21afc1f9708b6af500de4546", "sha256": "a6908dc90a5383ac635a25e7482d73576ac0c8d7a21f1046bef90c88bb9cc011" }, "downloads": -1, "filename": "django-thumborstorage-0.91.3.tar.gz", "has_sig": false, "md5_digest": "d4d6772d21afc1f9708b6af500de4546", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 117779, "upload_time": "2013-11-27T11:30:35", "url": "https://files.pythonhosted.org/packages/c7/0f/868975c08bb12ee74915a1a58c76c18273c60fac1d65efada903a70eb42e/django-thumborstorage-0.91.3.tar.gz" } ], "0.91.4": [ { "comment_text": "", "digests": { "md5": "8c389bcb1e510aaf3d0a2554a2a9439f", "sha256": "96d21cf1b380b28c38f9c6e68fc7676aef56b296fde73f950363ede244092862" }, "downloads": -1, "filename": "django-thumborstorage-0.91.4.tar.gz", "has_sig": false, "md5_digest": "8c389bcb1e510aaf3d0a2554a2a9439f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 118096, "upload_time": "2013-11-28T16:22:50", "url": "https://files.pythonhosted.org/packages/57/11/f9cf0396ed5e67f621a744038a59652ae51c56834ebfdb6da3ec3af27bf4/django-thumborstorage-0.91.4.tar.gz" } ], "0.91.5": [ { "comment_text": "", "digests": { "md5": "77db791f4365c4723de745f1ea508331", "sha256": "3c1882052b230308f2b50385fccb7f2b08be9e490b5c20983ac4d8b5bf1142f7" }, "downloads": -1, "filename": "django-thumborstorage-0.91.5.tar.gz", "has_sig": false, "md5_digest": "77db791f4365c4723de745f1ea508331", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 119600, "upload_time": "2013-12-05T16:57:50", "url": "https://files.pythonhosted.org/packages/a0/96/6144a9e70360c436e9374c870e0ebb16d69b519539a67043c10e21524a68/django-thumborstorage-0.91.5.tar.gz" } ], "0.91.6": [ { "comment_text": "", "digests": { "md5": "1a302da802a49efe13c7b61192656d1f", "sha256": "7b3beea79f285969910e8326ca0ea813786763875912790642c820666a810284" }, "downloads": -1, "filename": "django-thumborstorage-0.91.6.tar.gz", "has_sig": false, "md5_digest": "1a302da802a49efe13c7b61192656d1f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 121977, "upload_time": "2014-10-03T11:54:06", "url": "https://files.pythonhosted.org/packages/26/bb/b6f6e30c3d6dc1f20d808dd4c80f501c50f8b06b60f34a1d981e876c4178/django-thumborstorage-0.91.6.tar.gz" } ], "0.91.7": [ { "comment_text": "", "digests": { "md5": "d6e6d6c3a00332b74b1aaf22c3bfd31e", "sha256": "5b59a29bdd577f195227235c2dbd7e1dc978531df4bdf2eed359646661852928" }, "downloads": -1, "filename": "django-thumborstorage-0.91.7.tar.gz", "has_sig": false, "md5_digest": "d6e6d6c3a00332b74b1aaf22c3bfd31e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 120040, "upload_time": "2015-06-05T12:27:19", "url": "https://files.pythonhosted.org/packages/5b/29/12c4cf4ad05d15fa83476db8c708bea00a4e23678e83a7c9ea69dd008a91/django-thumborstorage-0.91.7.tar.gz" } ], "0.91.8": [ { "comment_text": "", "digests": { "md5": "8eb4a592a17b7db81aaf0519c96acfec", "sha256": "ff3966487ff4db407a415a3ad5d3846d1dc9103c9ab9e394447e4e7b21741aa3" }, "downloads": -1, "filename": "django-thumborstorage-0.91.8.tar.gz", "has_sig": false, "md5_digest": "8eb4a592a17b7db81aaf0519c96acfec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 120073, "upload_time": "2015-06-22T10:49:08", "url": "https://files.pythonhosted.org/packages/38/e6/e12711720b335349d4e3025fd6e72ce32e68bf17f3e0144e16d737920b01/django-thumborstorage-0.91.8.tar.gz" } ], "0.92.0": [ { "comment_text": "", "digests": { "md5": "c2a3fb790e194282b4d28ba483a43373", "sha256": "8c6c549dda62d26409d63d71ac28989321ca0f2827c8fe2b7a7a8994968009cb" }, "downloads": -1, "filename": "django-thumborstorage-0.92.0.tar.gz", "has_sig": false, "md5_digest": "c2a3fb790e194282b4d28ba483a43373", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 122183, "upload_time": "2015-09-15T13:01:47", "url": "https://files.pythonhosted.org/packages/5a/46/cecabfccbf79994a03e1cdec6e6437de31bcfc1146d18818c2e299b824f2/django-thumborstorage-0.92.0.tar.gz" } ], "1.11.1": [ { "comment_text": "", "digests": { "md5": "bfdf9b5c94756bd10bdbce49a8403931", "sha256": "167a15200f957eaaa6a105584880a63a4d8c985f5cd078f410fc2a3a8bdfef39" }, "downloads": -1, "filename": "django-thumborstorage-1.11.1.tar.gz", "has_sig": false, "md5_digest": "bfdf9b5c94756bd10bdbce49a8403931", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 126804, "upload_time": "2018-12-17T11:04:34", "url": "https://files.pythonhosted.org/packages/3b/ca/f814dd55017b96f858b825163540d569e2590617ee96dab7a56345cec51c/django-thumborstorage-1.11.1.tar.gz" } ], "1.12.0": [ { "comment_text": "", "digests": { "md5": "23e1c506f673a44756da2d8421cdf48e", "sha256": "94e778dd1bcf26179ac11789c2efc1bed7badad5c072e7c187c3058f9b96f94d" }, "downloads": -1, "filename": "django-thumborstorage-1.12.0.tar.gz", "has_sig": false, "md5_digest": "23e1c506f673a44756da2d8421cdf48e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 126816, "upload_time": "2019-07-22T13:31:42", "url": "https://files.pythonhosted.org/packages/15/44/8b46d3ca70d02a6ccbbcd816830d3e81b46ca7e0285d9abcaf640fa46ecf/django-thumborstorage-1.12.0.tar.gz" } ], "1.9.12.1": [ { "comment_text": "", "digests": { "md5": "b7a21700fa6f79dab1dba7ff21adf341", "sha256": "c6d027365506be91230148e1a610ed706856327e097776fd6910244d920cbe9d" }, "downloads": -1, "filename": "django-thumborstorage-1.9.12.1.tar.gz", "has_sig": false, "md5_digest": "b7a21700fa6f79dab1dba7ff21adf341", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 131532, "upload_time": "2018-12-17T15:25:50", "url": "https://files.pythonhosted.org/packages/a0/70/d147a28cdee9e52f7879d5736d3e2955ac70dfec2a2ebeafbd274e8f25c4/django-thumborstorage-1.9.12.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "23e1c506f673a44756da2d8421cdf48e", "sha256": "94e778dd1bcf26179ac11789c2efc1bed7badad5c072e7c187c3058f9b96f94d" }, "downloads": -1, "filename": "django-thumborstorage-1.12.0.tar.gz", "has_sig": false, "md5_digest": "23e1c506f673a44756da2d8421cdf48e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 126816, "upload_time": "2019-07-22T13:31:42", "url": "https://files.pythonhosted.org/packages/15/44/8b46d3ca70d02a6ccbbcd816830d3e81b46ca7e0285d9abcaf640fa46ecf/django-thumborstorage-1.12.0.tar.gz" } ] }