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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Js2Py-0.59-py2-none-any.whl (602.5 kB view details)

Uploaded Python 2

File details

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

File metadata

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

File hashes

Hashes for Js2Py-0.59.tar.gz
Algorithm Hash digest
SHA256 322709555aafc38773961ac3ce7cd606bd513d1389e78dcad73625e13025fb5a
MD5 d3aa93ea9d0a8a0e2c676c0b1266efbf
BLAKE2b-256 ef1d763ddc32da7519de26249a47483587741cc0a93ed1ddf71b2ac2c98c4e84

See more details on using hashes here.

File details

Details for the file Js2Py-0.59-py2-none-any.whl.

File metadata

  • Download URL: Js2Py-0.59-py2-none-any.whl
  • Upload date:
  • Size: 602.5 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Js2Py-0.59-py2-none-any.whl
Algorithm Hash digest
SHA256 f4e344d0cc30c8f3e7c11033d4d6b7f57c2c9a27b263bebce392d58d23efbce4
MD5 519d9f6c5956509e8350802d01074068
BLAKE2b-256 123c996591794d24f1fce83fa20aaffef6dd977c7a2413f246f426e835e97435

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