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

Uploaded Python 2

File details

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

File metadata

  • Download URL: Js2Py-0.61.tar.gz
  • Upload date:
  • Size: 834.3 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.61.tar.gz
Algorithm Hash digest
SHA256 0a4f71c106291d606ee9a9ff9b9f0e46a944a862a1a3f106227fc65d6055810f
MD5 691917ebe1203fbe252ea3ee2e1b1b4c
BLAKE2b-256 b93cdaaeeb23c5ab2782b4e7b99114e5437e884fd301a6267310dcdb37fbf335

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Js2Py-0.61-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.61-py2-none-any.whl
Algorithm Hash digest
SHA256 7cb667368137f2c72eb90d3bb2012ee4cb9b0886e275275615ec6ce95eb394b5
MD5 f6c863722bb98be64a6b2e205953f9ec
BLAKE2b-256 3044ea811e934eaf04db95d6a17a2ead3bc54bf9ee0ae64999e46884306d6ef6

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