Skip to content


Repository files navigation


LocalPaste is a lightweight pastebin which can be hosted on a RaspberryPi.


$ git clone
$ cd local-paste
$ python3 -m venv env
$ source env/bin/activate
$ pip install -r requirements.txt

If you are using pipenv, the instructions are as follows.

$ git clone
$ cd local-paste
$ pipenv install
$ pipenv shell


$ python --port 8000

Using gunicorn

$ gunicorn wsgi:app -b --workers=2

using Docker

You can build the docker image.

# build the image
$ sudo docker-compose -f docker-compose.yml build
# run the docker container
$ sudo docker-compose -f docker-compose.yml up

Or you can pull the docker image from docker hub using

$ docker pull girish946/local-paste

Settingup the tables and testing

For initial setup (ie. creating tables), once localpaste is running.

$ cd tests
$ python

or go to from your browser.


  • Create, Update, Search and Delete the pastes.
  • Syntax heighlighting while viewing a paste.
  • Copy the paste to clipboard from the gui.
  • Can be hosted on a low power machine like (RaspberryPi/OrangePi).


Please take a look at Issues. For the TODO list.


Bugs and feature requests can be made via GitHub issues.

Pull requests are also welcome via git.

LocalPaste uses the Black python code formatter to keep coding style consistent; you may wish to have it installed to make pull requests easier.