copypaste-0.2
توضیحات
Platform independent copy + paste library for Python
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | copypaste-0.2 |
| نام | copypaste |
| نسخه کتابخانه | 0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Nikita Grishko |
| ایمیل نویسنده | grin.minsk@gmail.com |
| آدرس صفحه اصلی | http://gr1n.github.io/copypaste/ |
| آدرس اینترنتی | https://pypi.org/project/copypaste/ |
| مجوز | MIT |
copypaste
=========
Platform independent copy + paste library for Python
This library is easier and more powerful than `xerox <https://github.com/kennethreitz/xerox>`_, I think :).
Supported:
* OS X (pbcopy + pbpaste)
* Linux (required `xclip <http://sourceforge.net/projects/xclip/>`_)
* Windows (required `pywin32 <http://sourceforge.net/projects/pywin32/>`_ or `IronPython <http://ironpython.codeplex.com>`_)
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.
نحوه نصب
نصب پکیج whl copypaste-0.2:
pip install copypaste-0.2.whl
نصب پکیج tar.gz copypaste-0.2:
pip install copypaste-0.2.tar.gz