commit 1b68b91b7487f63ba7bf9f0588033a7c73300269 parent 920e24f9399ab3d50ee72247630d4cb5bc94e964 Author: Florian Dold <florian@dold.me> Date: Thu, 14 Oct 2021 21:16:38 +0200 remote reducer readme Diffstat:
| M | contrib/remote-reducer/README.md | | | 8 | ++++++++ |
| M | contrib/remote-reducer/remote_reducer.py | | | 6 | ++++++ |
2 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/contrib/remote-reducer/README.md b/contrib/remote-reducer/README.md @@ -3,6 +3,14 @@ The remote reducer is a simple HTTP service that proxies requests to ``anastasis-reducer``. It is not meant to be used in production. +## Dependencies + +The remote reducer needs python3 and flask. Flask can be installed via pip: + +``` +pip3 install flask +``` + ## Running the remote reducer ``` diff --git a/contrib/remote-reducer/remote_reducer.py b/contrib/remote-reducer/remote_reducer.py @@ -2,6 +2,12 @@ import flask from flask import Flask, request import subprocess import json +import sys +import os + +if sys.version_info.major < 3: + print("Python>=3 required") + os.exit(1) app = Flask(__name__)