SkillAgentSearch skills...

Pyperclip

improved fork of coffeeghost's `pyperclip` module

Install / Use

/learn @timbertson/Pyperclip
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

pyperclip

.. image:: http://gfxmonk.net/dist/status/project/pyperclip.png

This is a cross-platform clipboard module for Python

I got tired of not having a good cross-platform module for accessing the clipboard in Python, so I put this together. It is a module that loads copy() and paste() functions depending on what your operating system (or window manager) is.

It has the following requirements:

  • The Python which module (for finding commands on the path)
  • ''Windows'' - No additional requirements. You don’t need the win32 module installed; this uses ctypes to load built-in Windows DLLs.
  • ''Mac'' - Requires the pbcopy and pbpaste commands, which come with OS X.
  • ''Linux'' - Requires the xclip command, which possibly comes with the OS. If not, run sudo apt-get install xclip. Or have the gtk or PyQt4 modules installed.
  • Pyperclip runs on both Python 2 and Python 3.

Usage is simple::

import pyperclip pyperclip.copy('The text to be copied to the clipboard.') spam = pyperclip.paste()

View on GitHub
GitHub Stars9
CategoryDevelopment
Updated2y ago
Forks3

Languages

Python

Security Score

55/100

Audited on Jun 20, 2023

No findings