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 0.59

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 0.59
File Size Uploaded Provenance Actions
Js2Py-0.59.tar.gz 556.5 kB Without provenance Details for Js2Py-0.59.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for Js2Py 0.59
File Interpreter ABI Platform Actions
Js2Py-0.59-py2-none-any.whl Python 2 none any Details for Js2Py-0.59-py2-none-any.whl

Total release size: 1.2 MB

Release files / Js2Py-0.59.tar.gz

Download URL Js2Py-0.59.tar.gz
Size 556.5 kB
Tags Source
SHA-256 checksum
How to use checksums
322709555aafc38773961ac3ce7cd606bd513d1389e78dcad73625e13025fb5a
BLAKE2b-256 checksum
How to use checksums
ef1d763ddc32da7519de26249a47483587741cc0a93ed1ddf71b2ac2c98c4e84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / Js2Py-0.59-py2-none-any.whl

Download URL Js2Py-0.59-py2-none-any.whl
Size 602.5 kB
Tags Python 2
SHA-256 checksum
How to use checksums
f4e344d0cc30c8f3e7c11033d4d6b7f57c2c9a27b263bebce392d58d23efbce4
BLAKE2b-256 checksum
How to use checksums
123c996591794d24f1fce83fa20aaffef6dd977c7a2413f246f426e835e97435
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for Js2Py 0.59

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.59 This release

2 release files No provenance

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