Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

compressor

Project Description
PyCompressor
======================

PyCompressor collect all css and js references in html files, merge and compress then, puting all static files in an specific bucket, filtering all js,css and images references in html to apply your bucket url.

Installation
-----------------

Installing: `pip install compressor`

Usage
=======

compressor -c compressor.yaml --color

compressor.yaml
-----------------

# your files path
path:
template: template
css: media/css
js: media/js

# compressor results path
output:
template: compressor/template
css: compressor/media/css
js: compressor/media/js

# pattern to find tags in html code
pattern:
css: ../media/css
js: ../media/js
img: ../media/img

# filter url tags
filter:
url:
css: http://demo.pycompressor.com/media/css
js: http://demo.pycompressor.com/media/js
img: http://demo.pycompressor.com/media/img

Requirements
------------
The following python libraries are required

* PyYAML


Issues
------

Please report any issues via [github issues](https://github.com/marcelnicolay/pycompressor/issues)
Release History

Release History

This version
History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting