Metadata-Version: 2.1
Name: pinnwand
Version: 0.2.0
Summary: Straightforward pastebin software.
Home-page: https://github.com/supakeen/pinnwand
License: MIT
Keywords: pastebin
Author: supakeen
Author-email: cmdr@supakeen.com
Requires-Python: >=3.6,<4
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Requires-Dist: click (>=7.0,<8.0)
Requires-Dist: pygments (>=2.4,<3.0)
Requires-Dist: sqlalchemy (>=1.3,<2.0)
Requires-Dist: tornado (>=6.0,<7.0)
Project-URL: Repository, https://github.com/supakeen/pinnwand
Description-Content-Type: text/x-rst

.. image:: https://travis-ci.org/supakeen/pinnwand.svg?branch=master
    :target: https://travis-ci.org/supakeen/pinnwand

.. image:: https://readthedocs.org/projects/pinnwand/badge/?version=latest
    :target: https://pinnwand.readthedocs.io/en/latest/

.. image:: https://pinnwand.readthedocs.io/en/latest/_static/license.svg
    :target: https://github.com/supakeen/pinnwand/blob/master/LICENSE

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
    :target: https://github.com/ambv/black


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.

.. _project page: https://github.com/supakeen/pinnwand

