Multi-format, cross-platform clipboard library
Project description
jaraco.clipboard
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
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-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ab02e59e462f004e6754f5421c3d35cc00d1a3ccd29765f740624b7fa9647a4 |
|
MD5 | 5023bb2706692023e7f37575009f85f6 |
|
BLAKE2b-256 | e15af81c335101db94aca040741f8b8495ef751f9b1c33a1656fc20cb203a4ef |