slimmer.py is a whitespace optimizer for CSS, HTML and XHTML output. It’s written by Peter Bengtsson, peter@fry-it.com in 2004-2005. Still maintained in 2008.
INSTALLATION:
$ sudo easy_install slimmer
Alternative:
$ tar -zxvf slimmer-x.x.x.tgz $ cd slimmer/ $ sudo python setup.py install
USAGE:
>>> import slimmer
>>> from slimmer import css_slimmer
>>> css_slimmer("h1, h2 { font-family: 'Courier New', Courier; }")
"h1,h2{font-family:'Courier New',Courier;border:1px solid black;}"
>>> html_slimmer('<a href="x" title=" foo bar "> one </a> <br />')
>>> from slimmer import html_slimmer, xhtml_slimmer
>>> html_slimmer('''<a href="x" title=" foo bar "
> one </a> <br/>''')
'<a href="x" title=" foo bar "> one </a><br />'
UNITTESTS:
$ cd slimmer/tests $ python testSlimmer.py $ python testSlimmer.py --verbose
Metadata
Release files for slimmer 0.1.30
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| slimmer-0.1.30.tar.gz | 17.0 kB | Without provenance | Details for slimmer-0.1.30.tar.gz |
Release files / slimmer-0.1.30.tar.gz
| Download URL | slimmer-0.1.30.tar.gz |
|---|---|
| Size | 17.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
55c4494ada8ebfd16b6bd673b76df7441ac5cc2b3eae3166c0abe2016230e76b
|
|
BLAKE2b-256 checksum How to use checksums |
9b8aea0e2f572e9dd4431a772e6c6bf427e4513b2f88fb7430907b19327c1335
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for slimmer 0.1.30
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.