timbertson / pyperclip

improved fork of coffeeghost's `pyperclip` module
http://coffeeghost.net/2010/10/09/pyperclip-a-cross-platform-clipboard-module-for-python/comment-page-1/
9 stars 3 forks source link

pyperclip

.. image:: http://gfxmonk.net/dist/status/project/pyperclip.png

This is a cross-platform clipboard module for Python

I got tired of not having a good cross-platform module for accessing the clipboard in Python, so I put this together. It is a module that loads copy() and paste() functions depending on what your operating system (or window manager) is.

It has the following requirements:

Usage is simple::

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