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.69.tar.gz (562.0 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.69-py3-none-any.whl (605.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: Js2Py-0.69.tar.gz
  • Upload date:
  • Size: 562.0 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.69.tar.gz
Algorithm Hash digest
SHA256 f9e15921db9a9f6768e66e1545efd538caa01be2a1c335546eb3c49502e751ea
MD5 2e12e35d46e7ed9e2aefb6505adf1c8d
BLAKE2b-256 94f1e569712fd3ea4930f6afc27bca4d603abd328e4c734bbda367b3475fafe5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Js2Py-0.69-py3-none-any.whl
  • Upload date:
  • Size: 605.7 kB
  • 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.69-py3-none-any.whl
Algorithm Hash digest
SHA256 44a0992f7c7407fd1a506f56779804cf2a1c67121735a97459d41fdbc9abec76
MD5 645d15b08084855222d01b72eccb6551
BLAKE2b-256 5a0331a29148b1268398f95af36a485ce84e9b7b873a9b29d0f03b1b4ad0355a

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