{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/6"}],"enrichment":{"capability":"Js2Py translates and executes JavaScript code in pure Python, supporting ECMAScript 5.1 and experimental ES6 via Babel transpilation, allowing you to run JS functions and libraries directly from Python.","skillfed_tags":["javascript-interpreter","transpiler"],"use_cases":["Execute JavaScript snippets or algorithms from Python without spawning a separate runtime.","Translate JavaScript files to Python for static analysis, testing, or integration into Python-only environments.","Prototype or test JavaScript logic in a Python REPL without leaving the Python ecosystem.","Build Python applications that need to interoperate with JavaScript logic or libraries.","Access JavaScript object APIs and methods from Python code."],"what_it_does":"Js2Py is a pure-Python JavaScript interpreter and translator that lets you execute JavaScript code directly from Python. It works by translating JavaScript to Python bytecode, supporting the full ECMAScript 5.1 standard (except the 'with' statement) and experimental ES6 via Babel transpilation. You can evaluate inline JS expressions, define and call JS functions, access JS objects as Python-like wrappers, and import packages as Python modules.\n\nThe package is designed for scenarios where you need to run JavaScript logic without a Node.js runtime or browser. It has three lightweight dependencies (tzlocal, six, pyjsparser) and installs as a pure Python wheel, making it easy to deploy. However, it is dormant\u2014last updated in late 2022\u2014so it receives no active maintenance. ES6 support is experimental and slow. Edge cases in complex JavaScript may not translate correctly.","worth_installing":"Yes, if you need to run JavaScript from Python and can tolerate dormant maintenance. The pure-Python implementation and low install friction make it convenient for prototyping and light use. No, if you require active bug fixes, ES6 performance, or support for edge-case JavaScript patterns. Check the two known vulnerabilities (GHSA-h95x-26f3-88hr, PYSEC-2026-1476) before production use."},"id":"js2py","links":{"html":"https://skillfed.io/packages/js2py","md":"https://skillfed.io/packages/js2py.md","pypi":"https://pypi.org/project/js2py/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2022-11-06","license_spdx":null,"license_treatment":"permissive","name":"Js2Py","python_support":"unspecified","summary":"JavaScript to Python Translator & JavaScript interpreter written in 100% pure Python."},"popularity":{"monthly_downloads":837010,"position":4931,"tier":"top_5000"},"security":{"n_vulnerabilities":2},"version":"0.74"}
