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.68.tar.gz (562.0 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.68-py3-none-any.whl (605.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: Js2Py-0.68.tar.gz
  • Upload date:
  • Size: 562.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.5

File hashes

Hashes for Js2Py-0.68.tar.gz
Algorithm Hash digest
SHA256 306ba83c8ce16b330e532bfe2870763d0a4bbf4d6aab07799ea3c8c1446e1275
MD5 31d9ab111ec5598320bf9407bf7124ff
BLAKE2b-256 3343a0e547a0f24a30e3cf6f4d4b59a45ff151f6bce049c4aa5101a83d958358

See more details on using hashes here.

File details

Details for the file Js2Py-0.68-py3-none-any.whl.

File metadata

  • Download URL: Js2Py-0.68-py3-none-any.whl
  • Upload date:
  • Size: 605.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.5

File hashes

Hashes for Js2Py-0.68-py3-none-any.whl
Algorithm Hash digest
SHA256 80f333d8c654396370974956b37679c1d45cfd4efdcf9731122e1fc809f7a67e
MD5 f9c656ebcdcb65f14d457b21767f9107
BLAKE2b-256 29c7879dc3018658ca6525259dd86e145c084bb54533fe3a273549dd00cb9088

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