Pyperclip is a cross-platform Python module for copy and paste clipboard functions. It works with both Python 2 and 3. This module was created to enable cross-platform copy-pasting in Python which was earlier absent. The
pyperclip module has
paste() functions that can send text to and receive text from your computer’s clipboard. Sending the output of your program to the clipboard will make it easy to paste it on an email, word processor, or some other software.
pip install pyperclip
To copy text to the clipboard, pass a string to
pyperclip.copy(). To paste the text from the clipboard, call
pyperclip.paste() and the text will be returned as a string value.
Note : Copy function will convert every data type to string.
- Remember and copy passwords to clipboard using Pyperclip module in Python
- Python - Convert simple lines to bulleted lines using the Pyperclip module
- pwd module in Python
- grp module in Python
- MySQL-Connector-Python module in Python
- Import module in Python
- PyDictionary module in Python
- OS Module in Python with Examples
- Touch module in Python
- spwd module in Python
- AppJar module in Python
- Python Urllib Module
- Python-interface module
- Cmdparse module in Python
- Zulu module in Python
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.