Skip to main content

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

Project description

>>> import 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 PyQt4 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-1.5.4.zip (13.0 kB view details)

Uploaded Source

File details

Details for the file pyperclip-1.5.4.zip.

File metadata

  • Download URL: pyperclip-1.5.4.zip
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyperclip-1.5.4.zip
Algorithm Hash digest
SHA256 0d98976cc0b8db8a8bd77ea3754351f0629eac01774859b0ce425ed935e03db9
MD5 48a02fc567b7df9dda6f76dfc7170ea0
BLAKE2b-256 406a9e245033cadef051f965ad43bd3c482ed3aeaf1ea091ecbb1e05d9f69652

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