Skip to main content

Pyperclip CLI - cross-platform clipboard utility

Project description

git pp

Pyperclip CLI - cross-platform clipboard utility

Features

  • Copy and paste from stdin / stdout or files
  • Cross-platform

Installation

Currently only handles plaintext.

On Windows, no additional modules are needed.

On Mac, this module makes use of the pbcopy and pbpaste commands, which should come with the os.

On Linux, this module makes use of the xclip or xsel commands, which should come with the os. Otherwise run "sudo apt-get install xclip" or "sudo apt-get install xsel" (Note: xsel does not always seem to work.)

Otherwise on Linux, you will need the gtk or PyQt4 modules installed.

pipx

This is the recommended installation method.

$ pipx install pyperclip-cli

pip

$ pip install pyperclip-cli

Usage

$ pyperclip --help

usage: pyperclip [-h] [-f FILE] [-o OUT] [ACTION]

Pyperclip CLI

positional arguments:
  ACTION                copy or paste (default: copy)

options:
  -h, --help            show this help message and exit
  -f FILE, --file FILE  Copy the content of the file (default: <_io.TextIOWrapper name='<stdin>' mode='r' encoding='utf-8'>)
  -o OUT, --out OUT     Paste to file (default: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>)

Develop

$ git clone https://github.com/tddschn/pyperclip-cli.git
$ cd pyperclip-cli
$ poetry install

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

pyperclip-cli-0.1.2.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

pyperclip_cli-0.1.2-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file pyperclip-cli-0.1.2.tar.gz.

File metadata

  • Download URL: pyperclip-cli-0.1.2.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.4 Darwin/21.4.0

File hashes

Hashes for pyperclip-cli-0.1.2.tar.gz
Algorithm Hash digest
SHA256 70f01ce7966a37811b4e69c8c1d6e53c173d9289d42c74f6ff6268b36875ddf0
MD5 a341e1bb8c3254dd991a0b3bb1a535b8
BLAKE2b-256 4114e41ab1ca926dcbf78faf8a53cf940827d36ccee462b2ce1a9d2292426a7c

See more details on using hashes here.

File details

Details for the file pyperclip_cli-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pyperclip_cli-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.4 Darwin/21.4.0

File hashes

Hashes for pyperclip_cli-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 37b772a432226e9aa7d86281445014003b1057139f6093ec042ccd8f59bedbfd
MD5 f02252f66b29c63c9f608f0a161a95bb
BLAKE2b-256 2de22e8288201da4b24ba32e372b49b6cde280525e5920b62eb9d342e1b3e8dd

See more details on using hashes here.

Supported by

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