csscompressor
A python port of YUI CSS Compressor
Decision gist · record as of 2026-08-14
No, unless you have a specific requirement for the YUI CSS Compressor algorithm or an existing dependency on this exact package. The project is abandoned (last release 2017-11-26, no commits since 2023-08-07), has high install friction (source-only), and the maintenance status is abandoned. If you need CSS compression, evaluate actively maintained alternatives.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- High install friction due to source-only distribution (no wheels).
- Package is abandoned—last release was 2017-11-26, with no maintenance activity since 2023-08-07.
- Use only if you have a specific dependency on this exact implementation.
License · maintenance · safety
BSD (permissive) — Published under BSD license (permissive), which allows commercial and private use with minimal restrictions. No licensing barrier to adoption.
last release 2017-11-26 (3183 days) · last repo commit 2023-08-07 · 92 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 948,510 downloads/mo, #4,662 on PyPI
Alternatives
Verify before relying
pip install csscompressor
from csscompressor import compress
result = compress('your css { content: "!"; }')
print(result) # 'your css{content:"!"}'
# Or from command line:
# python3 -m csscompressor --help- Whether the package works reliably on Python versions beyond 3.3+ (classifiers list 2.6, 2.7, 3 but no upper bound specified)
- Current compatibility with modern CSS syntax and edge cases not covered by original YUI test suite
- Whether source-only distribution causes build failures on platforms without a C compiler
- How actively maintained alternatives compare in performance and feature coverage
What it is and what it does
csscompressor is a Python port of the YUI CSS Compressor, a tool that reduces CSS file size by stripping whitespace, comments, and other redundant syntax while preserving functionality. It has no runtime dependencies and can be used either as a Python library via the `compress()` function or as a command-line utility.
The package passes all original YUI Compressor unit tests, making it a faithful implementation of that algorithm. However, it is no longer actively maintained—the last release was 2017-11-26 and the repository shows no commits since 2023-08-07. It remains in production-stable status but receives no updates for modern CSS features or security issues.
Use it for
- Minify CSS files during a build pipeline to reduce stylesheet download size in web applications
- Compress inline CSS in HTML templates or dynamically generated stylesheets before serving to browsers
- Batch-process CSS codebases using the YUI algorithm as part of asset optimization
- Integrate CSS compression into Python-based static site generators or build tools
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No, unless you have a specific requirement for the YUI CSS Compressor algorithm or an existing dependency on this exact package.
The project is abandoned (last release 2017-11-26, no commits since 2023-08-07), has high install friction (source-only), and the maintenance status is abandoned. If you need CSS compression, evaluate actively maintained alternatives.
Install
csscompressor on PyPI
Before you install
High install friction due to source-only distribution (no wheels). Package is abandoned—last release was 2017-11-26, with no maintenance activity since 2023-08-07. Use only if you have a specific dependency on this exact implementation.
License in practice
Published under BSD license (permissive), which allows commercial and private use with minimal restrictions. No licensing barrier to adoption.
Quickstart
pip install csscompressor
from csscompressor import compress
result = compress('your css { content: "!"; }')
print(result) # 'your css{content:"!"}'
# Or from command line:
# python3 -m csscompressor --help
Verify before relying
- Whether the package works reliably on Python versions beyond 3.3+ (classifiers list 2.6, 2.7, 3 but no upper bound specified)
- Current compatibility with modern CSS syntax and edge cases not covered by original YUI test suite
- Whether source-only distribution causes build failures on platforms without a C compiler
- How actively maintained alternatives compare in performance and feature coverage
Package facts
| License | BSD permissive |
| Python support | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Abandoned 3,183 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 948,510 / month, #4,662 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3Topic :: Software Development :: Build ToolsTopic :: Text Processing :: GeneralTopic :: Utilities |
Evidence: csscompressor-0.9.5.tar.gz
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “remove css whitespace”
- csscompressorCompresses CSS by removing unnecessary whitespace and comments,…
- rcssminRCSSmin minifies CSS by removing spaces, comments, and unnecessary…
- cssminCompresses CSS files by removing unnecessary characters while…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also cssmin · rcssmin · htmlmin2 · htmlmin · django-compressor · webassets · jsmin · mkdocs-minify-plugin · minify-html · Flask-Minify