pasted-client
Pipe STDIN or upload files to a raw paste. Get a URL back. Go be productive.
By default, pasted uses a hosted paste service, pasted.tech. You can also deploy your own instance of the service and use it instead.
Installation
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 http://pasted.com/89001a7fbbe57e6921a91b2ba166fa98e1579cd2.raw
Do whatever you want with the URL. Curl it, email it, whatever:
$ curl http://pasted.tech/89001a7fbbe57e6921a91b2ba166fa98e1579cd2.raw Lorem ipsum.
You can also paste multiple files without a pipe:
$ pasted /path/to/file1 /path/to/file2 /path/to/file3 https://pasted.tech/pastes/294b43b2cec9919063be1a3b49e8722648424779.raw https://pasted.tech/pastes/3c56f1d7f112e09002627d24b82446431df5039a.raw https://pasted.tech/pastes/f9372ce11a7370c54135f3c708131de123caf90f.raw
Python library usage
To use pasted.tech:
>>> c = pasted.Client()
>>> url = c.create_paste('Lorem ipsum.')
>>> print(url)
http://pasted.tech/89001a7fbbe57e6921a91b2ba166fa98e1579cd2.raw
Alternatively, if you’re using your own deployment of pasteraw, pass your own API endpoint to the client:
>>> c = pasteraw.Client('http://pasted.example.com/api/pastes')
Usage is otherwise identical to using pasted.tech.
Metadata
Release files for pasted-client 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pasted-client-0.0.6.tar.gz | 6.0 kB | Without provenance | Details for pasted-client-0.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pasted_client-0.0.6-py3-none-any.whl | Python 3 | none | any | Details for pasted_client-0.0.6-py3-none-any.whl |
Total release size: 12.0 kB
Release files / pasted-client-0.0.6.tar.gz
| Download URL | pasted-client-0.0.6.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3424bdfeb2ea18a343c518908b15636bc86a3c290ca2f920b76a65789296fcd8
|
|
BLAKE2b-256 checksum How to use checksums |
397ad781ddb202234e5bc82bbd4e05c9fce6316199decec73358fd8a20612cd0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5
|
Release files / pasted_client-0.0.6-py3-none-any.whl
| Download URL | pasted_client-0.0.6-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cd72645c0ce8cf089794242145a660b5dc36525762dac848d249b7f0e7053367
|
|
BLAKE2b-256 checksum How to use checksums |
e05c67e497acdb64d5e63e3efcb35e473c0a659cc0fa93afa1b57f2f0ac57681
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5
|
Security for pasted-client 0.0.6
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.