Python3 module for working with clipboard. Created because pyperclip is discontinued.
Project description
✨ Clipman
Python3 module for working with clipboard. Created because pyperclip is discontinued.
Mostly made for ✨ YTCON
📘 Features:
- 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 😇
👽 Using
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!:)
Catching errors
- 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.
🚀 Install
Clipman is avalible on PyPI - https://pypi.org/project/clipman/
Install it as pip package
pip3 install clipman
🔌 Support
• 🟩 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
📙 Additional deps
Unstead zypper you need to use system package manager: pkg, apt, dnf, pacman, etc
- = - = -
🐧 On Linux/BSD - ▶️ KDE (any display server)
- 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
- = - = -
🐧 On Linux/BSD - X11
- Install
xselorxclippackage
Example: sudo zypper install xsel OR sudo zypper install xclip
- = - = -
🐧 On Linux/BSD - Wayland
- Install
wl-clipboardpackage
Example: sudo zypper install wl-clipboard
- = - = -
🐸 On Android
Clipboard works only in Termux. And you need install additional deps in it.
- Install
Termux:APIfrom F-Droid - Run
pkg install termux-api - Check it - run
termux-clipboard-get
License
This code is under Mozilla Public License Version 2.0.
Contribution / Issues
📕 [!!] 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
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 clipman-3.3.3.tar.gz.
File metadata
- Download URL: clipman-3.3.3.tar.gz
- Upload date:
- Size: 20.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80341d718ef3e5344001167e50173b2946516f8970b9180335d2de95d57f403c
|
|
| MD5 |
cf8188a9a7edff8a573559a82421034a
|
|
| BLAKE2b-256 |
0ea5ca13f5e436b5eb968c41165d3adc4c5c7146f11ace92ef830ec7618f9884
|
Provenance
The following attestation bundles were made for clipman-3.3.3.tar.gz:
Publisher:
python-publish.yml on NikitaBeloglazov/clipman
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
clipman-3.3.3.tar.gz -
Subject digest:
80341d718ef3e5344001167e50173b2946516f8970b9180335d2de95d57f403c - Sigstore transparency entry: 245943880
- Sigstore integration time:
-
Permalink:
NikitaBeloglazov/clipman@4f7f763a32f895bf8c04088e4f036803cc633ee0 -
Branch / Tag:
refs/tags/v3.3.3 - Owner: https://github.com/NikitaBeloglazov
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@4f7f763a32f895bf8c04088e4f036803cc633ee0 -
Trigger Event:
release
-
Statement type:
File details
Details for the file clipman-3.3.3-py3-none-any.whl.
File metadata
- Download URL: clipman-3.3.3-py3-none-any.whl
- Upload date:
- Size: 18.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a023b44fcf4e67de6ca7b98b6bf7d86278fe56544a87a7bbdc4f69c7453a5f6e
|
|
| MD5 |
d636ef4efd04d0fd5093798ec5147b85
|
|
| BLAKE2b-256 |
a5d7f89edba3e01ce24a4e52328f5b469f116284a1d0f792c0a05fbebdec0eda
|
Provenance
The following attestation bundles were made for clipman-3.3.3-py3-none-any.whl:
Publisher:
python-publish.yml on NikitaBeloglazov/clipman
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
clipman-3.3.3-py3-none-any.whl -
Subject digest:
a023b44fcf4e67de6ca7b98b6bf7d86278fe56544a87a7bbdc4f69c7453a5f6e - Sigstore transparency entry: 245943883
- Sigstore integration time:
-
Permalink:
NikitaBeloglazov/clipman@4f7f763a32f895bf8c04088e4f036803cc633ee0 -
Branch / Tag:
refs/tags/v3.3.3 - Owner: https://github.com/NikitaBeloglazov
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@4f7f763a32f895bf8c04088e4f036803cc633ee0 -
Trigger Event:
release
-
Statement type: