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.66.tar.gz (973.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.66-py2-none-any.whl (1.0 MB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: Js2Py-0.66.tar.gz
  • Upload date:
  • Size: 973.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.66.tar.gz
Algorithm Hash digest
SHA256 bf87cb4432944470f11fed9c1cb8d0312dd505e7b867362f55102f24379ab94f
MD5 3f7a37134900646347261f08aab8d361
BLAKE2b-256 252fb184437870d15cdcc1cc52b73f1f7d6bb9ab2062d93c6a0b205ce8f323d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Js2Py-0.66-py2-none-any.whl
  • Upload date:
  • Size: 1.0 MB
  • 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.66-py2-none-any.whl
Algorithm Hash digest
SHA256 6e5628abfff2fb4051e8e77a353e44831f474e2ceb865278271897f7f326aeb6
MD5 d0d4bd357741ede368ad528fa2324b3a
BLAKE2b-256 7b277b149ea4a6233fe26ba1d739304b495524146027ff017d80e44dbfbae8b1

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