aboutsummaryrefslogtreecommitdiff
path: root/stackbin.py
diff options
context:
space:
mode:
Diffstat (limited to 'stackbin.py')
-rwxr-xr-xstackbin.py18
1 files changed, 16 insertions, 2 deletions
diff --git a/stackbin.py b/stackbin.py
index ad5b047..653cb9b 100755
--- a/stackbin.py
+++ b/stackbin.py
@@ -1,8 +1,23 @@
# File: stackbin.py
+# Location: http://gitlab.com/bgstack15/stackbin/
+# Authors: mitsuhiko, ofshellohicy, su27, bgstack15
# SPDX-License-Identifier: GPL-3.0
-# Authors: mitsuhiko, su27, bgstack15
+# Startdate: 2011 by mitsuhiko
+# Title: Stackbin
+# Purpose: Flask-based pastebin
+# History:
+# 2014 ofshellohicy removed some features
+# 2016 su27 added some features
+# 2022 bgstack15 hard forked
# Reference:
# fuss.py
+# Improve:
+# Dependencies:
+# req-INCOMPLETE-devuan: python3-pytimeparse, python3-uwsgidecorators
+# req-fedora: uwsgi, uwsgi-logger-file, python36-flask uwsgi-plugin-python36 python36-sqlalchemy, python36-uwsgidecorators, python3-pytimeparse, python3-uwsgidecorators
+# req-centos7: uwsgi, uwsgi-logger-file, python36-flask uwsgi-plugin-python36 python36-sqlalchemy, python36-uwsgidecorators
+# pip-centos7: flask-sqlalchemy, pytimeparse
+# Documentation: see README.md
from datetime import datetime, timedelta
from itsdangerous import Signer
from flask import (Flask, request, url_for, redirect, g, render_template, session, abort)
@@ -17,7 +32,6 @@ except:
print("Warning! Without uwsgidecorators, the cleanup timer cannot run.")
import time
-## ripped from https://stackoverflow.com/questions/183042/how-can-i-use-uuids-in-sqlalchemy/812363#812363
from sqlalchemy import types
from sqlalchemy.dialects.mysql.base import MSBinary
from sqlalchemy.schema import Column
bgstack15