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.62.tar.gz (834.2 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.62-py2-none-any.whl (890.2 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: Js2Py-0.62.tar.gz
  • Upload date:
  • Size: 834.2 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.62.tar.gz
Algorithm Hash digest
SHA256 2590f98966764ee7466eeb8f38c0af6a4de105e1e8758b931e01e1f6d5f29de5
MD5 cebd320be170fbc1a36064a31d3890b7
BLAKE2b-256 46ace483e160c5df2a11062a5d13d873e6cc5c221eec9818c016d542f9e0dffe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Js2Py-0.62-py2-none-any.whl
  • Upload date:
  • Size: 890.2 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.62-py2-none-any.whl
Algorithm Hash digest
SHA256 084dfe0e387adf0e0a47d67706f4adceddd5f5d88fef26fd8c596ed3eb7fef70
MD5 0d95a0c2452a25999be68edd9360b1fc
BLAKE2b-256 d904b43754660d62fb74fcd6b14c3421bfd081e387bd075be6af31519957415d

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