If you hear the name Transcrypt and think TypeScript, you’re not far off the mark.
document.getElementById in Python, for instance, the converted code will use the actual
The biggest drawback to Jiphy is that it supports only a subset of Python’s features. Neither classes nor default arguments are available yet, although decorators and exceptions are supported. Much of this is because Jiphy insists on establishing as close to a line-to-line relationship as possible between the source and target code, but its developers have eyed the new features in ES6 for more advanced Python feature support.
Note, however, that the project hasn’t been updated since early 2016. Jiphy should be considered strictly experimental until work on it resumes.
Someday, when WebAssembly becomes a reality, it may be possible to develop for the web in any language we choose. The philosophy behind Brython, at least as far as Python 3 is concerned, is why wait?
Plenty of live code examples and a gallery of mini-applicationsdemonstrate how it all works. It’s even possible to use Brython to write a native Android app in Python. Plans are in the works to support Python’s async functionality and to eventually use WebAssembly as a compilation target.
$ special symbol used by jQuery works as-is in RapydScript, and arrays can support both the
.append (Python) methods.
- This post originally appeared on InfoWorld.