A powerful HTML whitespace remover for python
Project description
HTML Whitespace remover for Python
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 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 :
Python 3 ( Should work with all version? )
ZSTD ( Optional ) Isn't supperted by modern browsers
Used Internally by :
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. 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 Distribution
Built Distribution
Hashes for python_strip_whitespace-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa4217675d2085b5aa5c7d619a9826d1995e63c238f2eb9538aa2e9a6a9792ec |
|
MD5 | 3e4c8b5f9293d8a8a1f5b21463bfee40 |
|
BLAKE2b-256 | ee492598a8ce8900a4bd815ebaf0c621763627920cf8491f144447c1a11114ee |
Hashes for python_strip_whitespace-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74123155b2ab7f157511f8607139a977a4f338400704e27cb1150145bcb02ec8 |
|
MD5 | 3b69fffcb913f80c6eaa05aaaabbb724 |
|
BLAKE2b-256 | 34e88dc8ad0ee37aafcfeee621fc060c84037cee33c7b726ec9c11e7cb89bd83 |