skip to navigation
skip to content

Not Logged In

pyperclip 1.5.1

Pyperclip is a cross-platform Python module for copy and paste clipboard functions. It works with Python 2 and 3.

Latest Version: 1.5.11

Pyperclip is a cross-platform Python module for copy and paste clipboard functions. It works with Python 2 and 3.

Al Sweigart al@inventwithpython.com
BSD License

Example Usage
=============

>>> import pyperclip
>>> pyperclip.copy('The text to be copied to the clipboard.')
>>> pyperclip.paste()
'The text to be copied to the clipboard.'


Currently only handles plaintext.

On Windows, no additional modules are needed.
On Mac, this module makes use of the pbcopy and pbpaste commands, which should come with the os.
On Linux, this module makes use of the xclip or xsel commands, which should come with the os. Otherwise run "sudo apt-get install xclip" or "sudo apt-get install xsel"
Otherwise on Linux, you will need the gtk or PyQt4 modules installed.  
File Type Py Version Uploaded on Size
pyperclip-1.5.1.zip (md5) Source 2014-08-16 13KB
  • Downloads (All Versions):
  • 660 downloads in the last day
  • 5210 downloads in the last week
  • 16909 downloads in the last month