CoffeeScript
A bridge to the JS CoffeeScript compiler
What it is and what it does
CoffeeScript is a Python wrapper around the JavaScript CoffeeScript compiler, allowing you to compile CoffeeScript syntax to JavaScript from within Python code. It bundles the CoffeeScript.js compiler as a library artifact, so you can call a simple compile() function to transform CoffeeScript strings or files into JavaScript output.
The package is designed for developers who want to generate or transpile CoffeeScript as part of a Python application—for example, in a build pipeline, a web framework, or a code generation tool. It has no runtime dependencies beyond Python itself, but the repository has been archived and unmaintained since the last commit on 2018-03-19. The classifiers indicate support only for Python 2.7 and 3.2–3.4, all of which are end-of-life.
Use it for:
- Transpile CoffeeScript source files to JavaScript as part of a Python-based build or asset pipeline.
- Generate JavaScript code dynamically from a Python web application or template engine.
- Integrate CoffeeScript compilation into a Python project that mixes both languages.
- Batch-process CoffeeScript files to JavaScript in a Python automation script.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Compiles CoffeeScript code to JavaScript from within Python, wrapping the JS CoffeeScript compiler for use as a Python library.
No. The package is unmaintained (archived, last commit 2018-03-19, latest release 2018-01-18) and its stated Python support (2.7, 3.2–3.4) is obsolete. High install friction from bundled artifacts and lack of active maintenance make it risky for new projects. If you need CoffeeScript compilation, use the standalone CoffeeScript CLI or a modern, maintained Node.js toolchain instead.
Install
coffeescript on PyPI
pip
pip install coffeescriptuv
uv add coffeescriptpoetry
poetry add coffeescriptInstalling CoffeeScript
Before you install
High install friction: the package bundles a compiled CoffeeScript.js artifact rather than relying on a system compiler, which may require additional setup. Maintenance is a serious concern—the repository was archived, with the last commit on 2018-03-19 and no active development since.
License in practice
MIT License (permissive) means you can use, modify, and redistribute this package freely in commercial and private projects, with minimal restrictions beyond attribution.
Quickstart
import coffeescript
result = coffeescript.compile('add = (a, b) -> a + b')
print(result)
The package bundles CoffeeScript.js as a compiled artifact; ensure your Python environment can execute the embedded compiler and that any required system dependencies for JavaScript execution are present.
Verify before relying
- Whether the bundled CoffeeScript.js v2.0.3 is compatible with modern Python versions given classifiers list only Python 2.7 and 3.2–3.4.
- Whether the package works reliably on current Python versions given its age and lack of maintenance.
- What system-level dependencies, if any, are required to execute the embedded JavaScript compiler.
Package facts
| License | MIT License (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 3,130 days since the last release |
| Last repo commit | (repository archived) |
| First released | |
| Downloads | 86,878/month — #13,829 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: CoffeeScript-2.0.3.tar.gz
Tags
More Build Tools packages
Provides reusable utilities for Python…
permissive · top 100 on PyPI
tqdmWraps any iterable to display a real-time…
copyleft · top 100 on PyPI
pippip is the standard installer for Python…
permissive · top 100 on PyPI
hatchlingHatchling is a standards-compliant Python build…
permissive · top 100 on PyPI
grpcio-toolsGenerates Python gRPC service stubs and message…
permissive · top 1,000 on PyPI
pre-commitpre-commit is a framework for installing and…
permissive · top 1,000 on PyPI
pscriptPScript compiles a Python subset to JavaScript,…
unclear · top 15,000 on PyPI
stylusBridges Python code to the Stylus CSS compiler,…
permissive · top 15,000 on PyPI
Js2PyJs2Py translates and executes JavaScript code…
permissive · top 5,000 on PyPI
groovyTranspiles Python functions to JavaScript,…
permissive · top 5,000 on PyPI
Js2Py-3.13Js2Py translates and executes JavaScript code…
permissive · top 15,000 on PyPI
lesscpyCompiles LESS stylesheets to CSS using Python,…
permissive · top 15,000 on PyPI
dukpyDukPy is a JavaScript interpreter for Python…
permissive · top 15,000 on PyPI
quickjsWraps the QuickJS C library to execute…
unclear · top 5,000 on PyPI
django-compressorDjango Compressor combines, minifies, and…
permissive · top 5,000 on PyPI
quickjs-ngEmbeds and executes JavaScript code within…
unclear · top 15,000 on PyPI