All Projects → supakeen → pinnwand

supakeen / pinnwand

Licence: MIT license
A Python pastebin that tries to keep it simple.

Programming Languages

python
139335 projects - #7 most used programming language
CSS
56736 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to pinnwand

local-paste
Lightweight pastebin for home network which may or may not be connected to the internet.
Stars: ✭ 24 (-73.63%)
Mutual labels:  pastebin
pastebin-php
a simple pastebin implement in php
Stars: ✭ 25 (-72.53%)
Mutual labels:  pastebin
paperplanes.nvim
Neovim ✈️ Pastebins
Stars: ✭ 50 (-45.05%)
Mutual labels:  pastebin
CryptDown
client-side AES-encrypted Markdown pastebin clone
Stars: ✭ 47 (-48.35%)
Mutual labels:  pastebin
jot
📝 A server-less pastebin app for short messages. Data is stored within the URL.
Stars: ✭ 33 (-63.74%)
Mutual labels:  pastebin
pste
Just a simple file hosting application inspired by the likes of pomf.se and teknik.io.
Stars: ✭ 22 (-75.82%)
Mutual labels:  pastebin
PasteBinApp
iOS app for PasteBin
Stars: ✭ 27 (-70.33%)
Mutual labels:  pastebin
pastey
A lightweight, self-hosted paste platform
Stars: ✭ 65 (-28.57%)
Mutual labels:  pastebin
mathb
MathB.in - Mathematics Pastebin Written in Common Lisp
Stars: ✭ 203 (+123.08%)
Mutual labels:  pastebin
imperial
Official mono-repo for https://imperialb.in/
Stars: ✭ 35 (-61.54%)
Mutual labels:  pastebin
omnibin
Android client for different bins like dogbin. Previous dogbin mobile.
Stars: ✭ 19 (-79.12%)
Mutual labels:  pastebin
paste
paste is a simple web app for writing & sharing code.
Stars: ✭ 62 (-31.87%)
Mutual labels:  pastebin
Snippet-Share
This is a snippet sharing app that can be used to share snippets of code and more.
Stars: ✭ 41 (-54.95%)
Mutual labels:  pastebin
pastebin-api
A very simple pastebin npm package to interact with the pastebin api!
Stars: ✭ 20 (-78.02%)
Mutual labels:  pastebin
BLUELAY
Searches online paste sites for certain search terms which can indicate a possible data breach.
Stars: ✭ 24 (-73.63%)
Mutual labels:  pastebin
pastelyst
A Web Paste Tool built with Cutelyst and KDE Frameworks
Stars: ✭ 19 (-79.12%)
Mutual labels:  pastebin
EdPaste
Laravel/PHP-driven Pastebin with users management
Stars: ✭ 34 (-62.64%)
Mutual labels:  pastebin
pbwrap
Pastebin API wrapper for Python
Stars: ✭ 19 (-79.12%)
Mutual labels:  pastebin
ctrl-v
📋 a modern, open-source pastebin with latex and markdown rendering support
Stars: ✭ 93 (+2.2%)
Mutual labels:  pastebin
PastaBean
Python Script to Scrape Pastebin with Regex
Stars: ✭ 0 (-100%)
Mutual labels:  pastebin

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://img.shields.io/pypi/v/pinnwand

About

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

Prerequisites

  • Python >= 3.7
  • Tornado
  • sqlalchemy
  • click
  • docutils
  • tomli
  • 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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].