Skip to content
Pipe stdin to a raw pasted post.
Branch: master
Clone or download
Pull request Compare This branch is 5 commits ahead of dolph:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.



Pipe STDIN or upload files to a raw paste. Get a URL back. Go be productive.

By default, pasted uses a hosted paste service, You can also deploy your own instance of the service and use it instead.


From PyPi:

$ pip install pasted-client

Command line usage

Given a file:

$ cat somefile
Lorem ipsum.

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

$ cat somefile | pasted

Do whatever you want with the URL. Curl it, email it, whatever:

$ curl
Lorem ipsum.

You can also paste multiple files without a pipe:

$ pasted /path/to/file1 /path/to/file2 /path/to/file3

Python library usage

To use

>>> c = pasted.Client()
>>> url = c.create_paste('Lorem ipsum.')
>>> print(url)

Alternatively, if you're using your own deployment of pasteraw, pass your own API endpoint to the client:

>>> c = pasteraw.Client('')

Usage is otherwise identical to using

You can’t perform that action at this time.