You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

jaraco.clipboard

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jaraco.clipboard

Multi-format, cross-platform clipboard library


Maintainers
1

Readme

.. image:: https://img.shields.io/pypi/v/jaraco.clipboard.svg :target: PyPI link_

.. image:: https://img.shields.io/pypi/pyversions/jaraco.clipboard.svg :target: PyPI link_

.. _PyPI link: https://pypi.org/project/jaraco.clipboard

.. image:: https://github.com/jaraco/jaraco.clipboard/workflows/tests/badge.svg :target: https://github.com/jaraco/jaraco.clipboard/actions?query=workflow%3A%22tests%22 :alt: tests

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg :target: https://github.com/psf/black :alt: Code style: Black

.. image:: https://readthedocs.org/projects/jaracoclipboard/badge/?version=latest :target: https://jaracoclipboard.readthedocs.io/en/latest/?badge=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 <https://pypi.python.org/pypi/pyperclip/>_ and clipboard <https://pypi.python.org/pypi/clipboard/>_ and xerox <https://pypi.python.org/pypi/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:

.. code-block:: python

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.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc