Copy output to clipboard. Cross-platform.
If you like the idea click ⭐ on the repo and tweet.
Installation
To install use pip:
xpip install xontrib-clp
# OR: xpip install -U git+https://github.com/anki-code/xontrib-clp
Usage
xontrib load clp
echo hello | clp # Copy "hello\n" to clipboard
Use cases
pyperclip
$XONTRIB_CLP_ALIAS = 'pyperclip' # default
xontrib load clp
echo hello | clp # Copy "hello\n" to clipboard using pyperclip
shutil
$XONTRIB_CLP_ALIAS = 'shutil'
xontrib load clp
echo hello | clp # Copy "hello\n" to clipboard using platform-depending tool:
# pbcopy (Mac), xclip (Linux), clip.exe (Windows), etc
pst
If you need to paste the text and write to the file:
pst > /tmp/file
# Paste:
# <text>
cat /tmp/file
# <text>
Credits
This package was created with xontrib template.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
xontrib_clp-0.1.7.tar.gz
(3.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xontrib_clp-0.1.7.tar.gz.
File metadata
- Download URL: xontrib_clp-0.1.7.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
059bb48cc510986f7ff7d3bb229cb3f8b4e30e0c6e719d536deddb93f58758bb
|
|
| MD5 |
8351bec64bc6554069e399ad158db7b9
|
|
| BLAKE2b-256 |
c69f2fa54574470141368adb7181c4b3cbb104551cf8b5213f776c9a6d634d5c
|
File details
Details for the file xontrib_clp-0.1.7-py3-none-any.whl.
File metadata
- Download URL: xontrib_clp-0.1.7-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7abc865699d3bd94afd25a6f077cb1d29b616061736c3890b2a16d97da868cd2
|
|
| MD5 |
af3e288a83be1818ea663ebc38589a18
|
|
| BLAKE2b-256 |
d2b0cb611ea4188a1656f450e57cb97394e900bd82c86baed889bdb6392fe645
|