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
File details
Details for the file jaraco.clipboard-3.1.0.tar.gz
.
File metadata
- Download URL: jaraco.clipboard-3.1.0.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf95d054aa1285b1c568dbc4209c9625d0b18d851a2b7cbf739ca9a7ed1d0f22 |
|
MD5 | 0f45ac281b27e19c1bd7e2e83b62c28a |
|
BLAKE2b-256 | 15b53f9bf4bf1323b3b1e69585f2bae2d5de4a41fd997f53af846a9b0f70efc4 |
File details
Details for the file jaraco.clipboard-3.1.0-py3-none-any.whl
.
File metadata
- Download URL: jaraco.clipboard-3.1.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b1aa9196457714f98d1a83471223001b002d3ad75195e6f8b3cc441ca9a4ff6 |
|
MD5 | fe20d2f51f6b8129baa836c3ced04d96 |
|
BLAKE2b-256 | bf57653669bf031257be2e9cdc10271bb8c4ab7c54d9e49302c5a899905c0864 |