Latest Version: 0.9.6.2

compress_resources


Attributes

a boolean_options

['compress-js', 'example-settings']

a comment_styles

{'.js': '/* From %(filename)s: */', '.css': '/* From %(filename)s: */'}

a description

'Compress Javascript and CSS files into smaller/combined forms'

a http_boundary

'----0.8754995183220.0542348543457'

a long_description

'hey there\n\nyou \n'

a shrinksafe_url

'http://alex.dojotoolkit.org/shrinksafe/shrinksafe.php'

a user_options

[('resource-dirs=', 'r', 'Relative directory where resources are located'),
 ('resource-files=',
  None,
  'Filenames to include (in order they should be included)'),
 ('combined-name=', None, 'Names of combined files'),
 ('extensions=', None, 'Extensions to compress (default .js and .css)'),
 ('compress-js', None, 'Compress Javascript using ShrinkSafe'),
 ('example-settings', None, 'Put some example settings in setup.cfg')]

Methods

f __init__(self, dist) ...

Create and initialize a new Command object. Most importantly, invokes the 'initialize_options()' method, which is the real initializer and depends on the actual command being instantiated.

f compress_dir(self, dir, ext) ...

f compress_javascript(self, content) ...

f run(self) ...

f submit_file_upload(self, url, fields) ...

See the source for more information.

Top