Skip to main content

Pipe stdin to a raw pastebin

Project description

Pipe stdin directly to a raw pastebin. Get a URL back. Go be productive.

Installation

From PyPi:

$ pip install pasteraw

Command line usage

Given a file:

$ cat somefile
Lorem ipsum.

Pipe the file to pasteraw and get back a URL to a raw paste of that file:

$ cat somefile | pasteraw
http://cdn.pasteraw.com/9lvwkwgrgji5gbhjygxgaqcfx3hefpb

Do whatever you want with the URL. For example, open it in your web browser:

$ open $(!!)

Python library usage

To use pasteraw.com:

>>> c = pasteraw.Client()
>>> url = c.create_paste('Lorem ipsum.')
>>> print(url)
http://cdn.pasteraw.com/9lvwkwgrgji5gbhjygxgaqcfx3hefpb

If you’re using your own deployment of pasteraw, pass your own API endpoint to the client:

>>> c = pasteraw.Client('http://pasteraw.example.com/api/v1')

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

pasteraw-1.1.0.tar.gz (6.4 kB view details)

Uploaded Source

File details

Details for the file pasteraw-1.1.0.tar.gz.

File metadata

  • Download URL: pasteraw-1.1.0.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pasteraw-1.1.0.tar.gz
Algorithm Hash digest
SHA256 a3485d14eb3ba089d7bfc09d1a3a45637f6c605af299e9c3a90ece5eddbdb778
MD5 3520697a800dcda5b8090324bb5811e2
BLAKE2b-256 f8b2d0ce07e0fdef2ff2679943384836d03a6694fb51dd4bc3def3321267d4ab

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