clipboardy
Access the system clipboard (copy/paste)
...It provides asynchronous clipboard operations as well as synchronous methods where the platform supports them. Text copying and pasting works across macOS, Windows, Linux, OpenBSD, FreeBSD, Android through Termux, and modern browsers. Browser usage relies on the standard Clipboard API and therefore requires a secure context such as HTTPS. On macOS, the package also supports copying multiple image files, reading clipboard images into temporary files, and checking whether image data is present. Linux environments require an active X11 or Wayland display server rather than a headless session. ...