Transcrypt
transcrypt.org
What it is
Transcrypt compiles Python source code into JavaScript for browser applications. It converts a substantial subset of Python into JavaScript 6, with optional minification, and supports features including multiple inheritance, async/await, comprehensions, and modules. Developers can call JavaScript functions from Python and use browser DOM functions and JavaScript libraries. The distribution includes optional static type validation and consistency checks, plus multilevel source maps for tracing generated JavaScript back to the original Python. Transcrypt can also compile Python server code for Node.js and use Node libraries with require(). The project recommends installing it as a Python package with pip and documents testing on Windows, Linux, and OSX. Its focus is browser development and JavaScript libraries rather than desktop Python libraries. Because code is precompiled, Python exec and eval are unsupported, although JavaScript eval is supported. C and C++ libraries are not directly supported for browser use without special measures such as compiling them to asm.js. Transcrypt is free and open source under Apache 2.0.
Spec sheet
- What it does
- Transcrypt compiles a fairly extensive subset of Python into compact, readable JavaScript.Read 3 Oct 2026 · transcrypt.org
- Purpose
- Transcrypt compiles Python source code into JavaScript for browser applications.Read 3 Oct 2026 · transcrypt.org
- Integrations
- The examples page includes integrations or demos involving jQuery, React, Fabric.js, D3.js, Plotly.js, and Riot.Read 3 Oct 2026 · transcrypt.org
- Support
- The FAQ recommends Stack Overflow for help and says commercial support is available on demand.Read 3 Oct 2026 · transcrypt.org
- Browser development
- The project focuses on writing web client applications in Python that compile to JavaScript.Read 3 Oct 2026 · transcrypt.org
- Compatibility limit
- The documentation says Python exec and eval are unsupported because Transcrypt precompiles code; JavaScript eval is supported.Read 3 Oct 2026 · transcrypt.org
- Debugging
- Transcrypt provides multi-level source maps so developers can debug generated JavaScript from Python source code.Read 3 Oct 2026 · transcrypt.org
- Installation
- The site recommends installing Transcrypt with pip as a Python package.Read 3 Oct 2026 · transcrypt.org
- Intended use
- The documentation says Transcrypt focuses on browser development and JavaScript libraries rather than desktop Python libraries.Read 3 Oct 2026 · transcrypt.org
- JavaScript access
- Transcrypt says JavaScript libraries can be used without restrictions or complications, and Python code can call JavaScript functions directly.Read 3 Oct 2026 · transcrypt.org
- JavaScript interoperability
- Transcrypt applications can use JavaScript libraries and browser DOM functions.Read 3 Oct 2026 · transcrypt.org
- JavaScript output
- Transcrypt generates JavaScript 6 and can minify the output.Read 3 Oct 2026 · transcrypt.org
- Language features
- Listed features include multiple inheritance, async/await, comprehensions, modules, optional static type checking, source maps, and built-in minification.Read 3 Oct 2026 · transcrypt.org
- Language tools
- The distribution includes optional static type validation, consistency checks, and minification tools.Read 3 Oct 2026 · transcrypt.org
- Library limit
- Transcrypt is designed for JavaScript libraries and does not directly support libraries written in C or C++.Read 3 Oct 2026 · transcrypt.org
- License and cost
- Transcrypt is free and open source under the Apache 2.0 license, and the FAQ says donations are optional.Read 3 Oct 2026 · transcrypt.org
- Limit
- Transcrypt does not directly support libraries written in C or C++ for browser use without special measures such as compiling them to asm.js.Read 3 Oct 2026 · transcrypt.org
- Node.js
- Transcrypt can compile Python to JavaScript for use on both the client and server with Node.js, subject to facilities available on each platform.Read 3 Oct 2026 · transcrypt.org
- Open source
- Transcrypt is licensed under the Apache 2.0 open source license.Read 3 Oct 2026 · transcrypt.org
- Operating systems
- The getting started documentation says Transcrypt is tested under Windows, Linux, and OSX.Read 3 Oct 2026 · transcrypt.org
- Supported systems
- The documentation says Transcrypt is tested under Windows, Linux, and OSX.Read 3 Oct 2026 · transcrypt.org
Plans and prices
Strong points and limits
Strong points
- Compiles Python into JavaScript 6
- Supports JavaScript libraries and browser DOM functions
- Provides source maps for debugging generated code
- Can target Node.js server code
- Free under the Apache 2.0 license
Limits
- Python exec and eval are unsupported
- C and C++ libraries are not directly supported for browser use
- Focuses on browser work rather than desktop Python libraries
Who it suits
It suits Python developers building browser applications who want to use JavaScript libraries and browser APIs. It is less suited to projects that depend on Python exec or eval, desktop Python libraries, or direct C/C++ library support.
Verdict
Transcrypt is a free Python-to-JavaScript option for browser-focused development, with source maps and JavaScript interoperability. Check its precompilation and library limits if your code relies on dynamic evaluation or native libraries.
Where Specifiction places it
- Code Transpilers#9 of 288.0