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


Release history Release notifications

History Node

1.6.1

History Node

1.6.0

History Node

1.5.32

History Node

1.5.31

History Node

1.5.30

History Node

1.5.29

History Node

1.5.28

History Node

1.5.27

History Node

1.5.26

History Node

1.5.25

History Node

1.5.24

History Node

1.5.23

History Node

1.5.22

History Node

1.5.21

History Node

1.5.20

History Node

1.5.19

History Node

1.5.18

History Node

1.5.17

History Node

1.5.16

History Node

1.5.15

History Node

1.5.14

History Node

1.5.13

History Node

1.5.12

History Node

1.5.11

History Node

1.5.10

History Node

1.5.9

History Node

1.5.8

History Node

1.5.7

History Node

1.5.6

History Node

1.5.5

This version
History Node

1.5.4

History Node

1.5.3

History Node

1.5.2

History Node

1.5.1

History Node

1.5.0

History Node

1.3

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pyperclip-1.5.4.zip (13.0 kB) Copy SHA256 hash SHA256 Source None Sep 10, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page