clipboard

clipboard

class platypush.plugins.clipboard.ClipboardPlugin(*args, **kwargs)[source]

Plugin to programmatically copy strings to your system clipboard, monitor and get the current clipboard content.

Requires:
  • pyperclip (pip install pyperclip)

Triggers:

__init__(*args, **kwargs)[source]
Parameters:

poll_interval – How often the loop() function should be execute (default: None, no pause/interval).

copy(text)[source]

Copies a text to the OS clipboard

Parameters:

text (str) – Text to copy

paste()[source]

Get the current content of the clipboard