{ "info": { "author": "Mike Yumatov", "author_email": "mike@yumatov.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: ISC License (ISCL)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3" ], "description": "Gears\n=====\n\n.. image:: https://secure.travis-ci.org/gears/gears.png?branch=develop\n :target: https://travis-ci.org/gears/gears\n\nGears is a library to compile and concatenate JavaScript and CSS assets, highly\ninspired by Ruby's Sprockets_. You can also write scripts, styles and client\ntemplates using CoffeeScript_, Handlebars_, Stylus_, Less_, and compile them\nusing external packages (gears-coffeescript_, gears-handlebars_, gears-stylus_,\ngears-less_). These packages already include all required node.js modules, so\nyou don't need to worry about installing them yourself.\n\nThere is also:\n\n- django-gears_, an app for Django that integrates Gears with Django project;\n- Flask-Gears_, an extension that integrates Gears with Flask application;\n- gears-cli_, a command-line utility that compiles assets. It also can watch\n assets for changes and automaticaly re-compile them.\n\nFeatures\n--------\n\n* Dependency management using directives in header comments. For example::\n\n /* Dependencies:\n *= require jquery\n *= require underscore\n *= require backbone\n *= require_tree views\n *= require_directory templates\n */\n\n Six directive types is supported for now:\n\n * ``require :path``: includes the contents of the asset ``path`` suffixed\n with the same extension as the current asset (e.g., if\n ``js/app.js.coffee`` has directive ``require views``,\n ``js/views.js.coffee`` will be included). Supports globbing: ``require\n models/*``.\n\n * ``require_directory :path``: includes the contents of the every asset in\n the directory ``path`` with the same suffix as the current asset in\n alphabetical order.\n\n * ``require_tree :path``: includes the contents of the every asset with the\n same suffix as the current asset in the directory ``path`` and all its\n subdirectories in alphabetical order.\n\n * ``require_self``: includes the contents of the current asset at the current\n place. If there is no ``require_self`` directive, the contents will be\n appended at the end of asset.\n\n * ``depend_on :path``: it is useful when you need to specify files that\n affect an asset, but not to include them into bundled asset or to include\n them using compilers. E.g., if you use ``@import`` functionality in some\n CSS pre-processors (Less or Stylus). Supports globbing: ``depend_on\n app/*``.\n\n * ``public``: mark the asset as public.\n\n* Scripting and styling in modern languages like CoffeeScript, Stylus, Less\n (support for new languages can be easily added).\n\n* Writing client templates using Handlebars.\n\n* The list of compilers for the asset is specified with asset\n extensions appended to the original extension. E.g., for the asset\n named ``js/app.js.coffee`` CoffeeScript compiler will be used. Here are\n extensions for the supported compilers (through external packages):\n\n * CoffeeScript - ``.js.coffee``;\n * Handlebars - ``.js.handlebars``;\n * Stylus - ``.css.styl``;\n * Less - ``.css.less``.\n\n* Caching\n\n* Compressing. Supported compressors:\n\n * SlimIt_ (Python, 2.X only);\n * cssmin_ (Python, 2.X only);\n * UglifyJS_ (Node.js, using gears-uglifyjs_);\n * clean-css_ (Node.js, using gears-clean-css_).\n\n New compilers can be also easily added.\n\n* Supports Python 3.\n\nInstallation\n------------\n\nYou can install ``Gears`` using pip::\n\n $ pip install Gears\n\nIf you want to use node.js-dependent compilers or compressors, you need to\ninstall other dependencies::\n\n $ pip install gears-less # LESS\n $ pip install gears-stylus # Stylus\n $ pip install gears-handlebars # Handlebars\n $ pip install gears-coffeescript # CoffeeScript\n\n $ pip install gears-uglifyjs # UglifyJS\n $ pip install gears-clean-css # clean-css\n\nPlease note that all these compilers and compressors require node.js to be\ninstalled on your system.\n\nUsage\n-----\n\nThis example compiles public assets (default: ``assets/js/script.js``,\n``assets/css/style.css``, all assets that aren't compiled to .css or .js and\nassets marked as public using ``public`` directive) from ``assets`` directory\nto ``static``::\n\n import os\n\n from gears.environment import Environment\n from gears.finders import FileSystemFinder\n\n\n ROOT_DIR = os.path.abspath(os.path.dirname(__file__))\n ASSETS_DIR = os.path.join(ROOT_DIR, 'assets')\n STATIC_DIR = os.path.join(ROOT_DIR, 'static')\n\n env = Environment(STATIC_DIR)\n env.finders.register(FileSystemFinder([ASSETS_DIR]))\n env.register_defaults()\n\n if __name__ == '__main__':\n env.save()\n\nThere is already mentioned django-gears_ app, which you may want to use in\nyour Django projects.\n\nContributing\n------------\n\nFeel free to fork, send pull requests or report bugs and issues on github.\n\n\n.. _Sprockets: http://getsprockets.org\n.. _CoffeeScript: http://jashkenas.github.com/coffee-script/\n.. _Handlebars: http://www.handlebarsjs.com/\n.. _Stylus: http://learnboost.github.com/stylus/\n.. _Less: http://lesscss.org/\n.. _SlimIt: http://slimit.org/\n.. _cssmin: https://github.com/zacharyvoase/cssmin\n.. _UglifyJS: https://github.com/mishoo/UglifyJS\n.. _clean-css: https://github.com/GoalSmashers/clean-css\n\n.. _gears-less: https://github.com/gears/gears-less\n.. _gears-stylus: https://github.com/gears/gears-stylus\n.. _gears-handlebars: https://github.com/gears/gears-handlebars\n.. _gears-coffeescript: https://github.com/gears/gears-coffeescript\n\n.. _gears-uglifyjs: https://github.com/gears/gears-uglifyjs\n.. _gears-clean-css: https://github.com/gears/gears-clean-css\n\n.. _django-gears: http://django-gears.readthedocs.org\n.. _flask-gears: https://github.com/gears/flask-gears\n.. _gears-cli: https://github.com/gears/gears-cli", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/gears/gears", "keywords": null, "license": "ISC", "maintainer": null, "maintainer_email": null, "name": "Gears", "package_url": "https://pypi.org/project/Gears/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/Gears/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/gears/gears" }, "release_url": "https://pypi.org/project/Gears/0.7.2/", "requires_dist": null, "requires_python": null, "summary": "Compiles and concatenates JavaScript and CSS assets.", "version": "0.7.2" }, "last_serial": 1073932, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "d4c5a501d7a55f552a1a00ab4b943fe8", "sha256": "c49032b358c26e8ec719447da3ae74eee42428327faddc5519e4960eaca002ea" }, "downloads": -1, "filename": "Gears-0.1.tar.gz", "has_sig": false, "md5_digest": "d4c5a501d7a55f552a1a00ab4b943fe8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17866, "upload_time": "2012-02-26T21:51:04", "url": "https://files.pythonhosted.org/packages/41/59/5c294f3c2145ded19c757b960ee62cab539fa687bbf85752d7e9521c9dc2/Gears-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "34cf20f175ae3ce32715df8f1d92bd8c", "sha256": "4b917292dcdc1a49eaaab745aa44400fac2c437f43ed47ff31050558b7106a0a" }, "downloads": -1, "filename": "Gears-0.1.1.tar.gz", "has_sig": false, "md5_digest": "34cf20f175ae3ce32715df8f1d92bd8c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18373, "upload_time": "2012-02-27T07:37:03", "url": "https://files.pythonhosted.org/packages/7a/b2/dc1ac48fef5cb1c3ec367124580aa9e79237002bd244ea712409f6364d32/Gears-0.1.1.tar.gz" } ], "0.1.dev": [], "0.2": [ { "comment_text": "", "digests": { "md5": "77e645047f386924213962fd88120bd3", "sha256": "47869fb8f19f0f1af2b2fb8e0b7d725c1cc6a3a68d121a45128b7afc89a15247" }, "downloads": -1, "filename": "Gears-0.2.tar.gz", "has_sig": false, "md5_digest": "77e645047f386924213962fd88120bd3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20789, "upload_time": "2012-03-18T20:13:26", "url": "https://files.pythonhosted.org/packages/82/a7/f10c7405835fda1130d488897e013c730be1e522eaacc08317e64f7e1c04/Gears-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "c6eec82bb672363806dbe10d936849a7", "sha256": "fb3ec67e825f576126f7eb6341da56c40510e7357058130c8c3eeb2afd796be0" }, "downloads": -1, "filename": "Gears-0.3.tar.gz", "has_sig": false, "md5_digest": "c6eec82bb672363806dbe10d936849a7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23717, "upload_time": "2012-06-24T10:18:17", "url": "https://files.pythonhosted.org/packages/cf/eb/f23250cba5feb0aa4536ed8a04b31c6e62c2a5814b52739d52ece0c6f5eb/Gears-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "91b562c8d134e1ce9d7fe39c9ef2fd39", "sha256": "fb035405a87c5cdae9f18245464cd0855e30d6101e7bfdde72ca5aec7f05cc0a" }, "downloads": -1, "filename": "Gears-0.4.tar.gz", "has_sig": false, "md5_digest": "91b562c8d134e1ce9d7fe39c9ef2fd39", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22938, "upload_time": "2012-09-23T11:24:25", "url": "https://files.pythonhosted.org/packages/11/b2/dabbc8819936993627d4c43fbe29376b90fb9ece54f145cffd2acea67d5d/Gears-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "4e9769403d355b56c263c4a621790b92", "sha256": "4979447480a660ffaff80f25f623a5acfefe73fd66620726d3235852309367cb" }, "downloads": -1, "filename": "Gears-0.5.tar.gz", "has_sig": false, "md5_digest": "4e9769403d355b56c263c4a621790b92", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23179, "upload_time": "2012-10-16T06:23:12", "url": "https://files.pythonhosted.org/packages/b4/d9/dfaabde3d9f4c770dcba0ab0f3f2d7043d88b7c41bac3843443435b75530/Gears-0.5.tar.gz" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "98d1a9bd988e918754d1a2fd97161467", "sha256": "3d76b01a628d2c5680fe27581f2b1bf6cabe8c9bdf2897872a99adb27695ee68" }, "downloads": -1, "filename": "Gears-0.5.1.tar.gz", "has_sig": false, "md5_digest": "98d1a9bd988e918754d1a2fd97161467", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23316, "upload_time": "2012-10-16T11:37:14", "url": "https://files.pythonhosted.org/packages/e8/cd/912f07de098b85f6c17bad7f18253b4e97c327e511b923b2f040d11ac66a/Gears-0.5.1.tar.gz" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "63189e2dc8e18b2d2757c3cb94939cef", "sha256": "62d2d0476c978298ca4bc5833dc67ccbb28b5959d9d582679801f48c187c5881" }, "downloads": -1, "filename": "Gears-0.6.tar.gz", "has_sig": false, "md5_digest": "63189e2dc8e18b2d2757c3cb94939cef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 106099, "upload_time": "2013-04-28T17:15:28", "url": "https://files.pythonhosted.org/packages/42/11/eca7bed30893d77bd8af21db37c03bd5edf2b3e1791212d25d5061a82eb5/Gears-0.6.tar.gz" } ], "0.6.1": [ { "comment_text": "", "digests": { "md5": "2376d8999cafd42615c762ab086af2c7", "sha256": "bc97e97c5066ad3efe6cae1623c0896bb8f76dfbf20526f3e5a177e77d12ff94" }, "downloads": -1, "filename": "Gears-0.6.1.tar.gz", "has_sig": false, "md5_digest": "2376d8999cafd42615c762ab086af2c7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 106226, "upload_time": "2013-09-08T11:49:23", "url": "https://files.pythonhosted.org/packages/f2/73/b5d8dc6d2afb6e954a4d48e96c290ad99a695e8eab80173573ebfa55812b/Gears-0.6.1.tar.gz" } ], "0.7": [ { "comment_text": "", "digests": { "md5": "4518adf23e93eb6e6bfaae7368dd5b4f", "sha256": "3b70b558e13bf3d8032fbfdb177165edae8fe6d1902ee9eb8500585d23fc93ed" }, "downloads": -1, "filename": "Gears-0.7.tar.gz", "has_sig": false, "md5_digest": "4518adf23e93eb6e6bfaae7368dd5b4f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 106916, "upload_time": "2014-04-23T06:40:17", "url": "https://files.pythonhosted.org/packages/95/08/647b08df75939d6be9cb1d1248ad042c0d49678165e39f74cb8d2efb3cfb/Gears-0.7.tar.gz" } ], "0.7.1": [ { "comment_text": "", "digests": { "md5": "022781f87e606c6abf15fdfa00112ecb", "sha256": "67cc5f5b77b814a853617cb9189c6c51da2efee1a13e7d55123f393225263190" }, "downloads": -1, "filename": "Gears-0.7.1.tar.gz", "has_sig": false, "md5_digest": "022781f87e606c6abf15fdfa00112ecb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 107203, "upload_time": "2014-04-28T06:49:39", "url": "https://files.pythonhosted.org/packages/50/09/505f7896ae0c73c2bae0a244e1aa43ce13616edc6d68f83b5a2dd1067e1e/Gears-0.7.1.tar.gz" } ], "0.7.2": [ { "comment_text": "", "digests": { "md5": "8e788645833b297c37cd0d3baa452a8a", "sha256": "e8c55a30e0b00bc7f0d2910d24eb512157808348878d1bc07533f2370e3445ff" }, "downloads": -1, "filename": "Gears-0.7.2.tar.gz", "has_sig": false, "md5_digest": "8e788645833b297c37cd0d3baa452a8a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 107180, "upload_time": "2014-04-28T10:50:10", "url": "https://files.pythonhosted.org/packages/c6/38/6fac78b7fde4b4ec5bc45176f23484adc9b8af742cf4f300c4daed8b50fa/Gears-0.7.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8e788645833b297c37cd0d3baa452a8a", "sha256": "e8c55a30e0b00bc7f0d2910d24eb512157808348878d1bc07533f2370e3445ff" }, "downloads": -1, "filename": "Gears-0.7.2.tar.gz", "has_sig": false, "md5_digest": "8e788645833b297c37cd0d3baa452a8a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 107180, "upload_time": "2014-04-28T10:50:10", "url": "https://files.pythonhosted.org/packages/c6/38/6fac78b7fde4b4ec5bc45176f23484adc9b8af742cf4f300c4daed8b50fa/Gears-0.7.2.tar.gz" } ] }