From 6e1122ffbcfa6d77dc54694b25a89a11d5380f58 Mon Sep 17 00:00:00 2001 From: Eljakim Herrewijnen Date: Wed, 15 Sep 2021 22:08:03 +0200 Subject: [PATCH] Initial --- flaskapp.py | 13 +++++++++++++ main.py | 6 ++++++ numpy | 0 plots.py | 10 ++++++++++ requirements.txt | 2 ++ templates/index.html | 17 +++++++++++++++++ 6 files changed, 48 insertions(+) create mode 100644 flaskapp.py create mode 100644 main.py create mode 100644 numpy create mode 100644 plots.py create mode 100644 requirements.txt create mode 100644 templates/index.html diff --git a/flaskapp.py b/flaskapp.py new file mode 100644 index 0000000..d53a873 --- /dev/null +++ b/flaskapp.py @@ -0,0 +1,13 @@ +from flask import Flask, render_template +app = Flask("Project Numeri") + +@app.route('/') +def index(): + return render_template('index.html') + + + +def RunWeb(): + app.run(debug=True) + + diff --git a/main.py b/main.py new file mode 100644 index 0000000..5d5e684 --- /dev/null +++ b/main.py @@ -0,0 +1,6 @@ +from flaskapp import * +from plots import Cijferlijst + +if __name__ == "__main__": + cf = Cijferlijst() + RunWeb() \ No newline at end of file diff --git a/numpy b/numpy new file mode 100644 index 0000000..e69de29 diff --git a/plots.py b/plots.py new file mode 100644 index 0000000..87fa85b --- /dev/null +++ b/plots.py @@ -0,0 +1,10 @@ +import pandas as pd +import numpy as np +GRADE_LIST = pd.read_csv("Cijfers-HerrewijnenJonathan.csv", skiprows=3) + +class Cijferlijst: + def __init__(self, grade_list=GRADE_LIST): + self.grade_list = grade_list + + def iets(self): + print(self.grade_list) \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..dd9f47b --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +flask +pandas diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..c086203 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,17 @@ + + + + + + + + + + + + {% block body %}{% endblock %} + + + {% block scripts %}{% endblock %} + + \ No newline at end of file