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.63.tar.gz (834.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-0.63-py2-none-any.whl (890.3 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: Js2Py-0.63.tar.gz
  • Upload date:
  • Size: 834.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2

File hashes

Hashes for Js2Py-0.63.tar.gz
Algorithm Hash digest
SHA256 5562351d4fdc5b7773390f880585da7550e3a6072d0df854c2f44bd41314d0b4
MD5 7da890d5d1f049edc71a03b8166a42f1
BLAKE2b-256 90efc0800fcfa568ee4baa95a7ceec5a33178bac86e6643857f30cf3ddb78933

See more details on using hashes here.

File details

Details for the file Js2Py-0.63-py2-none-any.whl.

File metadata

  • Download URL: Js2Py-0.63-py2-none-any.whl
  • Upload date:
  • Size: 890.3 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2

File hashes

Hashes for Js2Py-0.63-py2-none-any.whl
Algorithm Hash digest
SHA256 74d4b2a17a8d05715eefa04e04e12764854209a01733bbf27c71116df7e38041
MD5 5ba01f1239d86bd57b925e7da74026e8
BLAKE2b-256 b95dbbebb5940dfd0a62e248e6d43d73b0a2035e5fe13177dabe89b17bafb7f1

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