Skip to main content

A powerful HTML whitespace remover for python

Project description

HTML Whitespace remover for Python

Pepy.tech Badge PyPi Version Badge PyPI - Python Version PyPI - License Code Style Lines of Code

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 ) libraries.

  • Significantly lower bytes transferred when working with frameworks like AlpineJs ( Almost fully working & Please open a issue in the Issue Tracker if you encounter any bug) & Petite Vue.

  • Is very customizable. ( You can configure lower level minify-html rust bindings and also the lower level python bindings when calling minify )

Why souldn’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

  • Python 3 ( Should work with all version? )

  • Brotli ( or BrotliPy ) | ( Optional )

  • ZSTD ( Optional )

Used Internally by :

Contributing :

If you like this project add a star. If you have problems or suggestions please put them in the Issue Tracker. 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

python_strip_whitespace-0.0.5-py3-none-any.whl (26.0 kB view details)

Uploaded Python 3

File details

Details for the file python_strip_whitespace-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: python_strip_whitespace-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 26.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for python_strip_whitespace-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ed294fcd2ceb8d4c0ef6194d5c20530270b46d3e046e50de9506df58b0b4873c
MD5 084801c78d434d6d955f70dee90cd134
BLAKE2b-256 04473974cda1b44a91e4f7478c809700756c73b853a0f65d70612704f51330d8

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page