Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Js2Py-0.71.tar.gz (978.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Js2Py-0.71-py3-none-any.whl (1.0 MB view details)

Uploaded Python 3

File details

Details for the file Js2Py-0.71.tar.gz.

File metadata

  • Download URL: Js2Py-0.71.tar.gz
  • Upload date:
  • Size: 978.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for Js2Py-0.71.tar.gz
Algorithm Hash digest
SHA256 a41b1009dd1498ae7d436bfa5ac952a08ca92a4bb9e31dca6e8bb966b49f7fce
MD5 451a084bec40bd43d6932a6bb1af1757
BLAKE2b-256 36613c6a930ffcee1026a495406dd3c156ae400cf7aa14d26bfbbd0df638b4b9

See more details on using hashes here.

File details

Details for the file Js2Py-0.71-py3-none-any.whl.

File metadata

  • Download URL: Js2Py-0.71-py3-none-any.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for Js2Py-0.71-py3-none-any.whl
Algorithm Hash digest
SHA256 7f3dfa30c4b8e3ac3edd64c361c950a8c2587a30a86854aeb8c1ffb6f4dd24b4
MD5 ca230548cdaaad3c89ad2a727e8801a9
BLAKE2b-256 68165f671ca7a8278ce5fa57dd97aa2427588be08505816238277600bab2cea9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page