Js2Py-0.74
توضیحات
JavaScript to Python Translator & JavaScript interpreter written in 100% pure Python.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | Js2Py-0.74 |
| نام | Js2Py |
| نسخه کتابخانه | 0.74 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Piotr Dabkowski |
| ایمیل نویسنده | piodrus@gmail.com |
| آدرس صفحه اصلی | https://github.com/PiotrDabkowski/Js2Py |
| آدرس اینترنتی | https://pypi.org/project/Js2Py/ |
| مجوز | MIT |
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
نیازمندی
| مقدار | نام |
|---|---|
| >=1.2 | tzlocal |
| >=1.10 | six |
| >=2.5.1 | pyjsparser |
نحوه نصب
نصب پکیج whl Js2Py-0.74:
pip install Js2Py-0.74.whl
نصب پکیج tar.gz Js2Py-0.74:
pip install Js2Py-0.74.tar.gz