Skip to main content
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.

Metadata

Release files for pinnwand 1.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pinnwand 1.2.3
File Size Uploaded Provenance Actions
pinnwand-1.2.3.tar.gz 40.9 kB Without provenance Details for pinnwand-1.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pinnwand 1.2.3
File Interpreter ABI Platform Actions
pinnwand-1.2.3-py3-none-any.whl Python 3 none any Details for pinnwand-1.2.3-py3-none-any.whl

Total release size: 85.2 kB

Release files / pinnwand-1.2.3.tar.gz

Download URL pinnwand-1.2.3.tar.gz
Size 40.9 kB
Tags Source
SHA-256 checksum
How to use checksums
63bcd7df0771cd4a14bbe1ebd1b72266a3e54bf8f63fafe1c4a3d837504ebd31
BLAKE2b-256 checksum
How to use checksums
c3473e95df0be3830a4ca82aae60622d524dcf33544dd77cc9c01da3d7b1db12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.8.5 Linux/5.4.0-58-generic

Release files / pinnwand-1.2.3-py3-none-any.whl

Download URL pinnwand-1.2.3-py3-none-any.whl
Size 44.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3f81146836d66b4f5860727a630b28d424885216595540e63a6b6c258b1afce6
BLAKE2b-256 checksum
How to use checksums
2a06937f3712e3ab5254c7117cf22f5c5351536849324c2efcb0d6c6b1375b07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.8.5 Linux/5.4.0-58-generic

Security for pinnwand 1.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page