Skip to main content

Straightforward pastebin software.

Project description

https://pinnwand.readthedocs.io/en/latest/_static/logo-readme.png

pinnwand

https://travis-ci.org/supakeen/pinnwand.svg?branch=master https://readthedocs.org/projects/pinnwand/badge/?version=latest https://pinnwand.readthedocs.io/en/latest/_static/license.svg https://img.shields.io/badge/code%20style-black-000000.svg https://img.shields.io/pypi/v/pinnwand https://codecov.io/gh/supakeen/pinnwand/branch/master/graph/badge.svg

About

pinnwand is Python pastebin software that tried to keep it simple but got a little more complex.

Prerequisites

  • Python >= 3.6

  • Tornado

  • sqlalchemy

  • click

  • docutils

  • toml

  • pygments-better-html

  • a database driver

Usage

Web

Enter text, click “Paste”, easy enough.

steck

steck is a command line client to pinnwand instances:

€ pip install --user steck
...
€ steck paste *
You are about to paste the following 7 files. Do you want to continue?
 - LICENSE
 - mypy.ini
 - poetry.lock
 - pyproject.toml
 - README.rst
 - requirements.txt
 - steck.py

Continue? [y/N] y

Completed paste.
View link:    https://localhost:8000/W5
Removal link: https://localhost:8000/remove/TS2AFFIEHEWUBUV5HLKNAUZFEI

curl

pinnwand has a direct endpoint for curl users:

€ echo "foo" | curl -X POST http://localhost:8000/curl -F 'raw=<-'
Paste URL:   http://localhost:8000/OE
Raw URL:     http://localhost:8000/raw/GU
Removal URL: http://localhost:8000/remove/GQBHGJYKRWIS34D6FNU6CJ3B5M
€ curl http://localhost:8000/raw/GU
foo%

This will preselect the lexer and expiry arguments to be text and 1day respectively. You can provide those to change them.

API

pinnwand provides a straight forward JSON API, here’s an example using the common requests library:

>>> requests.post(
...     "http://localhost:8000/api/v1/paste",
...     json={
...             "expiry": "1day",
...             "files": [
...                     {"name": "spam", "lexer": "python", "content": "eggs"},
...             ],
...     }
... ).json()
{'link': 'http://localhost:8000/74', 'removal': 'http://localhost:8000/remove/KYXQLPZQEWV2L4YZM7NYGTR7TY'}

More information about this API is available in the documentation.

More ways to use pinnwand

Various deprecated ways of posting are still supported, don’t implement these for any new software but if you are maintaining old software and want to know how they used to work you can read our documentation.

If you do use a deprecated endpoint to post a warning will be shown below any pastes that are created this way.

Reporting bugs

Bugs are reported best at pinnwand’s project page on github. If you just want to hang out and chat about pinnwand then I’m available in the #pinnwand channel on Freenode IRC.

License

pinnwand is distributed under the MIT license. See LICENSE for details.

History

This pastebin has quite a long history which isn’t reflected entirely in its repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pinnwand-1.3.2.tar.gz (44.1 kB view details)

Uploaded Source

Built Distribution

pinnwand-1.3.2-py3-none-any.whl (48.3 kB view details)

Uploaded Python 3

File details

Details for the file pinnwand-1.3.2.tar.gz.

File metadata

  • Download URL: pinnwand-1.3.2.tar.gz
  • Upload date:
  • Size: 44.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for pinnwand-1.3.2.tar.gz
Algorithm Hash digest
SHA256 c1b72c1528f110b7c424b38f24d6e50fe3087cc00cb34745e30d9e6498bb4ae8
MD5 0a1fd61e91832fb3af91388f1347a20b
BLAKE2b-256 3e8a66ab8639685a0f50c71f85bd0d3c0cb2848aaada41794a79b8b69638ff57

See more details on using hashes here.

File details

Details for the file pinnwand-1.3.2-py3-none-any.whl.

File metadata

  • Download URL: pinnwand-1.3.2-py3-none-any.whl
  • Upload date:
  • Size: 48.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for pinnwand-1.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b6c37e7ddfe2631eacd3079486917834d7376827291512f71ff8c1e599bd1a99
MD5 8f5bf7e5031ee73a9132cbe956d984af
BLAKE2b-256 6a59731f6321885a778052011959c1e4af20db1ef9dd68f7123a017d8cfc6527

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page