See Pyperclip. Example (taken from Pyperclip site):
import pyperclip
pyperclip.copy('The text to be copied to the clipboard.')
spam = pyperclip.paste()
Also, see Xerox. But it appears to have more dependencies.
More Related Contents:
- How do I copy a string to the clipboard?
- How do I read text from the clipboard?
- How to copy/paste DataFrame from Stack Overflow into Python
- Copying MultiIndex dataframes with pd.read_clipboard?
- Copy pandas dataframe to excel using openpyxl
- How can I disable clear of clipboard on exit of PyQt application?
- How do I read text from the Windows clipboard in Python?
- Trigger an event when clipboard content changes
- Can we Write For loop as a function?
- Web Scraping particular tags using Python [closed]
- Plot a function in python
- Fast Haversine Approximation (Python/Pandas)
- How to get the original variable name of variable passed to a function
- Why doesn’t this division work in Python? [duplicate]
- How to Center Text in Pygame
- Convert image from PIL to openCV format
- Add an image in a specific position in the document (.docx)?
- How to configure Atom to run Python3 scripts?
- Extending setuptools extension to use CMake in setup.py?
- Detect tap with pyaudio from live mic
- NLTK Named Entity recognition to a Python list
- Rotating strings in Python
- Python testing whether a string is one of a certain set of values [duplicate]
- Reading files in a particular order in python
- What’s the difference between plus and append in python for list manipulation? [duplicate]
- Python CSV: Remove quotes from value
- Ideal method for sending multiple HTTP requests over Python? [duplicate]
- Assignment Condition in Python While Loop
- Discrete legend in seaborn heatmap plot
- Accessing attribute from parent class inside child class