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
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-2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b55159737f974b45510f51aea04c507cdf7a383152b0d69310540412a0a4c228 |
|
MD5 | 9826180c5d587ed6c8fb3de73b5bf037 |
|
BLAKE2b-256 | 666e9b97a643f7d74601dcb48cacc424e73e0f077cef30a5d9bb4546b2854480 |