Skip to content
Lightweight pastebin for home network which may or may not be connected to the internet.
JavaScript Python HTML Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
db issue regarding docker host port solved. directory for db created Nov 24, 2018
localpaste
tests
.gitignore
Dockerfile
LICENSE
Pipfile
Pipfile.lock
README.md
docker-compose.yml issue regarding docker host port solved. directory for db created Nov 24, 2018
local_paste.py now a text with spaces can be inserted into new paste Dec 10, 2018
lpcli.py
requirements.txt wsgi file added, the application can be executed using gunicorn Oct 8, 2018
startLp.py
wsgi.py

README.md

LocalPaste

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

Installation

$ git clone https://github.com/girish946/local-paste
$ cd local-paste
$ pip install -r requirements.txt

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

$ git clone https://github.com/girish946/local-paste
$ cd local-paste
$ pipenv install

Usage

$ python startLp.py --port 8000

Using gunicorn

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

using Docker

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

Settingup the tables and testing

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

$ cd tests
$ python testLP.py

or go to http://0.0.0.0:8000/api/CreateDb from your browser.

Features

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

TODO

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

Contributing.

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.

You can’t perform that action at this time.