#!/usr/bin/env python

from flask import Flask
import requests


app = Flask(__name__)

@app.route("/")
def hello():
    # Read data from remote server w/Basic Auth:
    r = requests.get('https://user:super_secret_pass@gist.github.com/vagelim/8f9eb5bf6d81ded38703acee04c00422')
    return r.text

# Runs on port 5000 by default
if __name__ == "__main__":
    app.run(host="127.0.0.1") # locally available see https://flask.palletsprojects.com/en/2.0.x/quickstart/#:~:text=Externally%20Visible%20Server
