{ "info": { "author": "Jethro Muller", "author_email": "git@jethromuller.co.za", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# quart_minify\n[![Build Status](https://travis-ci.org/AceFire6/quart_minify.svg?branch=master)](https://travis-ci.org/AceFire6/quart_minify)\n[![Coverage Status](https://coveralls.io/repos/github/AceFire6/quart_minify/badge.svg?branch=master)](https://coveralls.io/github/AceFire6/quart_minify?branch=master)\n\nA Quart extension to minify quart response for html, javascript, css and less compilation as well.\n\n## Install:\n#### With pip\n- `pip install quart-minify`\n\n#### From the source:\n- `git clone https://github.com/AceFire6/quart_minify.git`\n- `cd quart_minify`\n- `python setup.py install`\n\n## Setup:\n### Inside Quart app:\n\n```python\nfrom quart import Quart\nfrom quart_minify.minify import Minify\n\napp = Quart(__name__)\nMinify(app=app)\n```\n\n### Result:\n\n#### Before:\n```html\n\n \n \n \n \n \n

Example !

\n \n\n```\n#### After:\n```html\n

Example !

\n```\n\n## Options:\n```python\ndef __init__(self,\n app=None,\n html=True,\n js=False,\n cssless=True,\n cache=True,\n fail_safe=True,\n bypass=()):\n \"\"\"\n A Quart extension to minify flask response for html,\n javascript, css and less.\n @param: app Quart app instance to be passed (default:None).\n @param: js To minify the css output (default:False).\n @param: cssless To minify spaces in css (default:True).\n @param: cache To cache minifed response with hash (default: True).\n @param: fail_safe to avoid raising error while minifying (default True).\n @param: bypass a list of the routes to be bypassed by the minifier\n Notice: bypass route should be identical to the url_rule used for example:\n bypass=['/user/', '/users']\n \"\"\"\n```\n\n## Credit:\nAdapted from [flask_minify](https://github.com/mrf345/flask_minify)\n\n- [htmlmin][1322354e]: HTML python minifier.\n- [lesscpy][1322353e]: Python less compiler and css minifier.\n- [jsmin][1322355e]: JavaScript python minifier.\n\n[1322353e]: https://github.com/lesscpy/lesscpy \"lesscpy repo\"\n[1322354e]: https://github.com/mankyd/htmlmin \"htmlmin repo\"\n[1322355e]: https://github.com/tikitu/jsmin \"jsmin repo\"\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/AceFire6/quart_minify/archive/0.1.1.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/AceFire6/quart_minify/", "keywords": "quart extension minifer htmlmin lesscpy jsmin html js less css", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "quart-minify", "package_url": "https://pypi.org/project/quart-minify/", "platform": "any", "project_url": "https://pypi.org/project/quart-minify/", "project_urls": { "Download": "https://github.com/AceFire6/quart_minify/archive/0.1.1.tar.gz", "Homepage": "https://github.com/AceFire6/quart_minify/", "Source": "https://github.com/AceFire6/quart_minify/" }, "release_url": "https://pypi.org/project/quart-minify/0.1.1/", "requires_dist": [ "htmlmin (<0.2.0,>=0.1.12)", "jsmin (<2.3,>=2.2)", "lesscpy (<0.14.0,>=0.13.0)", "quart (<0.11.0,>=0.10.0)" ], "requires_python": ">=3.7", "summary": "Quart extension to minify HTML, CSS, JS, and less", "version": "0.1.1" }, "last_serial": 5765051, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "5d312a144a95a9878380866822ece8ae", "sha256": "9813fe4d963d665010be22bebc5a11adb890cf22b171ec04b533067ecdfb117d" }, "downloads": -1, "filename": "quart_minify-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "5d312a144a95a9878380866822ece8ae", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.7,<4.0", "size": 4113, "upload_time": "2019-08-31T16:45:02", "url": "https://files.pythonhosted.org/packages/ef/e0/20f0fe57f98a4e24b50662f741fb0f6fee21941ee8cbe2f7adf97d671684/quart_minify-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e0d3eb52c6256bc32649b83144ccb97a", "sha256": "4de6beb5368308d02591baa62a33bde5248400248ab2133d29131d9b8061e42c" }, "downloads": -1, "filename": "quart_minify-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e0d3eb52c6256bc32649b83144ccb97a", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7,<4.0", "size": 3204, "upload_time": "2019-08-31T16:45:04", "url": "https://files.pythonhosted.org/packages/46/71/84fe369be6843ed78a0003757b1954d05e6434a75d2a38f9e2bf2e06883d/quart_minify-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "56c86ecba763380647ee3a49fb5471d6", "sha256": "b5b3cfec958113684058df15c61cbabb7c380e1b66a58331ffe45fc38000e5d7" }, "downloads": -1, "filename": "quart_minify-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "56c86ecba763380647ee3a49fb5471d6", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.7", "size": 6976, "upload_time": "2019-08-31T18:56:36", "url": "https://files.pythonhosted.org/packages/53/9d/4e8b655ec693b1dfd118989a3e0df703dd761fa89ccf864d1856552b10d0/quart_minify-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f0fb8c7a247e6923c3733165b08c70c7", "sha256": "cdf49859cb70a1325b66e7e3daaca2a017d674f84b8f3f4eefcc5a9f47bb0567" }, "downloads": -1, "filename": "quart-minify-0.1.1.tar.gz", "has_sig": false, "md5_digest": "f0fb8c7a247e6923c3733165b08c70c7", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7", "size": 4837, "upload_time": "2019-08-31T18:56:38", "url": "https://files.pythonhosted.org/packages/d8/31/02ba3efa75251bdf6e59a9cd2d6d6229bb657d18ae0fda7ce17be3cd521d/quart-minify-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "56c86ecba763380647ee3a49fb5471d6", "sha256": "b5b3cfec958113684058df15c61cbabb7c380e1b66a58331ffe45fc38000e5d7" }, "downloads": -1, "filename": "quart_minify-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "56c86ecba763380647ee3a49fb5471d6", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.7", "size": 6976, "upload_time": "2019-08-31T18:56:36", "url": "https://files.pythonhosted.org/packages/53/9d/4e8b655ec693b1dfd118989a3e0df703dd761fa89ccf864d1856552b10d0/quart_minify-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f0fb8c7a247e6923c3733165b08c70c7", "sha256": "cdf49859cb70a1325b66e7e3daaca2a017d674f84b8f3f4eefcc5a9f47bb0567" }, "downloads": -1, "filename": "quart-minify-0.1.1.tar.gz", "has_sig": false, "md5_digest": "f0fb8c7a247e6923c3733165b08c70c7", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7", "size": 4837, "upload_time": "2019-08-31T18:56:38", "url": "https://files.pythonhosted.org/packages/d8/31/02ba3efa75251bdf6e59a9cd2d6d6229bb657d18ae0fda7ce17be3cd521d/quart-minify-0.1.1.tar.gz" } ] }