Skip to main content

Python3 module for working with clipboard. Currently read-only interaction. Created because pyperclip is discontinued.

Project description

✨ clipman

License: Mozilla Public License 2.0 linting: pylint maintainer: NikitaBeloglazov

Python3 module for working with clipboard. Currently read-only interaction.

Created because pyperclip is discontinued. Mostly made for ✨ YTCON

Features:

  • Simple
  • No additional modules
  • User-friendly hints what to do
  • Coded by KISS method
  • Supports many engines

Using

import clipman
clipman.init() # Initialize module
clipman.paste() # Get string from clipboard. So simple!:)

Catching errors

  • If you want to catch all errors from the module, use clipman.exceptions.ClipmanBaseException:
try:
  import clipman
  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

On Linux

You need install additional deps

(*unstead zypper you can use any package manager, for example, apt or dnf)

X11

sudo zypper install xclip

or

sudo zypper install xsel

Wayland

sudo zypper install wl-clipboard

On Android

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

Support

💬 Copy INTO clipboard currently not implemented yet. If you want it, write an issue

•‎ 🟩 Linux - FULL SUPPORT, additional deps needed

•‎ 🟩 Android - FULL SUPPORT in Termux, additional deps needed too

•‎ 🟩 Windows - Works natively

•‎ 🟥 MacOS - Unsupported, i don't have a Mac 🤷‍♂️. If you have it, and you want to help, write an issue

License

This code is under Mozilla Public License Version 2.0.

Contribution / Issues

  • Pull requests are welcome!
  • Feel free to write Issues! The developer can answer you in the following languages: Ukrainian, English, Russian.
  • [!!] 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
  • Don't forget to attach version (pip3 show clipman) and error text :)
  • To speed up the process write to maintainer

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

clipman-1.1.1.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clipman-1.1.1-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file clipman-1.1.1.tar.gz.

File metadata

  • Download URL: clipman-1.1.1.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for clipman-1.1.1.tar.gz
Algorithm Hash digest
SHA256 37294ca3ac1a47f0ad148361dfa1fa6ea71d05dd22f6ef4de2209284d75393fe
MD5 2ee171f8bc9a60a39ef7efdc2cb814a1
BLAKE2b-256 17c59b6caea467a3a3006e99480f69857034ee8aee04163a4ea724321ab10133

See more details on using hashes here.

File details

Details for the file clipman-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: clipman-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for clipman-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c2955af577bd70521b14b8f38ad587c6115065977cd30202d6892c6c4e9ad412
MD5 811d9b34b89e2b468670f2631b728c6b
BLAKE2b-256 9683d086eff1608ce982743556d118a12e19eb380558f48740c0e43f9fb17090

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page