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

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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for Js2Py-0.30.tar.gz
Algorithm Hash digest
SHA256 9d15ce8802af96f91db8734893a8e5f02bedb9a4451e0c5562fdd6e9ec3487c2
MD5 77c3e29c5405a5617d8b7cc79394a801
BLAKE2b-256 731aff45e5233e6e21f7f639514db6cb1d1d7b28944790a22e35f2ca5988d338

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