This commit is contained in:
Eljakim Herrewijnen 2021-09-15 22:08:03 +02:00
parent 77f4d51bf6
commit 6e1122ffbc
6 changed files with 48 additions and 0 deletions

13
flaskapp.py Normal file
View File

@ -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)

6
main.py Normal file
View File

@ -0,0 +1,6 @@
from flaskapp import *
from plots import Cijferlijst
if __name__ == "__main__":
cf = Cijferlijst()
RunWeb()

0
numpy Normal file
View File

10
plots.py Normal file
View File

@ -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)

2
requirements.txt Normal file
View File

@ -0,0 +1,2 @@
flask
pandas

17
templates/index.html Normal file
View File

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="Anthony Federico" content="Flaskex">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.6.2/css/bulma.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="../static/css/style.css">
</head>
<body>
{% block body %}{% endblock %}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
{% block scripts %}{% endblock %}
</body>
</html>