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.60.tar.gz (833.6 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.60-py2-none-any.whl (889.6 kB view details)

Uploaded Python 2

File details

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

File metadata

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

File hashes

Hashes for Js2Py-0.60.tar.gz
Algorithm Hash digest
SHA256 6deaf6c2e49f91b6800581fbddd24b0ee51164e916e63681a368199f1de593ab
MD5 5a497974f685330aa459a3bda9538753
BLAKE2b-256 2ef45aa62fcb7c6173361da2fb644198c31052da690e4198e023330c58ddf6f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Js2Py-0.60-py2-none-any.whl
  • Upload date:
  • Size: 889.6 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.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for Js2Py-0.60-py2-none-any.whl
Algorithm Hash digest
SHA256 aa8d4c9eaa0b55fb19b04a1edbe6871648b0f4bed4e885f98c43ac3065b914d9
MD5 27b927cbe8ce8f86c267436e7515e5e5
BLAKE2b-256 ae2c2e2d424cdebe1dcbb755a97999e4981d503dd1692e14911286efb91c1836

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