A cross-platform clipboard module for Python. (Only handles plain text for now.)
Project description
Pyperclipfix is is a cross-platform Python 3 module for copy and paste clipboard functions. It’s just a fork of [pyperclip](https://github.com/asweigart/pyperclip) with several merged pull requests and some minor bugfixes/leftover code removals (including the Python 2 support, which was already broken in the official version).
Install on Windows: pip install pyperclipfix
Install on Linux/macOS: pip3 install pyperclipfix
Al Sweigart al@inventwithpython.com BSD License
Example Usage
>>> import pyperclipfix >>> pyperclipfix.copy('The text to be copied to the clipboard.') >>> pyperclipfix.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 pyobjc module (if installed) or on the pbcopy and pbpaste commands, which should come with the os.
On Linux, on X11 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.) On Wayland it makes use of wl-copy and wl-paste (which can be installed with “sudo apt-get install wl-clipboard”), or also gpaste on GNOME (preferred, can be installed with “sudo apt-get install gpaste”). Otherwise on Linux, you will need the qtpy or PyQT5 modules installed.
Support
If you find this project helpful and would like to support its development, [consider donating to the original creator on Patreon](https://www.patreon.com/AlSweigart).
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
Built Distribution
File details
Details for the file pyperclipfix-1.9.2.tar.gz
.
File metadata
- Download URL: pyperclipfix-1.9.2.tar.gz
- Upload date:
- Size: 21.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5e52a037403b1edc79cd13a8560d05cba63f826a63341899813505e2ec279ff |
|
MD5 | 040fa229c6a7ee2c0bd61ac4791208c2 |
|
BLAKE2b-256 | c8b72f08cba561b8442cc780f4fa9679dbfd53d7acafc322259bc7789aef0d51 |
File details
Details for the file pyperclipfix-1.9.2-py3-none-any.whl
.
File metadata
- Download URL: pyperclipfix-1.9.2-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6de8b24b65aa8d64f709dca5a9c968f0bc95cb03ec5cf975161b31356efc6799 |
|
MD5 | 3b854c7cb9f52161f2216e5f9fa88dbe |
|
BLAKE2b-256 | 3a121c84ea56c7789568506911a70838ce6d8ef47429767c67f554fd80bc0ce1 |