Skip to main content

JavaScript to Python translator

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.

<code>
import js2py
f = js2py.eval_js( "function (name) {return name.length}" )
f("Piotr")
# returns 5
</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.1.tar.gz (86.9 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for Js2Py-0.1.tar.gz
Algorithm Hash digest
SHA256 c67f7555600b5b0d857c1bbf1e83aeb0d72f2e25caa63051e21b2078ca744b79
MD5 ae141e4d0fb3e8057eccae16dd5a2a91
BLAKE2b-256 47916b6f63ba2dbe978ab0ddbecc3f9bc002def43ecbd9f1f46dbeb6488dd898

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