Skip to content
The software for the bpaste.net website (2011)
Branch: master
Clone or download
supakeen Merge pull request #9 from kapsh/descriptions
Add description field into API and web interface
Latest commit bade152 Jul 9, 2019

README.rst

https://travis-ci.org/supakeen/pinnwand.svg?branch=master https://readthedocs.org/projects/pinwnand/badge/?version=latest

pinnwand

pinnwand is Python pastebin software.

Prerequisites

  • Python >= 3.6
  • Tornado
  • sqlalchemy
  • click
  • a database driver

Usage

Enter text, click "Paste". Easy enough.

Using API is slightly more difficult but certainly recommended for programmatic usage. pinnwand accepts HTTP POST requests to /json/new with following body:

{
    "code": "text to send",
    "lexer": "text",
    "expiry": "1day",
    "filename": "source.txt"
}

filename is optional here.

API will return JSON response with full URL for convenience and paste_id, removal_id keys. Use first one to query existing records by GET request to /json/show/paste_id.

To remove existing paste send POST request to /json/remove with data

{"removal_id": <removal_id>}

Reporting bugs

Bugs are reported best at pinnwand's project page on github.

License

pinnwand is distributed under a 3-clause BSD-style license. See LICENSE for details.

You can’t perform that action at this time.