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.74
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| Js2Py-0.74.tar.gz | 2.5 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Js2Py-0.74-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.5 MB
Release files / Js2Py-0.74.tar.gz
| Download URL | Js2Py-0.74.tar.gz |
|---|---|
| Size | 2.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
39f3a6aa8469180efba3c8677271df27c31332fd1b471df1af2af58b87b8972f
|
|
BLAKE2b-256 checksum How to use checksums |
cba53d8b3e4511cc21479f78f359b1b21f1fb7c640988765ffd09e55c6605e3b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.2 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.15
|
Release files / Js2Py-0.74-py3-none-any.whl
| Download URL | Js2Py-0.74-py3-none-any.whl |
|---|---|
| Size | 1.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
40a508a79e2f8d624e3f2e604f90a1e6f46ac75b416d7f4745939ff4a2e95e09
|
|
BLAKE2b-256 checksum How to use checksums |
88582feb430d47c9f18f331494b429697342722b51f28dad8ad92a511c0f6fc8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.2 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.15
|
Security for Js2Py 0.74
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.