It representes only a poor pastbin clone. Written in Python(3)-Flask with an SQLite backend.
- sqlite3
- pygments
- flask
- flask-restful
- flask-classy
- hamlish_jinja
Note
Before you are able to use it, you need to create the Database. You only need to open a python shell an type the following:
import lib.db
lib.db.Database().create()
Show index page.
Create new paste.
Show paste if key is given.
[.suffix defines the filename, which should be highlighted]
Sample:
hdauoqqfb.py => Python
hdauoqqfb.rb => Ruby
Show paste if key is given in raw formate.
Mime-Type: text/plain
This is only an experimental call.
It returns an all pastes, formatted as json.
You could start them with gunicorn. There is also an systemd service / socket file shipped. You only need to replace your WorkingDir and username. It will start an GUnicorn on local:9000 or ::8000.
gunicorn app:app -w 1 -b 0.0.0.0:5000
or easier for development.
python app.py