Straightforward pastebin software.
Project description
pinnwand
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pinnwand-1.1.0.tar.gz
.
File metadata
- Download URL: pinnwand-1.1.0.tar.gz
- Upload date:
- Size: 39.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.7.5 Linux/4.15.0-99-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad7f45ebe2fcecfe3357071594d8b11fea89df3141b64e1aea50fda46a5bae48 |
|
MD5 | 4790d916d99cee5ae295f9036361681f |
|
BLAKE2b-256 | fdfa9561d48b041ceaf9da4757e38b0a5ed7ab33d075ff9724f56ea1ca75a86e |
File details
Details for the file pinnwand-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: pinnwand-1.1.0-py3-none-any.whl
- Upload date:
- Size: 42.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.7.5 Linux/4.15.0-99-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ca36c80e394ca9e632f1bc7a298bd4ef05159293510e4131cd1f3fa8aa436c9 |
|
MD5 | 0994f18fd3fc30bfd81eb4e49772332e |
|
BLAKE2b-256 | 899a5800e22adf84b477d4555d190465c0de89d4e740e9f728dc32c11548bd86 |