Skip to main content

A cross-platform clipboard module for Python without PyQt. (Only handles plain text for now.)

Project description

Pyperclip is a cross-platform Python module for copy and paste clipboard functions. It works with Python 2 and 3.

Install on Windows: pip install pyperclip_pyside

Install on Linux/macOS: pip3 install pyperclip_pyside

Jiri Otoupal jiri.otoupal@uptim.ai

BSD License

Example Usage

>>> import pyperclip_pyside as pyperclip
>>> pyperclip.copy('The text to be copied to the clipboard.')
>>> pyperclip.paste()
'The text to be copied to the clipboard.'

Currently only handles plaintext.

On Windows, no additional modules are needed.

On Mac, this module makes use of the pbcopy and pbpaste commands, which should come with the os.

On Linux, this module makes use of the xclip or xsel commands, which should come with the os. Otherwise run “sudo apt-get install xclip” or “sudo apt-get install xsel” (Note: xsel does not always seem to work.)

Otherwise on Linux, you will need the gtk or PySide2 modules installed.

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

pyperclip_pyside-1.8.2.tar.gz (20.9 kB view hashes)

Uploaded Source

Built Distributions

pyperclip_pyside-1.8.2-py3.9.egg (18.8 kB view hashes)

Uploaded Source

pyperclip_pyside-1.8.2-py3-none-any.whl (11.3 kB view hashes)

Uploaded Python 3

pyperclip_pyside-1.8.2-py2.py3-none-any.whl (11.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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