Js2Py
Js2Py copied to clipboard
JavaScript to Python Translator & JavaScript interpreter written in 100% pure Python🚀 Try it online:
js2py.base.PyJsException: ReferenceError: decodeURIComponent is not defined Is this js command not supported? Thanks
When executing: ``` PYTHONPATH=`pwd`; export PYTHONPATH; cd tests python3 run.py ``` It fails. I have included the output :). [output.txt](https://github.com/PiotrDabkowski/Js2Py/files/4406355/output.txt)
js2py canot run some js code, or it's hung? or it is my problem? but PyExecJS run it well. ` //test var value = 'test'; var publicKey = "010001,C7CB65419608837E6FAF5F940A0DD3727624D2DED774DD00CEFCE878446BF3FE57174196335D2E6D26590192FC5E084948459D537C2757232E609B374ADDDCCE421F33B24EB38D98B37FF262F904BD469C97E30836887B3F166D0D1105639F04C9AFE028BB3BB69BFE03B0F7604FF9655ACABC6E84026ED5463B25732A08DD41,4e676fe5-81dd-48e0-87ab-bb6e4c1f0a3b"; r...
Running the example from the README: ```python from js2py.internals import seval seval.eval_js_vm(code) ``` I get the following error: ``` from space import Space ImportError: No module named 'space' ```
For me `js2py.test_internals` fails: ``` ImportError: Failed to import test module: js2py.test_internals Traceback (most recent call last): File "/usr/lib/python3.7/unittest/loader.py", line 436, in _find_test_path module = self._get_module_from_name(name) File "/usr/lib/python3.7/unittest/loader.py", line 377,...
This repo version is 0.64 but the Pypi release is 0.66. Is there some missing bits here?
Package Widnows exe program. The loaded js2py can't find the module. It's normal in pytcharm. There are errors in the CMD command. Test the loading and display all the time...
Hello, could tests/ be used for unit testing? If yes, could you please consider to add it to pypi tarball, so packagers can benefit from them?
Hi, I was hoping to use Js2Py to translate a JS module to Python. However, the module itself depends on Jquery. So, I tried translating the Jquery js to python...
``` import js2py js = """ console.log(1,2) """ js2py.eval_js(js) ``` I have tried many times with console.log, only first arg was printed. OS: win 10 ENV: pycharm console VER: Js2py...