{ "info": { "author": "Styria Digital Services", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.8", "Intended Audience :: Developers", "License :: OSI Approved :: MIT 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.4", "Programming Language :: Python :: 3.5", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "README\n******\n\n.. image:: https://travis-ci.org/Styria-Digital/django-unload.svg?branch=master\n :target: https://travis-ci.org/Styria-Digital/django-unload\n\n.. image:: https://coveralls.io/repos/github/Styria-Digital/django-unload/badge.svg?branch=master\n :target: https://coveralls.io/github/Styria-Digital/django-unload?branch=master\n\n.. image:: https://img.shields.io/pypi/v/django-unload.svg\n :target: https://pypi.python.org/pypi/django-unload\n :alt: Version\n\n*django-unload* is a maintenance application used for performing template cleanup. It is used primarily as a command-line tool that scans the entire project or the specified app and returns the results in a tabular format.\n\nInstallation\n============\n\nRequirements\n------------\n\n* Python 2.7+, 3.4+\n* Django 1.8 (1.9 support will be added later)\n* Tabulate\n\n\nInstallation\n------------\nTo install the package, type:\n\n``$ pip install django-unload``\n\nSetup\n-----\n\nEnsure that ``'unload'`` is in your project's ``INSTALLED_APPS``::\n\n INSTALLED_APPS = [\n ...\n 'unload',\n ...\n ]\n\nUser Guide\n==========\n\n*django-unload* is used as a command line tool. It can either be used to scan all template files in the project or the templates in the specified Django app.\n\nIn order for the plugin to function properly, all third-pary packages located in the *INSTALLED_APPS* setting (e.g. django-debug-toolbar) should be installed using *pip*. *django-unload* uses *pip* to differentiate between the project's templates and the templates of packages located in the installed apps (e.g. admin templates).\n\nScan the project\n----------------\n\nTo scan all template files in the project, type:\n\n ``$ python manage.py find_unnecessary_loads``.\n\nScan an app\n-----------\n\nTo scan a specific app, type:\n\n ``$ python manage.py find_unnecessary_loads --app ``.\n\n\nOutput\n------\n\nThe output is sent to the console. Although all template files are scanned, only templates with issues and the issues in question are displayed. The issues are displayed in two tables:\n\n1. The first table points to duplicate loads;\n\n +--------------------+------------------------+---------------+\n | Duplicate module | Duplicate tag/filter | Line number |\n +====================+========================+===============+\n | some_module | | 10, 23 |\n +--------------------+------------------------+---------------+\n | some_other_module | some_tag | 14, 47 |\n +--------------------+------------------------+---------------+\n\n\n2. The second table simply lists unutilized modules, tags and filters;\n\n +---------------------------+-------------------------+\n | Unutilized module | Unutilized tag/filter |\n +===========================+=========================+\n | some_module | some_tag |\n +---------------------------+-------------------------+\n | some_other_module | some_filter |\n +---------------------------+-------------------------+\n\n\n**WARNING:** If you get a *TemplateSyntaxError*, the template in question is probably outdated and/or has not been used in a while.\n\nExample Output\n--------------\n\n\n/path/to/template.html\n\n+--------------------+------------------------+---------------+\n| Duplicate module | Duplicate tag/filter | Line number |\n+====================+========================+===============+\n| some_module | | 10, 23 |\n+--------------------+------------------------+---------------+\n| some_other_module | some_tag | 14, 47 |\n+--------------------+------------------------+---------------+\n\n\n\n+---------------------------+-------------------------+\n| Unutilized module | Unutilized tag/filter |\n+===========================+=========================+\n| some_module | some_tag |\n+---------------------------+-------------------------+\n| some_other_module | some_filter |\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/Styria-Digital/django-unload", "keywords": "django template tag filter", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-unload", "package_url": "https://pypi.org/project/django-unload/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-unload/", "project_urls": { "Homepage": "https://github.com/Styria-Digital/django-unload" }, "release_url": "https://pypi.org/project/django-unload/0.3.3/", "requires_dist": [ "django (>=1.8,<1.9)", "tabulate (==0.7.5)" ], "requires_python": "", "summary": "Remove unused custom Django template tags and filters", "version": "0.3.3" }, "last_serial": 4749209, "releases": { "0.3.1": [ { "comment_text": "", "digests": { "md5": "a89510922716d8320548a57fc1555861", "sha256": "85c3fd33400fa5f02aceab7866a2ad5eba9aedb26400b7dfa92017e1def3cf82" }, "downloads": -1, "filename": "django_unload-0.3.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a89510922716d8320548a57fc1555861", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 19053, "upload_time": "2016-09-09T14:19:03", "url": "https://files.pythonhosted.org/packages/b4/60/ec4f4cd0fc8b4e029845acb64f7788916264004fb12889181da0bffd5851/django_unload-0.3.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "004554aa3fbc32d470710072da40aaa3", "sha256": "5761f172e97faa2aff9d2e60d1d96f65bb3f9d42b1cb0460252abbfd87a00c72" }, "downloads": -1, "filename": "django-unload-0.3.1.tar.gz", "has_sig": false, "md5_digest": "004554aa3fbc32d470710072da40aaa3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17327, "upload_time": "2016-09-09T14:45:08", "url": "https://files.pythonhosted.org/packages/64/ba/38161b206e4148cd2f1f1378bf20fcb3a2b5b5219575d1d62d99726ba5bf/django-unload-0.3.1.tar.gz" } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "1500378f7517191a95b63c06e3bf5804", "sha256": "b3977d631a1471ea9849d802002db985564684d932e1b2cb8b9ef8495dd39286" }, "downloads": -1, "filename": "django_unload-0.3.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1500378f7517191a95b63c06e3bf5804", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 20010, "upload_time": "2016-09-13T09:06:31", "url": "https://files.pythonhosted.org/packages/61/2e/55bc5961c9a5b1866727f344b5e9245f44c95e2dfd9b68e191e110277249/django_unload-0.3.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6782debb711dad463a73c7ad08c6f700", "sha256": "2b9bbf67203dc371aa89aef7df074960c7f6f3760a6ae7f551d8d2e038cd714c" }, "downloads": -1, "filename": "django-unload-0.3.3.tar.gz", "has_sig": false, "md5_digest": "6782debb711dad463a73c7ad08c6f700", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18422, "upload_time": "2016-09-13T09:06:33", "url": "https://files.pythonhosted.org/packages/62/7e/a36ca9756f2f777e50c1950528d20672af0092c330809f946f5e85de96b0/django-unload-0.3.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1500378f7517191a95b63c06e3bf5804", "sha256": "b3977d631a1471ea9849d802002db985564684d932e1b2cb8b9ef8495dd39286" }, "downloads": -1, "filename": "django_unload-0.3.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1500378f7517191a95b63c06e3bf5804", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 20010, "upload_time": "2016-09-13T09:06:31", "url": "https://files.pythonhosted.org/packages/61/2e/55bc5961c9a5b1866727f344b5e9245f44c95e2dfd9b68e191e110277249/django_unload-0.3.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6782debb711dad463a73c7ad08c6f700", "sha256": "2b9bbf67203dc371aa89aef7df074960c7f6f3760a6ae7f551d8d2e038cd714c" }, "downloads": -1, "filename": "django-unload-0.3.3.tar.gz", "has_sig": false, "md5_digest": "6782debb711dad463a73c7ad08c6f700", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18422, "upload_time": "2016-09-13T09:06:33", "url": "https://files.pythonhosted.org/packages/62/7e/a36ca9756f2f777e50c1950528d20672af0092c330809f946f5e85de96b0/django-unload-0.3.3.tar.gz" } ] }