--- id: stpyv8 version: "13.1.201.22" license: Apache License 2.0 license_treatment: permissive maintenance: abandoned --- # stpyv8 — Python Wrapper for Google V8 Engine License: permissive · Maintenance: abandoned · Downloads: 2.1M/mo ## What it is and what it does STPyV8 is a Python C++ extension that wraps Google's V8 JavaScript engine, enabling bidirectional interoperability between Python and JavaScript in a single process. You can evaluate JavaScript code and call JavaScript functions from Python, or export Python classes and objects to be used from within V8 contexts. The package is a maintained fork of the original PyV8 project, updated to work with modern V8 versions and Python 3. The library ships as precompiled wheels for Linux, macOS, and Windows across Python versions 3.9 through 3.14, with a single runtime dependency on importlib_resources. It is designed for scenarios where you need to execute JavaScript logic alongside Python code without spawning a separate process or network call. Use it for: - Embed JavaScript logic (e.g., data transformations, validation rules) directly into a Python application without external process overhead. - Call Python functions and classes from JavaScript code running in V8, bridging domain logic written in both languages. - Prototype or test JavaScript code in a Python environment before deploying it to a browser or Node.js runtime. - Migrate JavaScript-heavy workflows into Python by wrapping V8 execution within Python control flow. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. STPyV8 embeds Google V8 JavaScript engine into Python, allowing you to run JavaScript code from Python and call Python code from JavaScript within the same process. Yes, if you need Python–JavaScript interoperability in a single process and can accept that the repository is archived. The package is stable, has no known vulnerabilities, and works across major platforms and recent Python versions. However, do not rely on it for active maintenance or security patches; use it only in contexts where you control the JavaScript code being executed or can audit it thoroughly. ## Install pip install stpyv8 uv add stpyv8 poetry add stpyv8 ## Installing stpyv8 Before you install: Medium install friction due to compiled C++ extension and platform-specific wheels. Repository is archived and marked abandoned as of the fact sheet date, though the package remains functional and receives occasional updates; no active maintenance should be expected. License in practice: Apache License 2.0 is permissive, allowing commercial and private use with minimal restrictions; you must retain license notices in distributions. Quickstart: import STPyV8 with STPyV8.JSContext() as ctxt: upcase = ctxt.eval("(s) => s.toUpperCase()") print(upcase("hello")) Requires precompiled wheels for your platform and Python version (3.9–3.14 supported); building from source requires C++ compiler, Python headers, and Boost libraries. Verify before relying: - Whether the archived repository will receive security patches or bug fixes going forward. - Performance characteristics and memory overhead when embedding large or long-running V8 contexts. - Compatibility guarantees with future Python or V8 engine versions. ## Package facts - License: Apache License 2.0 (permissive) - Python support: unspecified - Install friction: medium - Maintenance: abandoned - Downloads: 2.1M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags python javascript interop, embed v8 engine python, run javascript in python, python v8 bridge, javascript python integration, call javascript from python, v8 engine wrapper, javascript-engine, language-bridge, archived [View on SkillFed](https://skillfed.io/packages/stpyv8) · [View on PyPI](https://pypi.org/project/stpyv8/)