{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/14"}],"enrichment":{"capability":"Js2Py translates and executes JavaScript code (ECMAScript 5.1, with experimental ES6 support) directly in Python, enabling you to run JS functions, evaluate expressions, and import npm packages without a JavaScript runtime.","skillfed_tags":["javascript-interop","code-translation","interpreter"],"use_cases":["Execute JavaScript functions from Python without a Node.js dependency, such as running crypto-js for encryption/decryption workflows","Import and use npm packages directly in Python code by translating them on the fly with js2py.require()","Parse JavaScript files to an AST for analysis or transformation using js2py.parse_js()","Translate standalone JavaScript files to Python modules for offline use with js2py.translate_file()","Test JavaScript logic in a Python test suite without spawning external processes"],"what_it_does":"Js2Py is a pure-Python JavaScript interpreter and translator that lets you execute JavaScript code from within Python applications. It translates ECMAScript 5.1 code to Python and can execute it, or evaluate JavaScript expressions directly. The package supports importing npm modules as if they were Python libraries, converting JavaScript objects to Python types automatically, and even provides experimental ES6 support by internally using Babel to downgrade ES6 to ES5 before translation.\n\nThe package is useful when you need to run untrusted or third-party JavaScript logic without spawning a Node.js process, integrate JavaScript libraries into Python workflows, or parse and analyze JavaScript code. It has three runtime dependencies (tzlocal, six, pyjsparser) and installs with low friction. However, maintenance is dormant\u2014the last commit was in May 2024\u2014so active development has stalled and edge cases in the translator may not be addressed.","worth_installing":"Yes, if you need lightweight JavaScript execution in Python and can tolerate dormant maintenance. The package is stable for ECMAScript 5.1 code, has no known vulnerabilities, and installs easily. However, avoid it if you rely on active bug fixes, ES6 features beyond experimental status, or performance-critical JavaScript translation\u2014consider a Node.js subprocess or headless browser for those cases."},"id":"js2py-3-13","links":{"html":"https://skillfed.io/packages/js2py-3-13","md":"https://skillfed.io/packages/js2py-3-13.md","pypi":"https://pypi.org/project/js2py-3-13/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2025-02-07","license_spdx":null,"license_treatment":"permissive","name":"Js2Py-3.13","python_support":"unspecified","summary":"JavaScript to Python Translator & JavaScript interpreter written in 100% pure Python."},"popularity":{"monthly_downloads":179003,"position":10181,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.74.1"}
