skip to navigation
skip to content

jaraco.clipboard 1.3.1

Multi-format, cross-platform clipboard library

The only clipboard library for Python that supports text on all three major platforms plus HTML on MacOS and HTML and images on Windows.

Similar to pyperclip and clipboard and xerox except attempts to support more formats than just text.

This library is just a thin wrapper around the best platform implementations:

  • pyperclip for Linux
  • richxerox for MacOS
  • jaraco.windows for Windows

License

License is indicated in the project metadata (typically one or more of the Trove classifiers). For more details, see this explanation.

Usage

jaraco.clipboard supplies several functions in the clipboard module. The most common are the copy and paste functions:

from jaraco import clipboard
clipboard.copy('some text')
clipboard.paste() == 'some text'

Other functions include copy/paste html and image.

If not implemented on your platform, the functions will raise NotImplementedError.

 
File Type Py Version Uploaded on Size
jaraco.clipboard-1.3.1-py2.py3-none-any.whl (md5) Python Wheel py2.py3 2017-02-09 5KB
jaraco.clipboard-1.3.1.tar.gz (md5) Source 2017-02-09 5KB