
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
python-spawn
Advanced tools
`python-spawn` is an npm package designed to bridge the gap between Node.js and Python, allowing Node.js applications to execute Python scripts seamlessly. This package simplifies the integration process by providing an easy-to-use interface for running Python code, functions, and scripts directly from Node.js.
python or python3) on the system.Install python-spawn using npm:
npm install python-spawn
const { PythonExecutor } = require("python-spawn");
// Creating an Instance
const executor = new PythonExecutor();
// Executing a Python Script
executor
.executeScript("/path/to/your/script.py")
.then((result) => console.log(result))
.catch((error) => console.error(error));
// Executing a Python Function withing a Script
executor
.executeScript("/path/to/your/script.py", "function_name", ["arg1", "arg2"])
.then((result) => console.log(result))
.catch((error) => console.error(error));
Contributions are welcome! Please refer to the Contributing Guidelines for detailed information.
This project is licensed under the MIT License.
FAQs
Easiest way to execute python scripts from nodejs
We found that python-spawn demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.