skip to navigation
skip to content

UgliPyJS 0.2.3

Python wrapper for Uglify-JS library.

Latest Version: 0.2.5

UgliPyJs is a port of the uglifier gem for python. It wraps the UglifyJS minification tool allowing you to minify your Javascript files from your Python code.


$ pip install uglipyjs


To minify your javascript code:

import uglipyjs
js = open('blah.js','r').read()

You can also minify with source map:

import uglipyjs
js = open('blah.js','r').read()

If you need to override the defaults pass a dict of options as a second parameter to the compile function:

import uglipyjs
js = open('blah.js','r').read()


Copyright 2012 Will McKenzie

UgliPyJs is licensed under the MIT License, please see the LICENSE file for more details.

File Type Py Version Uploaded on Size
UgliPyJS-0.2.3.tar.gz (md5) Source 2013-01-14 50KB