This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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')
Release History

Release History

This version
History Node

1.1.0

History Node

1.0.4

History Node

1.0.3

History Node

1.0.2

History Node

1.0.1

History Node

1.0.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pasteraw-1.1.0.tar.gz (6.4 kB) Copy SHA256 Checksum SHA256 Source Feb 12, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting