17 lines
343 B
Python
Executable file
17 lines
343 B
Python
Executable file
#!/bin/python3
|
|
|
|
from flask import Flask, render_template
|
|
import datetime
|
|
import getpass
|
|
import os
|
|
|
|
app = Flask(__name__)
|
|
|
|
@app.route("/")
|
|
def index():
|
|
user = getpass.getuser()
|
|
time = datetime.datetime.now()
|
|
os = os.uname()
|
|
return render_template("index.html", user=user, time=time, os=os)
|
|
|
|
app.run(host="127.0.0.1", port=5000)
|