This is a small library for windows OS to work with clipboard data storage
Project description
This is a small library for windows OS to work with clipboard data storage. winclip32 is based on pywin32 module.
Code Examples
Example 1
import winclip32
winclip32.set_clipboard_data("unicode_std_text", "Python is beautiful!!!")
print(winclip32.get_clipboard_data("unicode_std_text")) # >>> Python is beautiful!!!
Example 2
import winclip32
winclip32.set_clipboard_data("unicode_std_text", "Python is beautiful!!!")
print(winclip32.is_clipboard_data_type_available("bitmapinfo_std_structure")) # >>> False
print(winclip32.is_clipboard_data_type_available(13)) # >>> True
Example 3
import winclip32
winclip32.get_clipboard_data_types_info() # >>> ...
Functions
winclip32.get_clipboard_data_types_info() >> print all informations about winclip32 clipboard data types
winclip32.get_clipboard_data(type_key) >> type_key: str/int; return data or error if something went wrong
winclip32.set_clipboard_data(type_key, data) >> type_key: str/int; data: int/str/unicode/any object that supports the buffer interface; return data or error if something went wrong
winclip32.is_clipboard_data_type_available(type_key) >> type_key: str/int; return True if data type is available, False if not, and error if something went wrong
winclip32.count_clipboard_data_types() >> return the number of different data types currently on the clipboard.
winclip32.empty_clipboard() >> empty the clipboar
That's all
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for winclip32-0.5.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 359081b166bc092d93a5b8417f4e059b0710cbe64914a32f8ced366bd0ac6b80 |
|
MD5 | 1487d558c241542140845bf09aab5448 |
|
BLAKE2b-256 | c01ed8bfa129eca0c959c4506dc1ea19dca938234815054d5c5ea47016d44b25 |