Skip to main content

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

Project description

This is a slightly modified version of pyperclip 1.8.3 fixing an attribution error, renamed to pyp3rclip as this may break python 2 compatibility.

The description below is from the original pyperclip repository: https://github.com/asweigart/pyperclip

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

Install on Windows: pip install pyp3rclip

Install on Linux/macOS: pip3 install pyp3rclip

Al Sweigart al@inventwithpython.com BSD License

Example Usage

>>> import pyp3rclip
>>> pyp3rclip.copy('The text to be copied to the clipboard.')
>>> pyp3rclip.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

pyp3rclip-1.8.0.tar.gz (21.1 kB view details)

Uploaded Source

Built Distribution

pyp3rclip-1.8.0-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file pyp3rclip-1.8.0.tar.gz.

File metadata

  • Download URL: pyp3rclip-1.8.0.tar.gz
  • Upload date:
  • Size: 21.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.5

File hashes

Hashes for pyp3rclip-1.8.0.tar.gz
Algorithm Hash digest
SHA256 593bcc6c401376551813292b4fb1a145ed33704dc1f29714cc7ea1e0cdf667d7
MD5 9f285ca5ad758cd6f10e682dae93a762
BLAKE2b-256 ad242827233e9f51b9713ab267c9d0907268e9cce8b8256d014655a71feefc09

See more details on using hashes here.

File details

Details for the file pyp3rclip-1.8.0-py3-none-any.whl.

File metadata

  • Download URL: pyp3rclip-1.8.0-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.5

File hashes

Hashes for pyp3rclip-1.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 33fadf8c19c586f046a9a5d1635822ca6caa49dfdbaed3542e5d5c8121f97a79
MD5 b1681be4bd381ee6faec40e3d824f50e
BLAKE2b-256 e2baf4dbbf264ea48011fce1f83e22600bd62b60f482ca2445829235cb21c827

See more details on using hashes here.

Supported by

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