this lib check for your machine's platform and use system commands to contact with clipboard (copy or paste) in python
Project description
Py ClipBoard Manager
Features:
-
this lib check for your machine's platform and use system commands to contact with clipboard (copy or paste) in python
-
this script works with
linux(XORG or Wayland),WindowsandMacos -
I didn't test it on windows and macos
-
for linux users! you need to installNow! you do not need to do that. I did it for you by providing the requierd binaries from this packages.xclipif you use xorg orwl-clipboardif you use wayland from your package manager
How to install?
- you can clone the repo and import the script (pyclipmgr.py) to your script
git clone https://github.com/mohammed-saleh2007/py-clip-mgr
- you can also use pip Project In PyPi here to install it (recommended)
pip install pyclipmgr
How to use it?
- import the lib in your file
from pyclipmgr import pyclipmgr
- to copy some text
pyclipmgr.copy("Some Text")
- to paste from clipboard, this will return the clipboard content
pyclipmgr.paste()
- to print them in terminal
print(pyclipmgr.paste())
- you can use it in your (console/terminal)
Hope this script get the work done as it did with me
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyclipmgr-5.0.2.tar.gz.
File metadata
- Download URL: pyclipmgr-5.0.2.tar.gz
- Upload date:
- Size: 164.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ec514c196a24428cc9b8a6568297137569466e4304c0ad621e12ba540d14c66
|
|
| MD5 |
54f8f8a86e6bbbee38dc02896fe2fe70
|
|
| BLAKE2b-256 |
0b6708daaef4e8d47fce22252c2b387765f4db915a4622ff3287932c7b54acff
|
File details
Details for the file pyclipmgr-5.0.2-py3-none-any.whl.
File metadata
- Download URL: pyclipmgr-5.0.2-py3-none-any.whl
- Upload date:
- Size: 164.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2506aa05ea00bc199e1b4e0778898854024f68af54c18e771a8ca0ea91825f9e
|
|
| MD5 |
3fb793b8be54197eefdcaa74d2546562
|
|
| BLAKE2b-256 |
8cfb895073441258b05bc03cee71d1c6ea6571a188fc856ba3f077d925b4d85a
|