Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

winclip32-0.5.3.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

winclip32-0.5.3-py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page