An example of running a Python script and using its output from Node.js
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.dockerignore
.editorconfig
.gitignore
Dockerfile
LICENSE
README.md
docker_run.sh
package.json
run.js
script.py

README.md

Node.js run Python

An example of running a Python script and using its output from Node.js

Table of contents:

Requirements

Docker CLI (easiest way to install on Mac/Windows is Docker Desktop)

or

/bin/sh, Node 10+/npm 5+ and Python 2.7+ installed

Running the example

  1. Using Docker: ./docker_run.sh
  2. Using npm: npm start
  3. Using Node: node run.js