diff options
author | B Stack <bgstack15@gmail.com> | 2022-02-15 13:22:19 -0500 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2022-02-15 13:22:19 -0500 |
commit | 57531b689401fc86c42ada084e9ca4fd75331a1c (patch) | |
tree | 0127665ebf770adae338c80870105754c2502a31 /stackbin.py | |
parent | initialize database in app (diff) | |
download | stackbin-57531b689401fc86c42ada084e9ca4fd75331a1c.tar.gz stackbin-57531b689401fc86c42ada084e9ca4fd75331a1c.tar.bz2 stackbin-57531b689401fc86c42ada084e9ca4fd75331a1c.zip |
shore up docs
Diffstat (limited to 'stackbin.py')
-rwxr-xr-x | stackbin.py | 18 |
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 |