Skip to main content

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)

Project details


Release history Release notifications

This version
History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page