django-smart-media


Namedjango-smart-media JSON
Version 0.4.1 PyPI version JSON
download
home_pagehttps://github.com/sveetch/django-smart-media
SummaryDjango file fields with SVG support
upload_time2024-09-28 20:23:26
maintainerNone
docs_urlNone
authorDavid Thenon
requires_python>=3.9
licenseMIT
keywords python django image sorl
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            .. _Python: https://www.python.org/
.. _Django: https://www.djangoproject.com/
.. _sorl-thumbnail: https://github.com/jazzband/sorl-thumbnail

==================
Django smart media
==================

A suit of tools to use a FileField to upload image with light SVG support, include
thumbnail preview in field and a template tag around `sorl-thumbnail`_ library.


Dependencies
************

* `Python`_>=3.9;
* `Django`_>=4.0,<5.1;
* `sorl-thumbnail`_>=12.9.0;


Overview
********

Concretely this contains:

* Form widgets to build HTML for a ``FileField`` either with or without clearable
  mode. Both mode have a version to include needed layout assets (CSS and Javascript)
  and another one without assets;
* Form fields which already set a "smart" widget;
* Templates to build the widgets HTML;
* CSS and Javascript for the widget layout;
* Field validator;
* Model signals to purge stale files;
* Model field with all "smart" features;
* A template tag to make thumbnail safely with SVG image (original SVG is just used
  without Sorl raising issue for a non bitmap image);
* Some helpers to ease some specific implementations;

Although this can work with ``ImageField``, SVG support will only work with
``FileField`` since ``ImageField`` rely on PIL that does not support SVG format.


Links
*****

* Read the documentation on `Read the docs <https://django-smart-media.readthedocs.io/>`_;
* Download its `PyPi package <https://pypi.python.org/pypi/django-smart-media>`_;
* Clone it on its `Github repository <https://github.com/sveetch/django-smart-media>`_;

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/sveetch/django-smart-media",
    "name": "django-smart-media",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "Python, Django, Image, Sorl",
    "author": "David Thenon",
    "author_email": "sveetch@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/fb/e2/61e187db28696418c7b102d2cb85b9b55afa37768bea4986899f50c208fd/django_smart_media-0.4.1.tar.gz",
    "platform": null,
    "description": ".. _Python: https://www.python.org/\n.. _Django: https://www.djangoproject.com/\n.. _sorl-thumbnail: https://github.com/jazzband/sorl-thumbnail\n\n==================\nDjango smart media\n==================\n\nA suit of tools to use a FileField to upload image with light SVG support, include\nthumbnail preview in field and a template tag around `sorl-thumbnail`_ library.\n\n\nDependencies\n************\n\n* `Python`_>=3.9;\n* `Django`_>=4.0,<5.1;\n* `sorl-thumbnail`_>=12.9.0;\n\n\nOverview\n********\n\nConcretely this contains:\n\n* Form widgets to build HTML for a ``FileField`` either with or without clearable\n  mode. Both mode have a version to include needed layout assets (CSS and Javascript)\n  and another one without assets;\n* Form fields which already set a \"smart\" widget;\n* Templates to build the widgets HTML;\n* CSS and Javascript for the widget layout;\n* Field validator;\n* Model signals to purge stale files;\n* Model field with all \"smart\" features;\n* A template tag to make thumbnail safely with SVG image (original SVG is just used\n  without Sorl raising issue for a non bitmap image);\n* Some helpers to ease some specific implementations;\n\nAlthough this can work with ``ImageField``, SVG support will only work with\n``FileField`` since ``ImageField`` rely on PIL that does not support SVG format.\n\n\nLinks\n*****\n\n* Read the documentation on `Read the docs <https://django-smart-media.readthedocs.io/>`_;\n* Download its `PyPi package <https://pypi.python.org/pypi/django-smart-media>`_;\n* Clone it on its `Github repository <https://github.com/sveetch/django-smart-media>`_;\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Django file fields with SVG support",
    "version": "0.4.1",
    "project_urls": {
        "Changelog": "https://django-smart-media.readthedocs.io/en/latest/history.html",
        "Documentation": "https://django-smart-media.readthedocs.io/",
        "Homepage": "https://github.com/sveetch/django-smart-media",
        "Issue Tracker": "https://github.com/sveetch/django-smart-media/issues",
        "Source Code": "https://github.com/sveetch/django-smart-media"
    },
    "split_keywords": [
        "python",
        " django",
        " image",
        " sorl"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fbe261e187db28696418c7b102d2cb85b9b55afa37768bea4986899f50c208fd",
                "md5": "bd53a8871c7dc875418315b28ceb41eb",
                "sha256": "7f9da9998553fee1c396c37ae35cbea8b700ec7f4105b872dfcdc5f09ccb3e37"
            },
            "downloads": -1,
            "filename": "django_smart_media-0.4.1.tar.gz",
            "has_sig": false,
            "md5_digest": "bd53a8871c7dc875418315b28ceb41eb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 20333,
            "upload_time": "2024-09-28T20:23:26",
            "upload_time_iso_8601": "2024-09-28T20:23:26.087548Z",
            "url": "https://files.pythonhosted.org/packages/fb/e2/61e187db28696418c7b102d2cb85b9b55afa37768bea4986899f50c208fd/django_smart_media-0.4.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-28 20:23:26",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "sveetch",
    "github_project": "django-smart-media",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "django-smart-media"
}
        
Elapsed time: 0.34579s