Skip to main content

JavaScript to Python Translator & JavaScript interpreter written in 100% pure Python.

Project description

Fork of https://github.com/PiotrDabkowski/Js2Py to provide built wheel distribution based on https://pypi.org/project/pyjsparser-wheel/’)

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_wheel-0.74.tar.gz (567.5 kB view details)

Uploaded Source

Built Distribution

Js2Py_wheel-0.74-py3-none-any.whl (608.3 kB view details)

Uploaded Python 3

File details

Details for the file js2py_wheel-0.74.tar.gz.

File metadata

  • Download URL: js2py_wheel-0.74.tar.gz
  • Upload date:
  • Size: 567.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for js2py_wheel-0.74.tar.gz
Algorithm Hash digest
SHA256 8670d73abf22b211173cfe70cf92f94aa36be61f43d44c65131f1d20bb26be04
MD5 900f86260e0d51357bb032806bb63382
BLAKE2b-256 3059e080d8eb641f2ceea89677ab0c56d7a2a0858a0c4bb95813bad712b8d3e3

See more details on using hashes here.

File details

Details for the file Js2Py_wheel-0.74-py3-none-any.whl.

File metadata

  • Download URL: Js2Py_wheel-0.74-py3-none-any.whl
  • Upload date:
  • Size: 608.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for Js2Py_wheel-0.74-py3-none-any.whl
Algorithm Hash digest
SHA256 c5b4af26ce0a16c26190031ddafb495a998b35c46bf5959c7feb72f581d23ca7
MD5 adac9e30c063a2dd68cbe0a8e0686eb6
BLAKE2b-256 7f589485878e03c64247fa37da9380acc6019be7f63059052d1f19b3699a5a6e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page