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.74.tar.gz (2.5 MB view details)

Uploaded Source

Built Distribution

Js2Py-0.74-py3-none-any.whl (1.0 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: Js2Py-0.74.tar.gz
  • Upload date:
  • Size: 2.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.2 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.15

File hashes

Hashes for Js2Py-0.74.tar.gz
Algorithm Hash digest
SHA256 39f3a6aa8469180efba3c8677271df27c31332fd1b471df1af2af58b87b8972f
MD5 92828a45dd6a8a20843500305a57ec78
BLAKE2b-256 cba53d8b3e4511cc21479f78f359b1b21f1fb7c640988765ffd09e55c6605e3b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Js2Py-0.74-py3-none-any.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.2 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.15

File hashes

Hashes for Js2Py-0.74-py3-none-any.whl
Algorithm Hash digest
SHA256 40a508a79e2f8d624e3f2e604f90a1e6f46ac75b416d7f4745939ff4a2e95e09
MD5 4f96bf01f4b86a3ba694cbf3937a40e8
BLAKE2b-256 88582feb430d47c9f18f331494b429697342722b51f28dad8ad92a511c0f6fc8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page