python windows clip tools(calling native windows command
Project description
PyXhWinClipTool
Installation
pip install pyXhWinClipTool -U
# Or
pip3 install pyXhWinClipTool -U
Demo
# Help
python -m pyXhWinClipTool --help
# Copy to clipboard
echo "msg" | python -m pyXhWinClipTool --copy
# Or
echo "msg" | python -m pyXhWinClipTool -c
# Retrieve data from clipboard
python -m pyXhWinClipTool --paste
# Or
python -m pyXhWinClipTool -p
Source Description
The pyXhWinClipTool is simple. It is just a wrapper to windows existing command for operate with clipboard.
Copy
In windows, we could use command 'clip' to copy text to clipboard. e.g.
echo "hihi" | clip
Paste
In windows, we could use command 'powershell' to retrieve text from clipboard. e.g.
powershell get-clipboard
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
pyXhWinClipTool-0.0.2.tar.gz
(1.6 kB
view hashes)
Built Distribution
Close
Hashes for pyXhWinClipTool-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a08880a713d146eac070292c48dde7994dda74c69cd4ecd2e86cf83bfd12f8a6 |
|
MD5 | cf49dfa3205f78c8596fedc32cacc935 |
|
BLAKE2b-256 | 8af9e70ccd97a5bafca503c0992cd58eb1174d9f4c6e9212f2558fc0cad806c4 |