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), Windows and Macos -
I didn't test it on windows and macos
-
for linux users! you need to install
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 to install it (recommended)
pip install pyclipmgr
How to use it?
- import the lib in your file
import pyclipmgr
- to copy some text
pyclipmgr.copy("Some Text")
- to paste from clipboard, this will print clipboard content in terminal
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
pyclipmgr-3.0.0.tar.gz
(1.9 kB
view details)
File details
Details for the file pyclipmgr-3.0.0.tar.gz.
File metadata
- Download URL: pyclipmgr-3.0.0.tar.gz
- Upload date:
- Size: 1.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 |
c4533ea698c1395f7477ef2c2bd0d2d7c3a6275267a96969d3b63f65b069c85a
|
|
| MD5 |
677f2fbcfeca6e45ccb47491debf5c3e
|
|
| BLAKE2b-256 |
0b4553971441e2e6c3fcfee57d7d054c21fc281a9ae25dbd3313927d36a86dfa
|