{ "info": { "author": "Stefan Zimmermann", "author_email": "zimmermann.code@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Software Development", "Topic :: Utilities" ], "description": "CoffeeScript from Python\r\n========================\r\n\r\n[https://bitbucket.org/userzimmermann/python-coffeetools]()\r\n\r\n* [`coffee`][1] interface for evaluating and compiling\r\n [CoffeeScript](http://coffeescript.org/)\r\n\r\n* [`{% coffee ... %}`][2] template tags for [Jinja2](http://jinja.pocoo.org)\r\n\r\n* [`%%coffeescript`][3] magic function for [IPython Notebook](\r\n http://ipython.org/notebook.html)\r\n\r\n\r\n0. Setup\r\n--------\r\n\r\nSupported Python versions: __2.7__ and __3.3+__\r\n\r\nYou need an installed CoffeeScript compiler.\r\nBy default __coffeetools__ look for a `coffee` executable in your `PATH`,\r\nor `coffee.cmd` on Windows.\r\nYou can find installation instructions and further information at\r\n[http://coffeescript.org/]().\r\nThe easiest way is to use the\r\n[node package manager](https://www.npmjs.com/):\r\n\r\n npm install coffee-script\r\n\r\nTo install __coffeetools__, just use [pip](http://www.pip-installer.org)\r\nto get the latest [release](https://pypi.python.org/pypi/coffeetools)\r\nfrom [PyPI](https://pypi.python.org):\r\n\r\n pip install coffeetools\r\n\r\nFor basic usage there are no dependencies on other Python packages.\r\n\r\n__Jinja__ and __IPython__ integration are `[extra]` features.\r\nThey require the following Python packages:\r\n\r\n* `[jinja]`\r\n\r\n * [`jinjatools >= 0.1.4`](https://pypi.python.org/pypi/jinjatools)\r\n\r\n* `[ipython]`\r\n\r\n * [`ipython[notebook]`](https://pypi.python.org/pypi/ipython)\r\n\r\nAll extra Python requirements can also be installed with:\r\n\r\n pip install coffeetools[all]\r\n\r\n\r\n1. Using CoffeeScript from Python\r\n---------------------------------\r\n[1]: #markdown-header-1-using-coffeescript-from-python\r\n\r\n from coffeetools import coffee\r\n\r\nEvaluate CoffeeScript code and return the script's output:\r\n\r\n coffee('Some CoffeeScript')\r\n\r\nCompile CoffeeScript to JavaScript:\r\n\r\n coffee.compile('Some CoffeeScript')\r\n\r\nCompile CoffeeScript to JavaScript without a top-level `function()`:\r\n\r\n coffee.compile('Some CoffeeScript', bare=True)\r\n\r\nIf you want to specify a custom name\r\nof your CoffeeScript compiler executable or its absolute or relative path,\r\njust create a custom interface instance:\r\n\r\n from coffeetools import Coffee\r\n\r\n coffee = Coffee('executable')\r\n #OR\r\n coffee = Coffee('/absolute/path/to/executable')\r\n #OR\r\n coffee = Coffee('relative/path/to/executable')\r\n\r\n\r\n2. Using CoffeeScript from Jinja2\r\n---------------------------------\r\n[2]: #markdown-header-2-using-coffeescript-from-jinja2\r\n\r\nMore information coming soon...\r\n\r\n\r\n3. Evaluate CoffeeScript in an IPython Notebook\r\n-----------------------------------------------\r\n[3]: #markdown-header-3-evaluate-coffeescript-in-an-ipython-notebook\r\n\r\n %load_ext coffeescript\r\n\r\nIt is also safe to `%reload_ext coffeescript`\r\n\r\nThis registers the `%%coffeescript` cell magic function,\r\nwhich works like Ipython's `%%javascript` magic,\r\nexcept that it takes CoffeeScript as input.\r\nIt compiles the given code to JavaScript\r\nand uses `IPython.display.display()` with `IPython.display.Javascript`\r\nto run the code directly in the browser window:\r\n\r\n %%coffeescript\r\n alert $('#notebook_name').text()", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://bitbucket.org/userzimmermann/python-coffeetools", "keywords": "coffee,tools,script,coffeescript,javascript,jinja,jinja2,jinjatools,template,tag,extension,python3", "license": "LGPLv3", "maintainer": null, "maintainer_email": null, "name": "coffeetools", "package_url": "https://pypi.org/project/coffeetools/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/coffeetools/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://bitbucket.org/userzimmermann/python-coffeetools" }, "release_url": "https://pypi.org/project/coffeetools/0.1.2/", "requires_dist": null, "requires_python": null, "summary": "Tools for using CoffeeScript with Python.", "version": "0.1.2" }, "last_serial": 1487401, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "65e74d853bc577b0477f411983ddfd43", "sha256": "99baa21cc17b37c091ea11b7cf95246d6a0ab8031a12aabf361dfcc71ad4afad" }, "downloads": -1, "filename": "coffeetools-0.1.0.tar.gz", "has_sig": false, "md5_digest": "65e74d853bc577b0477f411983ddfd43", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18374, "upload_time": "2015-03-28T11:41:23", "url": "https://files.pythonhosted.org/packages/1b/73/a660d26eaa135621e62e036d16ca701dfe05380be3568be05bf73c61834d/coffeetools-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "5469949a80016b3923b52ab195e563eb", "sha256": "6e64adf8e7c02d9f65b22b042726f325e7895028b2781de7fe8f684b3a23dc46" }, "downloads": -1, "filename": "coffeetools-0.1.1.tar.gz", "has_sig": false, "md5_digest": "5469949a80016b3923b52ab195e563eb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18540, "upload_time": "2015-03-28T12:02:10", "url": "https://files.pythonhosted.org/packages/ea/ca/175a9371b8e3b62bd958ebc2331a602e103eca737a68f96d2170b3771150/coffeetools-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "0e9d85ca2d0b47be9532992bc0b5d8b0", "sha256": "ff6078cf9724f892543f36e464afbb1eec9b2d303960ac85173aea659ffa8344" }, "downloads": -1, "filename": "coffeetools-0.1.2.tar.gz", "has_sig": false, "md5_digest": "0e9d85ca2d0b47be9532992bc0b5d8b0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19203, "upload_time": "2015-04-01T22:41:52", "url": "https://files.pythonhosted.org/packages/ad/ee/d93593bda437620dbc5e3435f9b9771d018509486659f724596ef596b18d/coffeetools-0.1.2.tar.gz" } ], "0.1a1": [ { "comment_text": "", "digests": { "md5": "31fd02405117b368c10b3ce5cba18b19", "sha256": "98d1bc4eea77491c2fea4bdbb960e5f1f0178a64cf4148bb935c01ab99c8a96d" }, "downloads": -1, "filename": "coffeetools-0.1a1.tar.gz", "has_sig": false, "md5_digest": "31fd02405117b368c10b3ce5cba18b19", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2551, "upload_time": "2014-01-25T17:52:44", "url": "https://files.pythonhosted.org/packages/60/c6/9c8cea39be9267aaf32ef767dcbb7194b1e7902c6177865213cc5fdd2cda/coffeetools-0.1a1.tar.gz" } ], "0.1a2": [ { "comment_text": "", "digests": { "md5": "54dc46018f44251cf18b7dc3b3ed0176", "sha256": "768994672e4e361f86d6ce7fcad779a15fa77f43417adc1810a69b0746402148" }, "downloads": -1, "filename": "coffeetools-0.1a2.tar.gz", "has_sig": false, "md5_digest": "54dc46018f44251cf18b7dc3b3ed0176", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2720, "upload_time": "2014-01-25T19:26:20", "url": "https://files.pythonhosted.org/packages/57/88/7cc3b018fe6f27276ac73a9eeb58d4f7778e8778d43843333fef35fe2b5d/coffeetools-0.1a2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0e9d85ca2d0b47be9532992bc0b5d8b0", "sha256": "ff6078cf9724f892543f36e464afbb1eec9b2d303960ac85173aea659ffa8344" }, "downloads": -1, "filename": "coffeetools-0.1.2.tar.gz", "has_sig": false, "md5_digest": "0e9d85ca2d0b47be9532992bc0b5d8b0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19203, "upload_time": "2015-04-01T22:41:52", "url": "https://files.pythonhosted.org/packages/ad/ee/d93593bda437620dbc5e3435f9b9771d018509486659f724596ef596b18d/coffeetools-0.1.2.tar.gz" } ] }