Js2Py icon indicating copy to clipboard operation
Js2Py copied to clipboard

JavaScript to Python Translator & JavaScript interpreter written in 100% pure Python🚀 Try it online:

Results 140 Js2Py issues
Sort by recently updated
recently updated
newest added

The ssf.js module (https://raw.githubusercontent.com/SheetJS/ssf/master/ssf.js) formats objects using the Excel number format. Here is the usage: SSF.format(fmt, val, opts) formats val using the format fmt. I converted it to python as...

print(context.ub98484234(9999, '65e21a1816000543115747621e', 1600054186)) File "/data/leisu/leisu_env/lib/python3.7/site-packages/js2py/base.py", line 1203, in __call__ return to_python(parent._obj.callprop(meth, *args)) File "/data/leisu/leisu_env/lib/python3.7/site-packages/js2py/base.py", line 996, in callprop return cand.call(self, args) File "/data/leisu/leisu_env/lib/python3.7/site-packages/js2py/base.py", line 1464, in call return Js(self.code(*args)) File...

I was trying the parser in http://piter.io/projects/js2py and I got this error. The input text to parse is included. Input ```javascript var TralbumData = { current: { "upc": null, "mod_date":...

Hi, I am trying to use Js2Py for the first time. I tried converting a Javascript file to Python like this: js2py.translate_file('a.js', 'a.py') and I get the below error: JsException:...

I setup a project here: https://github.com/TensorTom/gun-native#attempt-2---js2py-some-success I would like to be able to use the js library gun as `gun.put({'foo': 'bar'})` and then `gun.get('foo')` and have it actually work. Here's...

after a pip install git+https://github.com/PiotrDabkowski/Js2Py.git Python 2.7.6 (default, Nov 13 2018, 12:45:42) [GCC 4.8.4] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import js2py Traceback (most...

Hi there, Once i try translating js to py via js2py.translate_file and write from & import the "to be created output file". it gives me an error: ModuleNotFoundError: No module...

I'm trying to work with a function which calls `subarray` on a `Uint32Array` object. This returns an error and it seems that the respective function is not implemented. I've manage...

I am trying to import a module and I am getting the following error: ``` 2020-04-24 23:25:30 ERROR (MainThread) [homeassistant.setup] Error during setup of component pentair Traceback (most recent call...

* Deprecation warning due to invalid escape sequences. It can be fixed by raw strings or escaping them again. * Syntax warning over comparison of literals using is ``` find...