Add proper shebangs and block comments
This commit is contained in:
parent
565a91e4ec
commit
9d9b93a9ee
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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/"
|
||||||
|
Reference in New Issue
Block a user