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.67.tar.gz (991.6 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.67-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: Js2Py-0.67.tar.gz
  • Upload date:
  • Size: 991.6 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.67.tar.gz
Algorithm Hash digest
SHA256 168952e3827198f68eacbf84a7b23c80a55794415291f821ec6c96f3fd9c3253
MD5 1b7de605f8e26cce83be19d2a100652d
BLAKE2b-256 ba752fdf4fc9403f1c683f1ae138ebef62bb0a1e388b7aacf21c3cd35e998507

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Js2Py-0.67-py3-none-any.whl
  • Upload date:
  • Size: 1.1 MB
  • 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.67-py3-none-any.whl
Algorithm Hash digest
SHA256 6c45cce8eb66b16f8dc692c6e6a2d509be9544b63cfb386eadf7309a931feb62
MD5 461b6bd0e36bbf8e74b19f3109ec760b
BLAKE2b-256 b3206ebae407780de2b97f560ace49fb6b8d2ccf934e001bf9bd33ce4046d060

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