{"categories":[{"label":"Build Tools","url":"https://skillfed.io/packages/category/software-development-build-tools/3"}],"enrichment":{"capability":"PScript compiles a Python subset to JavaScript, enabling you to write browser-facing code in Python syntax instead of JavaScript.","skillfed_tags":["transpiler","web-dev"],"use_cases":["Build interactive web frontends where you want to write client-side logic in Python rather than JavaScript.","Compile Python functions to JavaScript for use in web applications or browser-based tools.","Develop Flexx-based applications that automatically transpile Python UI code to run in the browser.","Create hybrid Python/JavaScript projects where business logic can be shared or ported between server and client.","Prototype browser interactions and DOM manipulation using Python syntax before or instead of learning JavaScript."],"what_it_does":"PScript is a Python-to-JavaScript compiler that translates a carefully defined subset of Python into executable JavaScript. It was originally built as part of the Flexx framework and now stands as a standalone tool. The compiler takes Python functions and classes and outputs equivalent JavaScript code, allowing developers to write browser-facing code using Python syntax and semantics.\n\nThe package is pure Python with no external dependencies, making installation trivial. It targets modern browsers (Firefox, Chrome, Edge) and Internet Explorer 9 and above, though some newer Python constructs like async/await do not work in older browsers. The generated JavaScript handles Python-specific features like default arguments and prints to the browser console. It is actively maintained and used in production projects like TimeTagger.app.","worth_installing":"Yes, if you need to write browser code in Python. The package has no dependencies, installs cleanly, is actively maintained, and solves a real problem for teams that prefer Python syntax. The main gotcha is that only a Python subset compiles\u2014you need to verify your code will translate before committing to this approach."},"id":"pscript","links":{"html":"https://skillfed.io/packages/pscript","md":"https://skillfed.io/packages/pscript.md","pypi":"https://pypi.org/project/pscript/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-03-31","license_spdx":null,"license_treatment":"unclear","name":"pscript","python_support":"supports_current","summary":"Python to JavaScript compiler."},"popularity":{"monthly_downloads":284719,"position":8061,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.8.1"}
