I'm doing a tool to store clipboard texts in a list and is there a way in Python to check the data in the clipboard if it is a text or file across multiple platforms. Currently, I'm using pyperclip.copy()
which gives me the clipboard data but if a file is copied it returns me the name of the file like sample file.py
. Is there a way to check only if the clipboard is text?
Asked
Active
Viewed 179 times
1

Prabu_7
- 21
- 2
-
I assume you checked the readme https://github.com/asweigart/pyperclip So you should know that pyperclip “Currently only handles plaintext.” Your options are quite limited. – DisappointedByUnaccountableMod Dec 26 '20 at 17:42
-
do you have any other module suggestion that can find in my specs? @barny – Prabu_7 Dec 26 '20 at 18:41
-
Asking for library recommendations is off-topic on StackOverflow – DisappointedByUnaccountableMod Dec 26 '20 at 19:42