Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/asweigart/pyperclip
Python module for cross-platform clipboard functions.
https://github.com/asweigart/pyperclip
Last synced: 5 days ago
JSON representation
Python module for cross-platform clipboard functions.
- Host: GitHub
- URL: https://github.com/asweigart/pyperclip
- Owner: asweigart
- License: bsd-3-clause
- Created: 2011-06-15T01:12:04.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2024-06-19T10:52:03.000Z (5 months ago)
- Last Synced: 2024-10-15T14:41:02.568Z (19 days ago)
- Language: Python
- Homepage: https://pypi.python.org/pypi/pyperclip
- Size: 236 KB
- Stars: 1,656
- Watchers: 34
- Forks: 196
- Open Issues: 119
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.txt
- License: LICENSE.txt
- Authors: AUTHORS.txt
Awesome Lists containing this project
- gitcat - pyperclip
- starred-awesome - pyperclip - Python module for cross-platform clipboard functions. (Python)
README
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`
Install on Linux/macOS: `pip3 install pyperclip`
Al Sweigart [email protected]
BSD LicenseExample Usage
=============>>> 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 qtpy or PyQT5 modules installed.
Support
-------If you find this project helpful and would like to support its development, [consider donating to its creator on Patreon](https://www.patreon.com/AlSweigart).