diff --git a/configtest.py b/configtest.py index a74956d..5b4775f 100644 --- a/configtest.py +++ b/configtest.py @@ -1,3 +1,9 @@ +#!/usr/bin/env python3 +""" +configtest.py + +Tests the validity of your configuration in settings.py. +""" import os import settings as settings diff --git a/functions.py.default b/functions.py.default index c13c25a..ebfb6db 100644 --- a/functions.py.default +++ b/functions.py.default @@ -1,3 +1,9 @@ +#!/usr/bin/env python3 +""" +functions.py + +Functions used by imgupload which can be easily customized. +""" import string import random diff --git a/imgupload.py b/imgupload.py index 345fe64..6728fc1 100644 --- a/imgupload.py +++ b/imgupload.py @@ -1,3 +1,9 @@ +#!/usr/bin/env python3 +""" +imgupload.py + +Flask application for processing images uploaded through POST requests. +""" from flask import Flask, request, jsonify, abort, Response from cryptography.fernet import Fernet from flask_api import status diff --git a/settings.py.default b/settings.py.default index 06bd33d..897214c 100644 --- a/settings.py.default +++ b/settings.py.default @@ -1,3 +1,10 @@ +#!/usr/bin/env python3 +""" +settings.py + +User-defined settings used by imgupload.py. +""" + UPLOAD_FOLDER = "/path/to/images" ALLOWED_EXTENSIONS = [".png", ".jpg", ".jpeg", ".svg", ".bmp", ".gif", ".ico", ".webp"] ROOTURL = "https://example.com/"