Platform independent copy + paste library for Python This library is easier and more powerful than xerox, I think :).
Supported:
OS X (pbcopy + pbpaste)
Linux (required xclip)
Windows (required pywin32 or IronPython)
Install
pip install copypaste
Usage
>>> from copypaste import copy, paste
>>>
>>> copy('I\'m here to make web a better place!!')
>>> paste()
"I'm here to make web a better place!!"
>>>
>>> # Only for UNIX like systems you can specify your own command for copy and paste
>>> copy('I\'m here to make web a better place!!', cmd=['xsel', '-pi'])
>>> paste(cmd=['xsel', '-o'])
"I'm here to make web a better place!!"
>>>
Command line usage
% copy "I'm here to make web a better place!!" % paste I'm here to make web a better place!! % % echo I\'m here to make web a better place!! | copy % paste I'm here to make web a better place!! %
License
copypaste is licensed under the MIT license. See the license file for details.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
copypaste-0.2.zip
(7.6 kB
view details)
File details
Details for the file copypaste-0.2.zip.
File metadata
- Download URL: copypaste-0.2.zip
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b145b709eabbc63a7156105a23df287a249327c521e44ec237721e90f21ab886
|
|
| MD5 |
49bc226bc3f5200f43e6609a41087bd4
|
|
| BLAKE2b-256 |
1ce8fa2fa07ccc1f8be6f7dd4d70bc908db1b9e78a19501b327693c6c0aba9f9
|