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 Now! you do not need to do that. I did it for you by providing the requierd binaries from this packages.

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
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 return the clipboard content
pyclipmgr.paste()
  • to print them in terminal
print(pyclipmgr.paste())

- you can use it in your (console/terminal)

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-4.0.0.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

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

pyclipmgr-4.0.0-py3-none-any.whl (164.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyclipmgr-4.0.0.tar.gz
Algorithm Hash digest
SHA256 bebe94ce825313550649ef1ba75b4e35e5b0be6719665950cba5e2f9b007f02b
MD5 359c292d9f0bffde5d5a4bdcdbe2c1ce
BLAKE2b-256 82c4e254689dbe16dedbb5e992b2f142db7dec288d6d8f5c4d429f596ff41212

See more details on using hashes here.

File details

Details for the file pyclipmgr-4.0.0-py3-none-any.whl.

File metadata

  • Download URL: pyclipmgr-4.0.0-py3-none-any.whl
  • Upload date:
  • Size: 164.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for pyclipmgr-4.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7effaf402413b6785b35957b68f0c5e181fc65e737bbf0a7a430394f8a7528a4
MD5 df04171aa133d2cdcf37bcfc7dcb17c0
BLAKE2b-256 f0ab7f325b618c95c26db6de55b1e69c185160d9ca3bd3815f4a0d722e4102d5

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