Multi-format, cross-platform clipboard library
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for jaraco.clipboard-1.3.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da0714692a9b4f4534e6cf4ffe35fa478eb8b0da9c8b9102b3c4a473a1d4ae99 |
|
MD5 | be14101fdca70505167652288b7ce660 |
|
BLAKE2b-256 | 851a5606041752517dc78e10a622dd4444e4b85a0d53376017acbd689f87abb3 |