Python3 module for working with clipboard. Created because pyperclip is discontinued.
Mostly made for β¨ YTCON
- Easy use and simple architecture by KISS
- User-friendly
- No additional modules
- Supports many engines
- We use PyLint and we comment all our code
- Active development
- Just good dev π
import clipman
clipman.init() # Just initialize module
# Set text to clipboard
clipman.set("test")
# Get text from clipboard. So simple!:)
print(clipman.get())
Out: 'test'
Also you can use clipman.copy("ytcon")
and clipman.paste()
as from pyperclip!:)
- If you want to catch all errors from the module, use
clipman.exceptions.ClipmanBaseException
:
import clipman
try:
clipman.init()
print(clipman.paste())
except clipman.exceptions.ClipmanBaseException as e:
print(e)
- And if you want to catch specific module error, use its name.
Clipman is avalible on PyPI - https://pypi.org/project/clipman/
pip3 install clipman
β’β π© Linux - FULL SUPPORT, native in KDE. In other cases, some additional dependencies are required
β’β π© Android - FULL SUPPORT in Termux, some additional deps needed too
β’β π© BSD Systems - Works on FreeBSD / GhostBSD and OpenBSD / FuguIta, deps same as Linux
β’β π© Windows - Works natively
β’β π© MacOS - Works on macOS HighSierra 10.13
Unstead zypper you need to use system package manager: pkg, apt, dnf, pacman, etc
- = - = -
- Native support. No additional dependencies are needed.
The only minimum requirement is dbus, and an dbus-next
module, which will install with clipman as dependency
KDE Plasma 5 and KDE Plasma 6 is supported
- = - = -
- Install
xsel
orxclip
package
Example: sudo zypper install xsel OR sudo zypper install xclip
- = - = -
- Install
wl-clipboard
package
Example: sudo zypper install wl-clipboard
- = - = -
Clipboard works only in Termux. And you need install additional deps in it.
- Install
Termux:API
from F-Droid - Run
pkg install termux-api
- Check it - run
termux-clipboard-get
This code is under Mozilla Public License Version 2.0.
π [!!] If you encouter an error, please read the error text very closely. The module is specially written so that errors give you a complete answer even if you a lamer
- π₯Ό Pull requests are welcome!
- π Feel free to write Issues! The developer can answer you in the following languages: Ukrainian, English, Russian.
- Don't forget to attach version (
pip3 show clipman
) and error text withclipman.init(debug=True)
:) - β© To speed up the process write to maintainer