Skip to main content

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 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

  • Python 3 ( Should work with all version? )

  • Brotli ( or BrotliPy ) | ( Optional )

  • ZSTD ( Optional ) Isn't supperted by modern browsers

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.

Metadata

Release files for python-strip-whitespace 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-strip-whitespace 0.1.1
File Size Uploaded Provenance
python_strip_whitespace-0.1.1.tar.gz 20.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for python-strip-whitespace 0.1.1
File Interpreter ABI Platform
python_strip_whitespace-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 43.1 kB

Release files / python_strip_whitespace-0.1.1.tar.gz

Download URL python_strip_whitespace-0.1.1.tar.gz
Size 20.4 kB
Tags Source
SHA-256 checksum
How to use checksums
aa4217675d2085b5aa5c7d619a9826d1995e63c238f2eb9538aa2e9a6a9792ec
BLAKE2b-256 checksum
How to use checksums
ee492598a8ce8900a4bd815ebaf0c621763627920cf8491f144447c1a11114ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.11.1 Windows/10

Release files / python_strip_whitespace-0.1.1-py3-none-any.whl

Download URL python_strip_whitespace-0.1.1-py3-none-any.whl
Size 22.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
74123155b2ab7f157511f8607139a977a4f338400704e27cb1150145bcb02ec8
BLAKE2b-256 checksum
How to use checksums
34e88dc8ad0ee37aafcfeee621fc060c84037cee33c7b726ec9c11e7cb89bd83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.11.1 Windows/10

Security for python-strip-whitespace 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page