@app.route('/forward', methods=['POST'])
def forward():
    if request.method == 'POST':
        data = json.loads(request.form['data'])
        periods = json.loads(request.form['periods'])
        df = tr.to_df(data)
        json_return = tr.forward(df=df, periods=periods)
        resp = Response(json.dumps(json_return), status=200,
                        mimetype='application/json')
        return resp
Return a JSON of a given number of hourly events
dataset/ETHPy150Open wrobstory/mcflyin/mcflyin/application.py/forward