Python HTTP Server

Run webpages locally on a simple Python HTTP Server. Javascript libraries, like Google MediaPipe, require the secure context of a localhost webserver to run locally.

Features

Add the HTTP Server Script to OBS

The "Python HTTP Server" script and accompanying OBS Collection can be found on Github.
python http server repo

Import the HTTP Server OBS Collection

  1. Download the HTTP server collection
  2. In OBS, from the menu select Scene Collection > Import
  3. Import the collection
  4. Choose the collection Scene Collection

Add the HTTP Server Script

  1. Download the HTTP Server Script
  2. In OBS, from the menu select Tools > Scripts
  3. Click the + Add script button

Serve webpages

In the same folder where the Python HTTP Server Script is saved, add HTML, CSS, Javascript, and other resources. See the "set websocket server" repo for using the python HTTP Server.