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_3_13-0.74.tar.gz (570.3 kB view details)

Uploaded Source

Built Distribution

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

Js2Py_3.13-0.74-py3-none-any.whl (611.8 kB view details)

Uploaded Python 3

File details

Details for the file js2py_3_13-0.74.tar.gz.

File metadata

  • Download URL: js2py_3_13-0.74.tar.gz
  • Upload date:
  • Size: 570.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.5

File hashes

Hashes for js2py_3_13-0.74.tar.gz
Algorithm Hash digest
SHA256 2e24a565131ad67afd2743e1a6e348317c6eb8d6cada09433f4d7e41f96a7567
MD5 a45b606949c69cd0a671f8b9272790b5
BLAKE2b-256 bce7ab0b6dd119284409ef65a706cbb63be9b6813805e760ce325e870888085b

See more details on using hashes here.

File details

Details for the file Js2Py_3.13-0.74-py3-none-any.whl.

File metadata

  • Download URL: Js2Py_3.13-0.74-py3-none-any.whl
  • Upload date:
  • Size: 611.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.5

File hashes

Hashes for Js2Py_3.13-0.74-py3-none-any.whl
Algorithm Hash digest
SHA256 8eb50517f7d2e2c795675fb9be2b4bb9afec2a055972c665594ea59eca94fdea
MD5 978d734122a17df5a875bafcf1035bf1
BLAKE2b-256 cd677615efc4219cb1e47273ae4b84f1d5318b7fbc9ad52379428462bd0ac811

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