Skip to main content

Platform independent copy + paste library for Python

Project description

Platform independent copy + paste library for Python This library is easier and more powerful than xerox, I think :).

Supported:

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.

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
copypaste-0.2.zip (7.6 kB) Copy SHA256 hash SHA256 Source None Feb 6, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page