Skip to main content

Pasted client. Paste files or STDIN to a raw object.

Project description

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

Project details

Download files

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

Files for pasted-client, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size pasted_client-0.1.1-py3-none-any.whl (8.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pasted-client-0.1.1.tar.gz (7.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page