Skip to main content

Multi-format, cross-platform clipboard library

Project description

https://img.shields.io/pypi/v/jaraco.clipboard.svg https://img.shields.io/pypi/pyversions/jaraco.clipboard.svg https://img.shields.io/pypi/dm/jaraco.clipboard.svg https://img.shields.io/travis/jaraco/jaraco.clipboard/master.svg

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jaraco.clipboard-1.3.1.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jaraco.clipboard-1.3.1-py2.py3-none-any.whl (5.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file jaraco.clipboard-1.3.1.tar.gz.

File metadata

File hashes

Hashes for jaraco.clipboard-1.3.1.tar.gz
Algorithm Hash digest
SHA256 18c0e43d13629f932e5a4f4d167df23d35749a0988cf11b59f42c5619d163078
MD5 dab0bf6eb58c27a28caf8d4fcbb5d59c
BLAKE2b-256 647c2a22157434d43acbb47b645e623968005345248019223ecadeeed14132b6

See more details on using hashes here.

File details

Details for the file jaraco.clipboard-1.3.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for jaraco.clipboard-1.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 da0714692a9b4f4534e6cf4ffe35fa478eb8b0da9c8b9102b3c4a473a1d4ae99
MD5 be14101fdca70505167652288b7ce660
BLAKE2b-256 851a5606041752517dc78e10a622dd4444e4b85a0d53376017acbd689f87abb3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page