{ "info": { "author": "Chad Shryock", "author_email": "chad@keystone.works", "bugtrack_url": null, "classifiers": [ "Framework :: Django", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "django-cloudimage\n=================\n\nA Django wrapper for https://cloudimage.io\n\nInstallation\n------------\n\nInstall via pip:\n\n::\n\n pip install django-cloudimage\n\nUsage\n-----\n\n1. Add to ``INSTALLED_APPS`` in ``settings.py`` ``'cloudimage',``\n2. Add the ``CLOUDIMAGE_TOKEN`` in ``settings.py``\n3. Add the include to urlpatterns in ``urls.py``\n ``urlpatterns = [ url(r'^media/', include('cloudimage.urls')), ]``\n4. Load the template tag into a template ``{% load cloudimage %}``\n5. Use the ``image`` tag. ``{% image 'path/to/image.jpg' width=100 %}``\n Visit the `CloudImage\n Docs `__ for all of the\n options. Convert parameters to kwargs.\n\nOptions\n-------\n\nCache Control headers\n~~~~~~~~~~~~~~~~~~~~~\n\nIt is highly recommended that if you use this package your site should\nbe sitting behind a CDN. Not sure what this is, check out\nhttps://www.cloudflare.com/\n\nAdd to ``settings.py``\n\nTo set an expiration timeout use an integer in seconds. For example,\nbelow the image is set to cache for an hour.\n\n::\n\n CLOUDIMAGE_CACHE_CONTROL = 3600\n\nThis will output ``Cache-Control max-age=3600`` in the response header.\n\n**The advanced option**\n\nAny string you pass that doesn't convert to an int will be set in the\nheader.\n\n::\n\n CLOUDIMAGE_CACHE_CONTROL = \"no-cache\"\n\nThis will output ``Cache-Control no-cache`` in the response header.\n\nCaveats\n-------\n\n- `KISS `__\n- The origional image must be accessable via a URL, so RSZ.IO can\n access it. I use\n `django-storages `__\n with AWS S3 to serve my media.\n- This is tested and used in production with Django 1.10 and 1.11 on\n Python 3.5 and 3.6. But this should work on older versions of Django\n and Python 2. Open an issue or pull request if not the case.\n\nVersioning\n----------\n\nThe package is following the Major.Minor.BugFix philosophy. So breaking\nchanges will increase the major number. New features will increase the\nminor number.\n\nSo it is safe to put this line in your ``requirements.txt``\n\n**All new features, no breaking features**\n\n::\n\n django-cloudimage>=1.0.0,<2.0\n\n**Just bugfixes**\n\n::\n\n django-cloudimage>=1.0.0,<1.1\n\nRelease Notes\n-------------\n\nThis project is using GitHub's release feature. Find the release notes\nhere https://github.com/g3rd/django-cloudimage/releases\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/g3rd/django-cloudimage", "keywords": "django resize image", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-cloudimage", "package_url": "https://pypi.org/project/django-cloudimage/", "platform": "", "project_url": "https://pypi.org/project/django-cloudimage/", "project_urls": { "Homepage": "https://github.com/g3rd/django-cloudimage" }, "release_url": "https://pypi.org/project/django-cloudimage/1.0.1/", "requires_dist": [ "django (>=1.10)", "requests (>=2.14.2)" ], "requires_python": "", "summary": "Django wrapper for cloudimage.io", "version": "1.0.1" }, "last_serial": 3015617, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "c7f2669d73641865fa671ba32ca6aaa8", "sha256": "a0c3f8b488505b0a9f477e3a5a13dad87d0483f55a5d5c86b31027823570973f" }, "downloads": -1, "filename": "django_cloudimage-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c7f2669d73641865fa671ba32ca6aaa8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7601, "upload_time": "2017-07-11T18:53:34", "url": "https://files.pythonhosted.org/packages/61/fd/5a5400797ef48452ba03b436d0647aa407d71185b3dc83a5887eb8b17b54/django_cloudimage-1.0.0-py2.py3-none-any.whl" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "1b0347277a3c94dfc666d717932e65e3", "sha256": "bdfb4e3eace713d6560328e71b323ec18338f118fab22dbc675abc9f7b54092e" }, "downloads": -1, "filename": "django_cloudimage-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1b0347277a3c94dfc666d717932e65e3", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7634, "upload_time": "2017-07-11T19:49:52", "url": "https://files.pythonhosted.org/packages/9f/51/ce4557693664f47ddc7f2de29690a922d7f6ab00b3f81a5888142a79932d/django_cloudimage-1.0.1-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1b0347277a3c94dfc666d717932e65e3", "sha256": "bdfb4e3eace713d6560328e71b323ec18338f118fab22dbc675abc9f7b54092e" }, "downloads": -1, "filename": "django_cloudimage-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1b0347277a3c94dfc666d717932e65e3", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7634, "upload_time": "2017-07-11T19:49:52", "url": "https://files.pythonhosted.org/packages/9f/51/ce4557693664f47ddc7f2de29690a922d7f6ab00b3f81a5888142a79932d/django_cloudimage-1.0.1-py2.py3-none-any.whl" } ] }