yuicompressor icon

yuicompressor For Linux

  n/a
BSD License    

YUI Compressor packaged for Python. #YUI compressor  #JavaScript minifier  #CSS minifier  #Python  #YUI  #Compressor  

Description

changelog

Free Download

yuicompressor is a CSS and JavaScript minifier written in Java. This package bundles the YUI Compressor JAR file to ease its use in Python projects. Note that you still need to have Java Runtime Environment installed.

For instance, you may use this package with buildout. First, create the buildout.cfg file:

[buildout] parts = yuicompressor

[yuicompressor] recipe = zc.recipe.egg eggs = yuicompressor

Next, download buildout bootstrap script and run the buildout itself:

$ wget http://svn.zope.org/*checkout*/zc.buildout/trunk/bootstrap/bootstrap.py $ python bootstrap.py Creating directory 'bin'. Creating directory 'parts'. Creating directory 'develop-eggs'. Generated script 'bin/buildout'. $ bin/buildout Installing yuicompressor. Getting distribution for 'yuicompressor'. Got yuicompressor 2.4.6. Generated script 'bin/yuicompressor'.

The yuicompressor script is ready to use:

$ bin/yuicompressor Usage: java -jar yuicompressor-x.y.z.jar [options] [input file]

Global Options -h, --help Displays this information --type < js|css > Specifies the type of the input file --charset < charset > Read the input file using < charset > --line-break < column > Insert a line break after the specified column number -v, --verbose Display informational messages and warnings -o < file > Place the output into < file >. Defaults to stdout.

JavaScript Options --nomunge Minify only, do not obfuscate --preserve-semi Preserve all semicolons --disable-optimizations Disable all micro optimizations

If no input file is specified, it defaults to stdin. In this case, the 'type' option is required. Otherwise, the 'type' option is required only if the input file extension is neither 'js' nor 'css'.

You could then integrate this with a package that relies on the compressor, e.g. django-compress and worry no more.

User-level installation with easy_install does make sense even for standalone use, e.g. having yuicompressor in your PATH.

System requirements

What's new in yuicompressor 2.4.7:

  • Updated yuicompressor.jar to 2.4.7
  • yuicompressor does not require setuptools anymore: it's also installable with pure distutils. However, the executable script in the pure distutils installation does not have the same name as in the setuptools installation: it is named yuicompressor_run.py instead of yuicompressor due to import restriction and windows shebang incompatibility.
  • Added a run method in the yuicompressor module allowing us to run the tool with custom arguments from python source code.
  • Added a changelog (CHANGES file)
Read the full changelog

yuicompressor 2.4.7

add to watchlist add to download basket send us an update REPORT
  runs on:
Linux
  filename:
yuicompressor-2.4.7.tar.gz
  main category:
Internet
  developer:
  visit homepage

IrfanView 4.67

With support for a long list of plugins, this minimalistic utility helps you view images, as well as edit and convert them using a built-in batch mode
IrfanView

ShareX 16.0.1

Capture your screen, create GIFs, and record videos through this versatile solution that includes various other amenities: an OCR scanner, image uploader, URL shortener, and much more
ShareX

Windows Sandbox Launcher 1.0.0

Set up the Windows Sandbox parameters to your specific requirements, with this dedicated launcher that features advanced parametrization
Windows Sandbox Launcher

Bitdefender Antivirus Free 27.0.35.146

Feather-light and free antivirus solution from renowned developer that keeps the PC protected at all times from malware without requiring user configuration
Bitdefender Antivirus Free

4k Video Downloader 1.5.3.0080 Plus / 4.30.0.5655

Export your favorite YouTube videos and playlists with this intuitive, lightweight program, built to facilitate downloading clips from the popular website
4k Video Downloader

7-Zip 23.01 / 24.04 Beta

An intuitive application with a very good compression ratio that can help you not only create and extract archives, but also test them for errors
7-Zip

Microsoft Teams 24060.3102.2733.5911 Home / 1.7.00.7956 Work

Effortlessly chat, collaborate on projects, and transfer files within a business-like environment by employing this Microsoft-vetted application
Microsoft Teams

calibre 7.9.0

Effortlessly keep your e-book library thoroughly organized with the help of the numerous features offered by this efficient and capable manager
calibre

Zoom Client 6.0.3.37634

The official desktop client for Zoom, the popular video conferencing and collaboration tool used by millions of people worldwide
Zoom Client

Context Menu Manager 3.3.3.1

Customize Windows’ original right-click context menu using this free, portable and open-source utility meant to enhance your workflow
Context Menu Manager

% discount
calibre
  • calibre
  • Zoom Client
  • Context Menu Manager
  • IrfanView
  • ShareX
  • Windows Sandbox Launcher
  • Bitdefender Antivirus Free
  • 4k Video Downloader
  • 7-Zip
  • Microsoft Teams
essentials


Click to load comments
This enables Disqus, Inc. to process some of your data. Disqus privacy policy