gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-anastasis] branch master updated: remote reducer readme


From: gnunet
Subject: [taler-anastasis] branch master updated: remote reducer readme
Date: Thu, 14 Oct 2021 21:16:43 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository anastasis.

The following commit(s) were added to refs/heads/master by this push:
     new 1b68b91  remote reducer readme
1b68b91 is described below

commit 1b68b91b7487f63ba7bf9f0588033a7c73300269
Author: Florian Dold <florian@dold.me>
AuthorDate: Thu Oct 14 21:16:38 2021 +0200

    remote reducer readme
---
 contrib/remote-reducer/README.md         | 8 ++++++++
 contrib/remote-reducer/remote_reducer.py | 6 ++++++
 2 files changed, 14 insertions(+)

diff --git a/contrib/remote-reducer/README.md b/contrib/remote-reducer/README.md
index ccf1adb..74adc66 100644
--- 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
index e21047b..aef6d6d 100644
--- 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__)
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]