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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for Js2Py-0.49.tar.gz
Algorithm Hash digest
SHA256 b0783efcb39dc4be5fd70bef0763f905b3ad1d34ced01aaf7365412ee12a7c6e
MD5 f26a92173d22eb3a5513f58962e9d319
BLAKE2b-256 a02afa838840d166f201e3457e53545897b7dfcab52a15dea7e43e53f4846b5b

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