Skip to main content

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

Metadata

Release files for Js2Py-3.13 0.74.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Js2Py-3.13 0.74.1
File Size Uploaded
js2py_3_13-0.74.1.tar.gz 570.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Js2Py-3.13 0.74.1
File Interpreter ABI Platform
Js2Py_3.13-0.74.1-py3-none-any.whl Python 3 none any Details

Total release size: 1.2 MB

Release files / js2py_3_13-0.74.1.tar.gz

Download URL js2py_3_13-0.74.1.tar.gz
Size 570.4 kB
Tags Source
SHA-256 checksum
How to use checksums
91e214f717312f9d510eaf36fcc5325b0b15a22a49831fe2b434bca4a33c1f77
BLAKE2b-256 checksum
How to use checksums
e29e17ed2ceebff1539a454b66d3f056001ab37f679e28a336e1ba88407940fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.5

Release files / Js2Py_3.13-0.74.1-py3-none-any.whl

Download URL Js2Py_3.13-0.74.1-py3-none-any.whl
Size 611.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5c60a80a43197775986c27f33becaf9ebf3731e8e79030c925f44025ed6f0e8b
BLAKE2b-256 checksum
How to use checksums
475f4bdab35d30055613c58f681f03d3a76e06c874485aced646fac763a1d552
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.5

Release history Release notifications | RSS feed

This release

0.74.1 This release

2 release files

0.74

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page