Coder Social home page Coder Social logo

doloopwhile / python-coffeescript Goto Github PK

View Code? Open in Web Editor NEW
82.0 7.0 24.0 443 KB

A bridge to the JS CoffeeScript compiler (EOL: Please use coffee command or webpack).

Home Page: https://pypi.python.org/pypi/CoffeeScript/

License: MIT License

Python 92.38% Shell 7.62%

python-coffeescript's Introduction

Python-CoffeeScript

End of life

This library is no longer maintananced (Reason). Bugs are not be fixed (even if they are trivial or essential).

We suggest to use other library or to make a fork.


Python-CoffeeScript is a bridge to the JS CoffeeScript compiler.

A short example

>>> import coffeescript
>>> print(coffeescript.compile('add = (a, b) -> a + b'))
(function() {
  var add;

  add = function(a, b) {
    return a + b;
  };

}).call(this);

Installation

$ pip install CoffeeScript

or

$ easy_install CoffeeScript

coffeescript.js

The latest version of coffeescript.js (the script for browser <script type="text/coffeescript"> tags) can be download from http://coffeescript.org/v2/browser-compiler/coffeescript.js

License

Released under the MIT license. See LICENSE for details.

Changes

2.0.3

  • Updated README (no code changes).

2.0.2

  • Updated README (no code changes).

2.0.1

  • Corrected a bug due to wrong file-path.
  • Made zip-safe.
  • Updated coffeescript.js to v2.0.1.

2.0.0

  • Updated coffeescript.js to v2.0.0.

1.1.2

  • Updated coffee-script.js to v1.10.0.

1.1.1

  • Updated coffee-script.js to v1.9.3.

1.1.0

  • Updated coffee-script.js to v1.9.1.

1.0.11

  • Updated coffee-script.js to v1.9.0.
  • Dropped support for Python v2.6 and v3.1.
  • Supported Python v3.3 and v3.4.

1.0.10

  • Updated coffee-script.js to v1.8.0.

1.0.9

  • Updated coffee-script.js to v1.7.1.

1.0.8

  • Updated coffee-script.js to v1.6.3. Added download_link to setup.py.

1.0.7

  • Updated coffee-script.js to v1.6.1.

1.0.6

  • Updated coffee-script.js to v1.5.0.

1.0.5

  • Made compile_file to accept plural files and Added some utility functions.

1.0.4

  • Updated coffee-script.js to v1.4.0.

1.0.3

  • Updated coffee-script.js to v1.3.3.

1.0.2

  • Updated coffee-script.js to v1.3.1.

1.0.1

  • Fixed some small problem in setup.py.

1.0.0

  • First release.

python-coffeescript's People

Contributors

bkad avatar doloopwhile avatar oinutter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

python-coffeescript's Issues

Update test_script

The current test script does not examine the case that a list of file paths is passed as the first argument of compile_files.

Produce Source Maps

It would be good to have a map flag as well as a bare flag to have the option of producing source maps.

Add a command line CoffeeScript compiler

It would be useful to have a command line replacement for the CoffeeScript compiler provided by Node.JS's coffee-script module (coffee --compile). I've written one, but I don't know how to integrate it into your pip package.

Add a direct download link to PyPI

It would be nice to have either a PyPI-hosted package or a direct download link in setup.py. It is very helpful when one has to maintain a mirror of PyPI with a strict set of available packages.

Could not find an available JavaScript runtime.

import coffeescript
print(coffeescript.compile('add = (a, b) -> a + b'))
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.5/dist-packages/coffeescript/init.py", line 105, in compile
return _default_compiler().compile(script, bare=bare)
File "/usr/local/lib/python3.5/dist-packages/coffeescript/init.py", line 138, in _default_compiler
get_runtime()
File "/usr/local/lib/python3.5/dist-packages/coffeescript/init.py", line 127, in get_runtime
return execjs.get()
File "/usr/local/lib/python3.5/dist-packages/execjs/_runtimes.py", line 21, in get
return get_from_environment() or _find_available_runtime()
File "/usr/local/lib/python3.5/dist-packages/execjs/_runtimes.py", line 49, in _find_available_runtime
raise exceptions.RuntimeUnavailableError("Could not find an available JavaScript runtime.")
execjs._exceptions.RuntimeUnavailableError: Could not find an available JavaScript runtime.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.