{"id":15009831,"url":"https://github.com/baseplate-admin/python_strip_whitespace","last_synced_at":"2025-04-09T17:52:17.873Z","repository":{"id":45238580,"uuid":"423415508","full_name":"baseplate-admin/python_strip_whitespace","owner":"baseplate-admin","description":"HTML White space remover for Python Programming Language","archived":false,"fork":false,"pushed_at":"2023-02-01T11:40:40.000Z","size":138,"stargazers_count":1,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-23T19:51:32.072Z","etag":null,"topics":["html","python3"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/python-strip-whitespace/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/baseplate-admin.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-01T09:58:53.000Z","updated_at":"2021-12-29T02:03:47.000Z","dependencies_parsed_at":"2023-02-17T05:01:18.187Z","dependency_job_id":null,"html_url":"https://github.com/baseplate-admin/python_strip_whitespace","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baseplate-admin%2Fpython_strip_whitespace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baseplate-admin%2Fpython_strip_whitespace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baseplate-admin%2Fpython_strip_whitespace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baseplate-admin%2Fpython_strip_whitespace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baseplate-admin","download_url":"https://codeload.github.com/baseplate-admin/python_strip_whitespace/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248083275,"owners_count":21045071,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["html","python3"],"created_at":"2024-09-24T19:28:49.563Z","updated_at":"2025-04-09T17:52:17.846Z","avatar_url":"https://github.com/baseplate-admin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"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\u0026units=international_system\u0026left_color=grey\u0026right_color=orange\u0026left_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 \u003c!--prettier-ignore--\u003e 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 \u003chttps://pypi.org/project/minify-html/\u003e`__  ) libraries.\n*   Significantly lower bytes transferred when working with frameworks like AlpineJs ( Almost fully working \u0026 Please open a issue in the `Issue Tracker \u003chttps://github.com/baseplate-admin/python_strip_whitespace/issues\u003e`__ if you encounter any bug ) \u0026 Petite Vue.\n*   Is very customizable. ( You can configure lower level `minify-html \u003chttps://github.com/wilsonzlin/minify-html/blob/master/python/src/lib.template.rs/\u003e`_ rust bindings and also the lower level `python \u003chttps://github.com/juancarlospaco/css-html-js-minify/blob/master/css_html_js_minify/html_minifier.py/\u003e`__ 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 \u003chttps://github.com/wilsonzlin/minify-html\u003e`__\n*    Python 3 ( Should work with all version? )\n*    `Brotli \u003chttps://pypi.org/project/Brotli/\u003e`_ ( or `BrotliPy \u003chttps://pypi.org/project/brotlipy/\u003e`_ ) | ( Optional )\n*    `ZSTD \u003chttps://pypi.org/project/zstandard/\u003e`_ ( Optional ) ``Isn't supperted by modern browsers``\n\nUsed Internally by :\n====================\n*     `django-strip-whitespace \u003chttps://github.com/baseplate-admin/django_strip_whitespace\u003e`_ \n*     `flask-strip-whitespace \u003chttps://github.com/baseplate-admin/flask_strip_whitespace\u003e`_ \n*     `fastapi-strip-whitespace \u003chttps://github.com/baseplate-admin/fastapi_strip_whitespace\u003e`_ ( Doesn't exist  😛 )\n\nContributing :\n==============\nIf you like this project add a star. \nIf you have problems or suggestions please put them in the `Issue Tracker \u003chttps://github.com/baseplate-admin/python_strip_whitespace/issues\u003e`__.\nIf you like to add features. Fork this repo and submit a Pull Request. 😛\n\nRoadmap :\n=========\nYou tell me. If i have free time, I will implement it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaseplate-admin%2Fpython_strip_whitespace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaseplate-admin%2Fpython_strip_whitespace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaseplate-admin%2Fpython_strip_whitespace/lists"}