Name | python-strip-whitespace JSON |
Version |
0.1.1
JSON |
| download |
home_page | |
Summary | A powerful HTML whitespace remover for python |
upload_time | 2023-02-01 10:21:18 |
maintainer | |
docs_url | None |
author | baseplate-admin |
requires_python | >=3.7,<4.0 |
license | GPLv3 |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
HTML Whitespace remover for Python
==================================
|Pepy.tech Badge| |PyPi Version Badge| |Python Versions Badge| |License Badge| |Code Style| |Lines of Code Badge|
.. |Pepy.tech Badge| image:: https://static.pepy.tech/personalized-badge/python-strip-whitespace?period=week&units=international_system&left_color=grey&right_color=orange&left_text=Downloads
:target: https://pepy.tech/project/python-strip-whitespace
.. |PyPi Version Badge| image:: https://badge.fury.io/py/python-strip-whitespace.svg
:target: https://badge.fury.io/py/python-strip-whitespace
.. |Python Versions Badge| image:: https://img.shields.io/pypi/pyversions/python-strip-whitespace
:alt: PyPI - Python Version
:target: https://github.com/baseplate-admin/python_strip_whitespace/blob/main/setup.py
.. |License Badge| image:: https://img.shields.io/pypi/l/python-strip-whitespace
:alt: PyPI - License
:target: https://github.com/baseplate-admin/python_strip_whitespace/blob/main/LICENSE
.. |Code Style| image:: https://img.shields.io/badge/code%20style-black-000000.svg
:alt: Code Style
.. |Lines of Code Badge| image:: https://tokei.rs/b1/github/baseplate-admin/python_strip_whitespace
:alt: Lines of Code
:target: https://github.com/baseplate-admin/python_strip_whitespace
Introduction :
--------------
A powerful tool to optimize HTML
Why use "python_stip_whitespace" ?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Adds line break to InlineJS.
* It can automagically minify inline CSS, JS.
* Removes <!--prettier-ignore--> from HTML.
* It speeds up website by reducing the HTML size.
* It compiles regex at runtime. So it's blazing fast.
* Its mostly based on C ( gzip ) and Rust ( `minify-html <https://pypi.org/project/minify-html/>`__ ) libraries.
* Significantly lower bytes transferred when working with frameworks like AlpineJs ( Almost fully working & Please open a issue in the `Issue Tracker <https://github.com/baseplate-admin/python_strip_whitespace/issues>`__ if you encounter any bug ) & Petite Vue.
* Is very customizable. ( You can configure lower level `minify-html <https://github.com/wilsonzlin/minify-html/blob/master/python/src/lib.template.rs/>`_ rust bindings and also the lower level `python <https://github.com/juancarlospaco/css-html-js-minify/blob/master/css_html_js_minify/html_minifier.py/>`__ bindings when calling minify )
Why shouldn't you use python_stip_whitespace ?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Adds unnecessary ';;' in HTML. ( If you know any regex to fix this please put a pull request )
Requirements :
--------------
* `minify-html <https://github.com/wilsonzlin/minify-html>`__
* Python 3 ( Should work with all version? )
* `Brotli <https://pypi.org/project/Brotli/>`_ ( or `BrotliPy <https://pypi.org/project/brotlipy/>`_ ) | ( Optional )
* `ZSTD <https://pypi.org/project/zstandard/>`_ ( Optional ) ``Isn't supperted by modern browsers``
Used Internally by :
====================
* `django-strip-whitespace <https://github.com/baseplate-admin/django_strip_whitespace>`_
* `flask-strip-whitespace <https://github.com/baseplate-admin/flask_strip_whitespace>`_
* `fastapi-strip-whitespace <https://github.com/baseplate-admin/fastapi_strip_whitespace>`_ ( Doesn't exist 😛 )
Contributing :
==============
If you like this project add a star.
If you have problems or suggestions please put them in the `Issue Tracker <https://github.com/baseplate-admin/python_strip_whitespace/issues>`__.
If you like to add features. Fork this repo and submit a Pull Request. 😛
Roadmap :
=========
You tell me. If i have free time, I will implement it.
Raw data
{
"_id": null,
"home_page": "",
"name": "python-strip-whitespace",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7,<4.0",
"maintainer_email": "",
"keywords": "",
"author": "baseplate-admin",
"author_email": "61817579+baseplate-admin@users.noreply.github.com",
"download_url": "https://files.pythonhosted.org/packages/ee/49/2598a8ce8900a4bd815ebaf0c621763627920cf8491f144447c1a11114ee/python_strip_whitespace-0.1.1.tar.gz",
"platform": null,
"description": "HTML Whitespace remover for Python\n==================================\n|Pepy.tech Badge| |PyPi Version Badge| |Python Versions Badge| |License Badge| |Code Style| |Lines of Code Badge|\n\n.. |Pepy.tech Badge| image:: https://static.pepy.tech/personalized-badge/python-strip-whitespace?period=week&units=international_system&left_color=grey&right_color=orange&left_text=Downloads\n :target: https://pepy.tech/project/python-strip-whitespace\n\n.. |PyPi Version Badge| image:: https://badge.fury.io/py/python-strip-whitespace.svg\n :target: https://badge.fury.io/py/python-strip-whitespace\n\n.. |Python Versions Badge| image:: https://img.shields.io/pypi/pyversions/python-strip-whitespace\n :alt: PyPI - Python Version\n :target: https://github.com/baseplate-admin/python_strip_whitespace/blob/main/setup.py\n\n.. |License Badge| image:: https://img.shields.io/pypi/l/python-strip-whitespace\n :alt: PyPI - License\n :target: https://github.com/baseplate-admin/python_strip_whitespace/blob/main/LICENSE\n \n.. |Code Style| image:: https://img.shields.io/badge/code%20style-black-000000.svg\n :alt: Code Style\n \n.. |Lines of Code Badge| image:: https://tokei.rs/b1/github/baseplate-admin/python_strip_whitespace\n :alt: Lines of Code\n :target: https://github.com/baseplate-admin/python_strip_whitespace\n \nIntroduction :\n--------------\nA powerful tool to optimize HTML\n\nWhy use \"python_stip_whitespace\" ?\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n* Adds line break to InlineJS.\n* It can automagically minify inline CSS, JS.\n* Removes <!--prettier-ignore--> from HTML.\n* It speeds up website by reducing the HTML size.\n* It compiles regex at runtime. So it's blazing fast.\n* Its mostly based on C ( gzip ) and Rust ( `minify-html <https://pypi.org/project/minify-html/>`__ ) libraries.\n* Significantly lower bytes transferred when working with frameworks like AlpineJs ( Almost fully working & Please open a issue in the `Issue Tracker <https://github.com/baseplate-admin/python_strip_whitespace/issues>`__ if you encounter any bug ) & Petite Vue.\n* Is very customizable. ( You can configure lower level `minify-html <https://github.com/wilsonzlin/minify-html/blob/master/python/src/lib.template.rs/>`_ rust bindings and also the lower level `python <https://github.com/juancarlospaco/css-html-js-minify/blob/master/css_html_js_minify/html_minifier.py/>`__ bindings when calling minify )\n\n\nWhy shouldn't you use python_stip_whitespace ?\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n* Adds unnecessary ';;' in HTML. ( If you know any regex to fix this please put a pull request )\n\n\nRequirements :\n--------------\n\n* `minify-html <https://github.com/wilsonzlin/minify-html>`__\n* Python 3 ( Should work with all version? )\n* `Brotli <https://pypi.org/project/Brotli/>`_ ( or `BrotliPy <https://pypi.org/project/brotlipy/>`_ ) | ( Optional )\n* `ZSTD <https://pypi.org/project/zstandard/>`_ ( Optional ) ``Isn't supperted by modern browsers``\n\nUsed Internally by :\n====================\n* `django-strip-whitespace <https://github.com/baseplate-admin/django_strip_whitespace>`_ \n* `flask-strip-whitespace <https://github.com/baseplate-admin/flask_strip_whitespace>`_ \n* `fastapi-strip-whitespace <https://github.com/baseplate-admin/fastapi_strip_whitespace>`_ ( Doesn't exist \ud83d\ude1b )\n\nContributing :\n==============\nIf you like this project add a star. \nIf you have problems or suggestions please put them in the `Issue Tracker <https://github.com/baseplate-admin/python_strip_whitespace/issues>`__.\nIf you like to add features. Fork this repo and submit a Pull Request. \ud83d\ude1b\n\nRoadmap :\n=========\nYou tell me. If i have free time, I will implement it.\n",
"bugtrack_url": null,
"license": "GPLv3",
"summary": "A powerful HTML whitespace remover for python",
"version": "0.1.1",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "34e88dc8ad0ee37aafcfeee621fc060c84037cee33c7b726ec9c11e7cb89bd83",
"md5": "3b69fffcb913f80c6eaa05aaaabbb724",
"sha256": "74123155b2ab7f157511f8607139a977a4f338400704e27cb1150145bcb02ec8"
},
"downloads": -1,
"filename": "python_strip_whitespace-0.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "3b69fffcb913f80c6eaa05aaaabbb724",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7,<4.0",
"size": 22672,
"upload_time": "2023-02-01T10:21:17",
"upload_time_iso_8601": "2023-02-01T10:21:17.002441Z",
"url": "https://files.pythonhosted.org/packages/34/e8/8dc8ad0ee37aafcfeee621fc060c84037cee33c7b726ec9c11e7cb89bd83/python_strip_whitespace-0.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ee492598a8ce8900a4bd815ebaf0c621763627920cf8491f144447c1a11114ee",
"md5": "3e4c8b5f9293d8a8a1f5b21463bfee40",
"sha256": "aa4217675d2085b5aa5c7d619a9826d1995e63c238f2eb9538aa2e9a6a9792ec"
},
"downloads": -1,
"filename": "python_strip_whitespace-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "3e4c8b5f9293d8a8a1f5b21463bfee40",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7,<4.0",
"size": 20432,
"upload_time": "2023-02-01T10:21:18",
"upload_time_iso_8601": "2023-02-01T10:21:18.788386Z",
"url": "https://files.pythonhosted.org/packages/ee/49/2598a8ce8900a4bd815ebaf0c621763627920cf8491f144447c1a11114ee/python_strip_whitespace-0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-02-01 10:21:18",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "python-strip-whitespace"
}