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.

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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for Js2Py-0.23.tar.gz
Algorithm Hash digest
SHA256 87c315253e70d64d66f5a82885a7363c1990bb19b1250c7db6bb11bb3928d59b
MD5 a1f938e663144dc8b1e434399f206111
BLAKE2b-256 95ca909e28428a507ea78918331624176cab7eb2a3a16592521ff638883424fd

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