django-smart-media


Namedjango-smart-media JSON
Version 0.3.1 PyPI version JSON
download
home_pagehttps://github.com/sveetch/django-smart-media
SummaryDjango file fields with SVG support
upload_time2023-08-18 21:27:12
maintainer
docs_urlNone
authorDavid Thenon
requires_python
licenseMIT
keywords python django
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.


Dependancies
************

* `Python`_>=3.8;
* `Django`_>=3.2,<4.2;
* `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": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "Python Django",
    "author": "David Thenon",
    "author_email": "sveetch@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/0c/dd/73383258c3925c09a0b5c8eee00dbe4d326c12d5ebbda62dd3a05fe4ffe9/django-smart-media-0.3.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\nDependancies\n************\n\n* `Python`_>=3.8;\n* `Django`_>=3.2,<4.2;\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.3.1",
    "project_urls": {
        "Homepage": "https://github.com/sveetch/django-smart-media"
    },
    "split_keywords": [
        "python",
        "django"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0cdd73383258c3925c09a0b5c8eee00dbe4d326c12d5ebbda62dd3a05fe4ffe9",
                "md5": "bec21df79d53212d74accce6c436dee8",
                "sha256": "fd90ce3871ca0ce473685b1f299fd8a0940783720eaf215f55202fb48e9b61a8"
            },
            "downloads": -1,
            "filename": "django-smart-media-0.3.1.tar.gz",
            "has_sig": false,
            "md5_digest": "bec21df79d53212d74accce6c436dee8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 19661,
            "upload_time": "2023-08-18T21:27:12",
            "upload_time_iso_8601": "2023-08-18T21:27:12.186274Z",
            "url": "https://files.pythonhosted.org/packages/0c/dd/73383258c3925c09a0b5c8eee00dbe4d326c12d5ebbda62dd3a05fe4ffe9/django-smart-media-0.3.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-18 21:27:12",
    "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.10140s