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.70.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.70-py3-none-any.whl (605.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: Js2Py-0.70.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.70.tar.gz
Algorithm Hash digest
SHA256 7568b33f6bd15ee8ab1f3655928ed05481a6236ad2acca4598703ae501571661
MD5 1a62150667ac2b2c49a3e2490ee5b40a
BLAKE2b-256 50ca96809659b66f06f10a65a73023d5a2cdc1f9376f080473ea9397593e2b7b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Js2Py-0.70-py3-none-any.whl
  • Upload date:
  • Size: 605.6 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.70-py3-none-any.whl
Algorithm Hash digest
SHA256 f78e76c88942585973129a0a10e7054b5ea1602d761d4c0ccfa0593bc819f0bb
MD5 b9bc9ef5c94d66ac436f992ecf714f10
BLAKE2b-256 f46a0385641ad1b52aae5c63820277a10e500c19e40fc4df5287f161aa287020

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