Add proper shebangs and block comments

This commit is contained in:
BBaoVanC 2020-09-04 10:47:20 -05:00
parent 565a91e4ec
commit 9d9b93a9ee
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
4 changed files with 25 additions and 0 deletions

View File

@ -1,3 +1,9 @@
#!/usr/bin/env python3
"""
configtest.py
Tests the validity of your configuration in settings.py.
"""
import os import os
import settings as settings import settings as settings

View File

@ -1,3 +1,9 @@
#!/usr/bin/env python3
"""
functions.py
Functions used by imgupload which can be easily customized.
"""
import string import string
import random import random

View File

@ -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 flask import Flask, request, jsonify, abort, Response
from cryptography.fernet import Fernet from cryptography.fernet import Fernet
from flask_api import status from flask_api import status

View File

@ -1,3 +1,10 @@
#!/usr/bin/env python3
"""
settings.py
User-defined settings used by imgupload.py.
"""
UPLOAD_FOLDER = "/path/to/images" UPLOAD_FOLDER = "/path/to/images"
ALLOWED_EXTENSIONS = [".png", ".jpg", ".jpeg", ".svg", ".bmp", ".gif", ".ico", ".webp"] ALLOWED_EXTENSIONS = [".png", ".jpg", ".jpeg", ".svg", ".bmp", ".gif", ".ico", ".webp"]
ROOTURL = "https://example.com/" ROOTURL = "https://example.com/"