kgaughan / pastetron

Yet another pastebin application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pastetron is a pastebin. It's intended for private use or within an organisation.

Author:Keith Gaughan (http://stereochro.me)
Repo:https://github.com/kgaughan/pastetron

Overview

pastetron is a very simple pastebin application. It supports syntax highlighting, comments, and has a feed of recently posted pastes.

It (currently) has no build-in authentication or CSRF prevention support, so is only intended for private use or use within an organisation.

Running with Paste

Pastetron exposes a WSGI application factory for use with Paste. You can refer to it with egg:pastetron like so:

[app:pastetron]
use = egg:pastetron

Running with a standard WSGI server

The pastetron.wsgi module exposes the WSGI application as app.

To run it using uwsgi:

$ uwsgi --master --http localhost:8000 -w pastetron.wsgi:app

To urn it using waitress:

$ waitress-serve pastetron.wsgi:app

To specify the configuration file path, assign it to the environment variable PASTETRON_CONFIG. The configuration file is an INI file with a single section, pastetron. Example:

[pastetron]
db_path=/var/db/pastetron.sqlite
site_name=My Pastes

About

Yet another pastebin application

License:MIT License


Languages

Language:Python 83.7%Language:HTML 8.9%Language:CSS 7.5%