JavaScript to Python Translator & JavaScript interpreter written in 100% pure Python.
Project description
Translates JavaScript to Python code. Js2Py is able to translate and execute virtually any JavaScript code.
Js2Py is written in pure python and does not have any dependencies. Basically an implementation of JavaScript core in pure python.
import js2py
f = js2py.eval_js( “function $(name) {return name.length}” )
f(“Hello world”)
# returns 11
Now also supports ECMA 6 through js2py.eval_js6(js6_code)!
More examples at: https://github.com/PiotrDabkowski/Js2Py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Js2Py-0.54.tar.gz.
File metadata
- Download URL: Js2Py-0.54.tar.gz
- Upload date:
- Size: 556.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9af6261da024886956b5c08521046800b1d20fbd8566e97ba1570f16ca850553
|
|
| MD5 |
b8dab1dcf5410649b9138c204ade40ad
|
|
| BLAKE2b-256 |
f612aac14644bae0953b8d76b5d6db24091ccdf8a1dc00b2b88c4767ae344e57
|
File details
Details for the file Js2Py-0.54-py2-none-any.whl.
File metadata
- Download URL: Js2Py-0.54-py2-none-any.whl
- Upload date:
- Size: 601.0 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be01250e4c3bf97f760718f035c4e6a01370af88f1493d6e210fc819c990f573
|
|
| MD5 |
8f767346df498f67647cc82333df3aac
|
|
| BLAKE2b-256 |
bbf5aa93d04d494a8bec03d4cd46ef53a374e062abb5b68d8bc731e7dfaa9313
|