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 Js2Py2 0.75

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

Source distribution (sdist)

Source distribution for Js2Py2 0.75
File Size Uploaded
js2py2-0.75.tar.gz 568.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Js2Py2 0.75
File Interpreter ABI Platform
Js2Py2-0.75-py3-none-any.whl Python 3 none any Details

Total release size: 1.2 MB

Release files / js2py2-0.75.tar.gz

Download URL js2py2-0.75.tar.gz
Size 568.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e2291fc70b4835701287b6b98573f4ac9d40b72e5808ae611bfbb0d1ad46241c
BLAKE2b-256 checksum
How to use checksums
1fdce3ce82cbe32758ec9b559320c5e45443e44651c2313a43126bef3b9a028b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.0

Release files / Js2Py2-0.75-py3-none-any.whl

Download URL Js2Py2-0.75-py3-none-any.whl
Size 609.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
25a144805c9efd3c2686db1acf256f96051ff656f18e1ae59c8f80862f689140
BLAKE2b-256 checksum
How to use checksums
e912644faa41e05ea677671124bec78da7bd60fff19cb64b4557bad029e17c4b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.0

Release history Release notifications | RSS feed

This release

0.75 This release

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