{ "info": { "author": "Stefan \"hr\" Berder", "author_email": "hr@bonz.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Topic :: Internet" ], "description": "#################################\npython-diminuendo - HTML minifier\n#################################\n\nThis is a generic HTML minifier **NOT** using regular expressions. This minifier is fully HTML5 compatible.\n\nThe name is coming from the Harry Potter books and is `an incantation that\nforces objects to shrink `_\n\nThis project was started because of the lack of a *maintained* HTML minifier\nnot using complex regexp. This project uses `beautifulsoup\n`_ to navigate the HTML flow.\n\n.. image:: https://travis-ci.org/hrbonz/python-diminuendo.svg?branch=master\n :target: https://travis-ci.org/hrbonz/python-diminuendo\n :alt: Testing Status\n\n.. image:: https://readthedocs.org/projects/python-diminuendo/badge/?version=latest\n :target: https://readthedocs.org/projects/python-diminuendo/?badge=latest\n :alt: Documentation Status\n\n.. image:: http://img.shields.io/badge/license-BSD%203--Clause-blue.svg\n :target: http://opensource.org/licenses/BSD-3-Clause\n :alt: license BSD 3-Clause\n\n\nInstall\n=======\n\n.. code-block:: sh\n\n $ pip install python-diminuendo\n\nUsage\n=====\n\n**TODO**\n\nHTML minification\n-----------------\n\n.. code-block:: python\n\n >>> from diminuendo import htmlmin\n >>> html = \"\"\"\n \n Hello World!\n \n \n

Good morning

\n \n \"\"\"\n >>> minified = htmlmin(html)\n >>> print minified\n 'Hello World!

Good morning

'\n\nDevelopment\n===========\n\nAdd a minification test\n-----------------------\n\nTo add a minification test, simply add the html code as\n``test_name.html`` and its minified version as\n``test_name-minified.html`` in ``test/html``.\n\nTest\n----\n\nTest the package:\n\n.. code-block:: sh\n\n $ python -m unittest discover\n\nAutomatic testing in various environments:\n\n.. code-block:: sh\n\n $ tox\n\nRelease\n-------\n\nUse `bumpr` to release the package:\n\n.. code-block:: sh\n\n $ bumpr -b -m\n [...]\n $ python setup.py sdist bdist_wheel upload\n\nProject\n=======\n\n* `Source code on github `_\n* `Documentation on readthedocs `_\n* `Package on pypi `_\n\nOther projects\n==============\n\n* `django-htmlmin `_\n* `htmlmin `_\n\nLicense\n=======\n\npython-diminuendo is published under a BSD 3-clause license, see the LICENSE\nfile distributed with the project.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/hrbonz/python-diminuendo", "keywords": "minify html", "license": "BSD 3-Clause", "maintainer": null, "maintainer_email": null, "name": "python-diminuendo", "package_url": "https://pypi.org/project/python-diminuendo/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/python-diminuendo/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/hrbonz/python-diminuendo" }, "release_url": "https://pypi.org/project/python-diminuendo/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "A generic HTML minifier for python", "version": "0.1.1" }, "last_serial": 1467982, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "53c406c29d438a17100b3faaf3375c2f", "sha256": "6bdc598c441a39afa68ea054bff9de47fe4f897048bc7875274031d5cda483eb" }, "downloads": -1, "filename": "python_diminuendo-0.1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "53c406c29d438a17100b3faaf3375c2f", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6666, "upload_time": "2014-10-04T04:27:45", "url": "https://files.pythonhosted.org/packages/77/af/14ad43335f8468dd31d77a7562ed30441413615a9ab68fabc5dad6395505/python_diminuendo-0.1.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "db4669858e11acaed52ec01c012390b9", "sha256": "c9f0e186e0c7f320a39cbe05bb5f2aadbdcee61046a21bb1d68228618b89f101" }, "downloads": -1, "filename": "python-diminuendo-0.1.0.tar.gz", "has_sig": false, "md5_digest": "db4669858e11acaed52ec01c012390b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6086, "upload_time": "2014-10-04T04:27:42", "url": "https://files.pythonhosted.org/packages/3c/1c/e8a1952feaab9a0fb1a1e2aaf3bcee356a3b03f190938dd75c16cd6d1cea/python-diminuendo-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "0186997cddb37cf8db00c9a7d66e1079", "sha256": "7bf6b8f35c889c9b129248c362bb5610397f347805938c4b07d6019efdabba95" }, "downloads": -1, "filename": "python_diminuendo-0.1.1-py2-none-any.whl", "has_sig": false, "md5_digest": "0186997cddb37cf8db00c9a7d66e1079", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6669, "upload_time": "2015-03-19T04:27:41", "url": "https://files.pythonhosted.org/packages/fe/ad/3dcdf3491831fec890994d672d6de210aaacf5a36904436a944d5319c8e8/python_diminuendo-0.1.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "05690ac21ab537a463a1f87aa033d727", "sha256": "d8808b04ec35f04b55baab251ea783e645a566d457f51dc3206e7036653773c8" }, "downloads": -1, "filename": "python-diminuendo-0.1.1.tar.gz", "has_sig": false, "md5_digest": "05690ac21ab537a463a1f87aa033d727", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6088, "upload_time": "2015-03-19T04:27:32", "url": "https://files.pythonhosted.org/packages/07/16/0cf816790c85a3c16e7ff2b50e3b861fb4ac702ee19ab120e16fc1ac6e26/python-diminuendo-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0186997cddb37cf8db00c9a7d66e1079", "sha256": "7bf6b8f35c889c9b129248c362bb5610397f347805938c4b07d6019efdabba95" }, "downloads": -1, "filename": "python_diminuendo-0.1.1-py2-none-any.whl", "has_sig": false, "md5_digest": "0186997cddb37cf8db00c9a7d66e1079", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6669, "upload_time": "2015-03-19T04:27:41", "url": "https://files.pythonhosted.org/packages/fe/ad/3dcdf3491831fec890994d672d6de210aaacf5a36904436a944d5319c8e8/python_diminuendo-0.1.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "05690ac21ab537a463a1f87aa033d727", "sha256": "d8808b04ec35f04b55baab251ea783e645a566d457f51dc3206e7036653773c8" }, "downloads": -1, "filename": "python-diminuendo-0.1.1.tar.gz", "has_sig": false, "md5_digest": "05690ac21ab537a463a1f87aa033d727", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6088, "upload_time": "2015-03-19T04:27:32", "url": "https://files.pythonhosted.org/packages/07/16/0cf816790c85a3c16e7ff2b50e3b861fb4ac702ee19ab120e16fc1ac6e26/python-diminuendo-0.1.1.tar.gz" } ] }