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(“Piotr”)

# returns 5

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.42.tar.gz (511.7 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: Js2Py-0.42.tar.gz
  • Upload date:
  • Size: 511.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Js2Py-0.42.tar.gz
Algorithm Hash digest
SHA256 377b84c21277e07fc76f736f6d8b172580dfee6efde8a486134055db6241d35a
MD5 63f32ee58cf36bd7d7fe53cd35cc4cae
BLAKE2b-256 ca6cc90e9d087a630a073491a2fd1e1537face58780d6c7cdf56d0c73de70ab0

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