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.51.tar.gz (553.7 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.51-py2-none-any.whl (600.9 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: Js2Py-0.51.tar.gz
  • Upload date:
  • Size: 553.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Js2Py-0.51.tar.gz
Algorithm Hash digest
SHA256 60292333802a4dd228eaded03261dcfe5a97c2327e78c1131578d2fe997ab744
MD5 66413edee0d8c10b0a46563b30c8c7be
BLAKE2b-256 5c97befbab49a33b728cfd382fcd8538d9d6fe182f55ddf46fa47ad966c36740

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Js2Py-0.51-py2-none-any.whl
  • Upload date:
  • Size: 600.9 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Js2Py-0.51-py2-none-any.whl
Algorithm Hash digest
SHA256 de2d737277a661a4dfe3071bfd9be5957125b004beb86b72c0fa043eb25a5f14
MD5 3eccffc7aed262e1e2156e534e0a2306
BLAKE2b-256 81b4b10923b530efc9844cdb8846b683596231f223df946172280ee814d82709

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