{ "info": { "author": "Artur Barseghyan", "author_email": "artur.barseghyan@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "====================\ndjango-eximagination\n====================\nFetch external images directly from templates.\n\nA Django template tag library which allows to download external images, store\nthem locally and return the local path to locally stored image to a desired\ncontext variable, along with ``width`` and ``height`` attributes of the image\nfetched. Caches the fetched images locally for the given time (set in\nsettings).\n\nYou could, for example, use this app to solve the problems with displaying of\na mixed content (assets loaded from HTTP and HTTPS sources).\n\nPrerequisites\n=============\n- Django 1.8, 1.9, 1.10\n- Python >=2.7, >=3.4\n\nInstallation\n============\n1. Install ``django-eximagination``\n\nLatest stable version on PyPI:\n\n.. code-block:: sh\n\n pip install django-eximagination\n\nLatest stable version from GitHub:\n\n pip install https://github.com/barseghyanartur/django-eximagination/archive/stable.tar.gz\n\n2. Add ``eximagination`` to ``INSTALLED_APPS``.\n\n.. code-block:: python\n\n INSTALLED_APPS = (\n # ...\n 'eximagination',\n # ...\n )\n\n3. Configure\n\nBy default, ``django-eximagination`` expects your files to be stored in\n``/media/external_images`` directory. If location varies, redefine the\ndirectories in your Django settings, make sure the path is writable and that\nwww-data (or whatever is applicable) has rights to write into it.\n\n.. code-block:: python\n\n import os\n\n BASE_DIR = os.path.dirname(os.path.dirname(__file__))\n MEDIA_ROOT = os.path.join(BASE_DIR, '..', '..', 'media')\n EXIMAGINATION_MEDIA_ROOT = os.path.join(MEDIA_ROOT, 'external_images')\n EXIMAGINATION_MEDIA_URL = '/media/external_images'\n EXIMAGINATION_MEDIA_RELATIVE_ROOT = 'external_images/'\n # After 30 days we re-fetch the file anyway.\n EXIMAGINATION_EXPIRATION_INTERVAL = 2592000\n\nUsage example (in a Django template)\n====================================\nSee the `example directory\n`_ for working\ncode example.\n\nExample #1:\n\n.. code-block:: html\n\n {% load eximaginate %}\n\n \n\nExample #2:\n\n.. code-block:: html\n\n {% load eximaginate thumbnail %}\n\n {% eximaginate 'http://www.google.com/intl/en/images/logo.gif' as original %}\n\n \n\nIn both cases there are two additional context variables added:\n\n- ``ei_width`` - Width of the image\n- ``ei_height`` - Height of the image\n\nTesting\n=======\nSimply type:\n\n.. code-block:: sh\n\n ./runtests.py\n\nor use tox:\n\n.. code-block:: sh\n\n tox\n\nor use tox to check specific env:\n\n.. code-block:: sh\n\n tox -e py35\n\nor run Django tests:\n\n.. code-block:: sh\n\n ./manage.py test eximagination --settings=settings.testing\n\nLicense\n=======\nGPL 2.0/LGPL 2.1\n\nSupport\n=======\nFor any issues contact me at the e-mail given in the `Author`_ section or open\nan issue on BitBucket/GitHub.\n\nAuthor\n======\nArtur Barseghyan \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/barseghyanartur/django-eximagination", "keywords": "eximagination", "license": "GPL 2.0/LGPL 2.1", "maintainer": "", "maintainer_email": "", "name": "django-eximagination", "package_url": "https://pypi.org/project/django-eximagination/", "platform": "", "project_url": "https://pypi.org/project/django-eximagination/", "project_urls": { "Homepage": "https://github.com/barseghyanartur/django-eximagination" }, "release_url": "https://pypi.org/project/django-eximagination/0.8.3/", "requires_dist": null, "requires_python": "", "summary": "A Django template tag library which allows to download external images, store them locally and return the local path to locally stored image to a desired context variable", "version": "0.8.3" }, "last_serial": 3472179, "releases": { "0.8": [ { "comment_text": "", "digests": { "md5": "2d0daa6d4f02460d46d01e18c3d19199", "sha256": "94e61b531683df99de2ae4a55d99be96b0cb49ca09c2939aa0a82b13f4837cb5" }, "downloads": -1, "filename": "django_eximagination-0.8-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2d0daa6d4f02460d46d01e18c3d19199", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 12964, "upload_time": "2017-01-29T00:10:53", "url": "https://files.pythonhosted.org/packages/07/08/798f62999b975cb60bcc9bf1982700116aa7e34aca9bf101868777b4410e/django_eximagination-0.8-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ea67e3eda45bffff8c424282e9313da3", "sha256": "1a51023c144455cb8d15ffde1f7754bea94ac2b20dbd878a8f71fc256cd060d7" }, "downloads": -1, "filename": "django-eximagination-0.8.tar.gz", "has_sig": false, "md5_digest": "ea67e3eda45bffff8c424282e9313da3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7319, "upload_time": "2017-01-29T00:10:51", "url": "https://files.pythonhosted.org/packages/6c/e4/cff1a8b8ac641e2d2d341fdc9273d4a38b03f58ae3f3c9eb551089c8c1fb/django-eximagination-0.8.tar.gz" } ], "0.8.1": [ { "comment_text": "", "digests": { "md5": "24f8aa65a19f1a82452535f96a157754", "sha256": "af70c42c07ee1f6c87dfc73bfb8e52fa069b59217582674884557857d34f4583" }, "downloads": -1, "filename": "django_eximagination-0.8.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "24f8aa65a19f1a82452535f96a157754", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 13003, "upload_time": "2017-02-11T21:44:26", "url": "https://files.pythonhosted.org/packages/63/e7/30c05ac6d4ea070c6949cbf7e4aebfa218207d8ba1953197811a9a4ab5b7/django_eximagination-0.8.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dbcc8acdc36e27e6945040e4eecdbbff", "sha256": "af17bd6f2fd483076dbf381c968bf7066861b6454e9ac09d2fad7482a00f04dd" }, "downloads": -1, "filename": "django-eximagination-0.8.1.tar.gz", "has_sig": false, "md5_digest": "dbcc8acdc36e27e6945040e4eecdbbff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7329, "upload_time": "2017-02-11T21:44:24", "url": "https://files.pythonhosted.org/packages/94/4c/071b7afecab3d35147bafc1af2873e330faee5664eb5c304573f1154247a/django-eximagination-0.8.1.tar.gz" } ], "0.8.2": [ { "comment_text": "", "digests": { "md5": "a4d82ad16573ccdb198dab44200e1cd2", "sha256": "6859d77369cf4d2bc712b9ba2fc174668d99a2decc9c0b77bd58fd999cb99a11" }, "downloads": -1, "filename": "django_eximagination-0.8.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a4d82ad16573ccdb198dab44200e1cd2", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 13652, "upload_time": "2017-10-13T22:10:22", "url": "https://files.pythonhosted.org/packages/7f/91/41d88d55c0e2dec22caa4dabba188f49c61b4eb546ca58a34bcf77a9dbb5/django_eximagination-0.8.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5b275b190ecca89a0a8f7557eb7340c8", "sha256": "755a48ce5b667c97fb30e5a0f634f4fb5f057c142c759f22073702fac1d38a11" }, "downloads": -1, "filename": "django-eximagination-0.8.2.tar.gz", "has_sig": false, "md5_digest": "5b275b190ecca89a0a8f7557eb7340c8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7565, "upload_time": "2017-10-13T22:10:20", "url": "https://files.pythonhosted.org/packages/0b/58/e2e10fe12cfb5a658a549dac26a525ab11dcc35b2de3fff6872a33f98161/django-eximagination-0.8.2.tar.gz" } ], "0.8.3": [ { "comment_text": "", "digests": { "md5": "6447ad92a928a627d14268a6978d6f9c", "sha256": "0f10a43549f5f239777cbbce1d1fd624206f5d91ae48a78b3cefad32e356f204" }, "downloads": -1, "filename": "django_eximagination-0.8.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6447ad92a928a627d14268a6978d6f9c", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 13715, "upload_time": "2017-10-13T22:24:58", "url": "https://files.pythonhosted.org/packages/fe/bd/0e1a44e70e50ac2389fec944687215258f6672f441a350b273d9d36e19f2/django_eximagination-0.8.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "16f26e6a93ccc4ab12263b699d05ce86", "sha256": "6f913f0266be1ba9ba03470a2e3da85d45e5c12e4f9500508ce9590559072f7d" }, "downloads": -1, "filename": "django-eximagination-0.8.3.tar.gz", "has_sig": false, "md5_digest": "16f26e6a93ccc4ab12263b699d05ce86", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7637, "upload_time": "2017-10-13T22:24:56", "url": "https://files.pythonhosted.org/packages/44/ee/8069f2da4bf3824b1b58ad83337be797a98ae7f87d634d96fd4e82fc830c/django-eximagination-0.8.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6447ad92a928a627d14268a6978d6f9c", "sha256": "0f10a43549f5f239777cbbce1d1fd624206f5d91ae48a78b3cefad32e356f204" }, "downloads": -1, "filename": "django_eximagination-0.8.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6447ad92a928a627d14268a6978d6f9c", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 13715, "upload_time": "2017-10-13T22:24:58", "url": "https://files.pythonhosted.org/packages/fe/bd/0e1a44e70e50ac2389fec944687215258f6672f441a350b273d9d36e19f2/django_eximagination-0.8.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "16f26e6a93ccc4ab12263b699d05ce86", "sha256": "6f913f0266be1ba9ba03470a2e3da85d45e5c12e4f9500508ce9590559072f7d" }, "downloads": -1, "filename": "django-eximagination-0.8.3.tar.gz", "has_sig": false, "md5_digest": "16f26e6a93ccc4ab12263b699d05ce86", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7637, "upload_time": "2017-10-13T22:24:56", "url": "https://files.pythonhosted.org/packages/44/ee/8069f2da4bf3824b1b58ad83337be797a98ae7f87d634d96fd4e82fc830c/django-eximagination-0.8.3.tar.gz" } ] }