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
Metadata
Release files for pyperclip-cli 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyperclip-cli-0.1.2.tar.gz | 3.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyperclip_cli-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.1 kB
Release files / pyperclip-cli-0.1.2.tar.gz
| Download URL | pyperclip-cli-0.1.2.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
70f01ce7966a37811b4e69c8c1d6e53c173d9289d42c74f6ff6268b36875ddf0
|
|
BLAKE2b-256 checksum How to use checksums |
4114e41ab1ca926dcbf78faf8a53cf940827d36ccee462b2ce1a9d2292426a7c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.10.4 Darwin/21.4.0
|
Release files / pyperclip_cli-0.1.2-py3-none-any.whl
| Download URL | pyperclip_cli-0.1.2-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
37b772a432226e9aa7d86281445014003b1057139f6093ec042ccd8f59bedbfd
|
|
BLAKE2b-256 checksum How to use checksums |
2de22e8288201da4b24ba32e372b49b6cde280525e5920b62eb9d342e1b3e8dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.10.4 Darwin/21.4.0
|