@background404/node-red-contrib-pyodide 0.1.0

Node to execute Python code with Pyodide in Node-RED

npm install @background404/node-red-contrib-pyodide

node-red-contrib-pyodide

A Node-RED node that allows you to execute Python code using Pyodide.

Overview

This node brings the power of Python to Node-RED without requiring a separate Python installation. It uses Pyodide to run Python code directly in the Node.js environment.

Features

  • ✨ Execute Python code directly in Node-RED
  • 🔧 No Python installation required
  • 🌐 Web-based Python using WebAssembly (Pyodide)
  • � Automatic Python package loading (numpy, matplotlib, pandas, etc.)
  • �🔄 Seamless integration with Node-RED message flow

Usage

You can execute Python code with Pyodide.
The sample flow demonstrates basic usage of the pyodide node with an inject node and debug node.

Sample Flow

Pyodide Node

For example, You can use matplotlib in the pyodide node to generate graphs and pass them to the next node for display. The pyodide-config node loads the matplotlib package automatically.

Matplotlib Node

Pyodide Config Node

Matplotlib Flow

Others

Using Pyodide Part 1 (Execute in Browser)
https://404background.com/program/pyodide/

Using Pyodide Part 2 (Execute with Node.js)
https://404background.com/program/pyodide-2/

My Node: python-venv node
https://flows.nodered.org/node/@background404/node-red-contrib-python-venv

Node Info

Version: 0.1.0
Updated 1 day ago
License: MPL-2.0
Rating: not yet rated

Categories

Actions

Rate:

Downloads

0 in the last week

Nodes

  • pyodide
  • pyodide-config

Keywords

  • node-red
  • pyodide
  • python
  • WebAssembly

Maintainers