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.1.tar.gz (570.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_3.13-0.74.1-py3-none-any.whl (611.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: js2py_3_13-0.74.1.tar.gz
  • Upload date:
  • Size: 570.4 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.1.tar.gz
Algorithm Hash digest
SHA256 91e214f717312f9d510eaf36fcc5325b0b15a22a49831fe2b434bca4a33c1f77
MD5 a3ce2e9fe456396015fac9bf613dc1e9
BLAKE2b-256 e29e17ed2ceebff1539a454b66d3f056001ab37f679e28a336e1ba88407940fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Js2Py_3.13-0.74.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5c60a80a43197775986c27f33becaf9ebf3731e8e79030c925f44025ed6f0e8b
MD5 cfdb090bf97a6450ee1ca93b8834cc83
BLAKE2b-256 475f4bdab35d30055613c58f681f03d3a76e06c874485aced646fac763a1d552

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