From 398bd8160f4485f1cae625bffd42f075657617ca Mon Sep 17 00:00:00 2001 From: mattbk Date: Wed, 5 Apr 2023 16:28:39 -0500 Subject: [PATCH] Init. --- app.py | 6 ++++++ locations.csv | 8 ++++++++ users.csv | 5 +++++ 3 files changed, 19 insertions(+) create mode 100644 app.py create mode 100644 locations.csv create mode 100644 users.csv diff --git a/app.py b/app.py new file mode 100644 index 0000000..851dcd4 --- /dev/null +++ b/app.py @@ -0,0 +1,6 @@ +from flask import Flask +from flask_restful import Resource, Api, reqparse +import pandas as pd +import ast +app = Flask(__name__) +api = Api(app) \ No newline at end of file diff --git a/locations.csv b/locations.csv new file mode 100644 index 0000000..259ec0c --- /dev/null +++ b/locations.csv @@ -0,0 +1,8 @@ +locationId,name,rating +1,Café de Flore,4.0 +2,Café Tabac,4.6 +3,Rosslyn Coffee,4.8 +4,Three Wheels Coffee,4.6 +5,Roasting Plant Coffee,4.4 +6,Distrikt coffee,4.4 +7,Westberlin,4.4 diff --git a/users.csv b/users.csv new file mode 100644 index 0000000..c770199 --- /dev/null +++ b/users.csv @@ -0,0 +1,5 @@ +userId,name,city,locations +a1b,Joe,Paris,"['0001', '0002', '0008']" +a2c,Jenny,London,"['0003', '0004']" +b1b,Jack,London,"['0003', '0005']" +b2c,Jill,Berlin,"['0006', '0007']"