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/travis/jaraco/jaraco.clipboard/master.svg https://img.shields.io/appveyor/ci/jaraco/jaraco-clipboard/master.svg https://readthedocs.org/projects/jaracoclipboard/badge/?version=latest

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


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-2.0.tar.gz (10.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-2.0-py2.py3-none-any.whl (4.5 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: jaraco.clipboard-2.0.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for jaraco.clipboard-2.0.tar.gz
Algorithm Hash digest
SHA256 825eca95d754bd60392af95af6bed90c38e6f4c848ea21197536eed89a6427c1
MD5 208196e63808da434ea85766705d21d7
BLAKE2b-256 49f19b132ac17999694ade5684ee98b67d6f536cdb5a529f3b2ca28f5da9da33

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jaraco.clipboard-2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for jaraco.clipboard-2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b55159737f974b45510f51aea04c507cdf7a383152b0d69310540412a0a4c228
MD5 9826180c5d587ed6c8fb3de73b5bf037
BLAKE2b-256 666e9b97a643f7d74601dcb48cacc424e73e0f077cef30a5d9bb4546b2854480

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