Skip to main content

JavaScript to Python Translator & JavaScript interpreter written in 100% pure Python.

Project description

Fork of https://github.com/PiotrDabkowski/Js2Py to provide built wheel distribution based on https://pypi.org/project/pyjsparser-wheel/’)

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_wheel-0.74.1.tar.gz (568.4 kB view details)

Uploaded Source

Built Distribution

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

js2py_wheel-0.74.1-py3-none-any.whl (609.2 kB view details)

Uploaded Python 3

File details

Details for the file js2py_wheel-0.74.1.tar.gz.

File metadata

  • Download URL: js2py_wheel-0.74.1.tar.gz
  • Upload date:
  • Size: 568.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for js2py_wheel-0.74.1.tar.gz
Algorithm Hash digest
SHA256 86bc8bc1242b26873f2499e9931aad49df61fa25a1d8d59927b4a8ba283ef206
MD5 9c08fc3e8e02ccb61bf4019b62f562d0
BLAKE2b-256 cad8aa6bd04790d3872b8def04018a28c17ba2298fb48185d2da36fd7c1edd2d

See more details on using hashes here.

File details

Details for the file js2py_wheel-0.74.1-py3-none-any.whl.

File metadata

  • Download URL: js2py_wheel-0.74.1-py3-none-any.whl
  • Upload date:
  • Size: 609.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for js2py_wheel-0.74.1-py3-none-any.whl
Algorithm Hash digest
SHA256 acf240b4b07cba8190f919fcf48498d6e44fffa8934eb251979dbedc01dd4be0
MD5 19952e0c6de8a52b2d47dd817cc67cfc
BLAKE2b-256 4898c9e1bbcaaa11ede3acc3dc3ffe4f6a759acc1c943745362443af2041df0b

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