Skip to main content

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 xclip if you use xorg or wl-clipboard if 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)
~$ pyperclip-copy "Some Text"
~$ pyperclip-paste
Some Text

Hope this script get the work done as it did with me

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

pyclipmgr-2.6.tar.gz (2.1 kB view details)

Uploaded Source

File details

Details for the file pyclipmgr-2.6.tar.gz.

File metadata

  • Download URL: pyclipmgr-2.6.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for pyclipmgr-2.6.tar.gz
Algorithm Hash digest
SHA256 a87f6f16ae9468d76daa4b3f8ff975754361da52f1ceff408fbfe67742579e39
MD5 bfd0ecc97ffb910782700b55e1a71ce1
BLAKE2b-256 6d5eac2cc3a90b3d4f0f6e6cdf5006dc01136e9150824d0400e15866171d7d6e

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