From b4f8aacc91659128caa06281a20b2c7f718752f6 Mon Sep 17 00:00:00 2001 From: iou1name Date: Wed, 16 Jan 2019 09:33:36 -0500 Subject: [PATCH] first commit --- .gitignore | 3 +++ README.md | 16 ++++++++++++++++ aberrant.py | 15 +++++++++++++++ templates/index.html | 8 ++++++++ 4 files changed, 42 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 aberrant.py create mode 100644 templates/index.html diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c56bb68 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +__pycache__/ +*.swp +*.swo diff --git a/README.md b/README.md new file mode 100644 index 0000000..e4886a4 --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +# Aberrant +It's a WebGUI for rTorrent. + +## Requirements +Python 3.7+ +Python packages: `flask gunicorn` + +## Install +1. Get on the floor +2. Walk the dinosaur + +## Usage +`gunicorn -b localhost:5000 -e SCRIPT_NAME=/aberrant aberrant:app` + +## What's with the name? +Picked a random word from the dictionary desu. diff --git a/aberrant.py b/aberrant.py new file mode 100644 index 0000000..a10c728 --- /dev/null +++ b/aberrant.py @@ -0,0 +1,15 @@ +#!/usr/bin/env python3 +""" +The primary module for serving the Aberrant application. +""" +from flask import Flask, render_template + +app = Flask(__name__) + +@app.route("/") +def index(): + """The index page.""" + return render_template("index.html", **locals()) + +if __name__ == "__main__": + app.run(host='0.0.0.0', port=5000) diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..9a3ffff --- /dev/null +++ b/templates/index.html @@ -0,0 +1,8 @@ + + + + Aberrant + + + +