>>> import pyperclip >>> >>> pyperclip.copy('This is copied to the clipboard.') >>> >>> pyperclip.paste() 'This is copied to the clipboard.' >>>