Port variant py38
Summary CSS Minifier (PY38)
Package version 1.0.6
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants py39
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 27 DEC 2020, 06:48:23 UTC
Port created 02 FEB 2018, 15:29:04 UTC
Subpackage Descriptions
single ============== CSS Minifier ============== RCSSmin is a CSS minifier. The minifier is based on the semantics of the `YUI compressor`_\, which itself is based on `the rule list by Isaac Schlueter`_\. This module is a re-implementation aiming for speed instead of maximum compression, so it can be used at runtime (rather than during a preprocessing step). RCSSmin does syntactical compression only (removing spaces, comments and possibly semicolons). It does not provide semantic compression (like removing empty blocks, collapsing redundant properties etc). It does, however, support various CSS hacks (by keeping them working as intended). Here's a feature list: - Strings are kept, except that escaped newlines are stripped - Space/Comments before the very end or before various characters are stripped: ``:{});=>],!`` (The colon (``:``) is a special case, a single space is kept if it's outside a ruleset.) - Space/Comments at the very beginning or after various characters are stripped: ``{}(=:>[,!`` - Optional space after unicode escapes is kept, resp. replaced by a simple space - whitespaces inside ``url()`` definitions are stripped - Comments starting with an exclamation mark (``!``) can be kept optionally. - All other comments and/or whitespace characters are replaced by a single space. - Multiple consecutive semicolons are reduced to one - The last semicolon within a ruleset is stripped - CSS Hacks supported: - IE7 hack (``>/**/``) - Mac-IE5 hack (``/*\*/.../**/``) - The boxmodelhack is supported naturally because it relies on valid CSS2 strings - Between ``:first-line`` and the following comma or curly brace a space is inserted. (apparently it's needed for IE6) - Same for ``:first-letter`` rcssmin.c is a reimplementation of in C and improves runtime up to factor 100 or so (depending on the input). docs/BENCHMARKS in the source distribution contains the details. Both python 2 (>= 2.4) and python 3 are supported. .. _YUI compressor: .. _the rule list by Isaac Schlueter: Copyright and License ~~~~~~~~~~~~~~~~~~~~~ Copyright 2011 - 2015 André Malo or his licensors, as applicable. The whole package (except for the files in the bench/ directory) is distributed under the Apache License Version 2.0. You'll find a copy in the root directory of the distribution or online at: . Bugs ~~~~ No bugs, of course. ;-) But if you've found one or have an idea how to improve rcssmin, feel free to send a pull request on [github] or send a mail to . Author Information ~~~~~~~~~~~~~~~~~~ André "nd" Malo GPG: 0x8103A37E If God intended people to be naked, they would be born that way. -- Oscar Wilde
Configuration Switches (platform-specific settings discarded)
PY38 ON Build using Python 3.8 PY39 OFF Build using Python 3.9
Package Dependencies by Type
Build (only) python-setuptools:single:py38
Build and Runtime python38:single:standard
Download groups
main mirror://PYPI/r/rcssmin
Distribution File Information
ca87b695d3d7864157773a61263e5abb96006e9ff0e021eff90cbe0e1ba18270 582894 rcssmin-1.0.6.tar.gz
Ports that require python-rcssmin:py38
python-django-compressor:py38 Django CSS/JS cache and compressor (PY38)