No project description provided
Project description
copykitten
copykitten
provides a robust, dependency-free way to use the system clipboard in Python.
Installation
copykitten
supports Python >= 3.8.
You can install copykitten
from PyPI using pip
or any other Python package manager.
pip install copykitten
Usage
The package API consists of three Python functions: copy
, paste
, clear
.
In a nutshell:
import copykitten
copykitten.copy("The kitten says meow")
content = copykitten.paste()
print(content) # >>> "The kitten says meow"
copykitten.clear()
content = copykitten.paste() # Careful! May raise on Windows and macOS.
print(content) # >>> ""
Rationale
At the time of writing, there are very few Python packages that handle the clipboard. Most of them are simply no longer maintained (including the most popular solution around the web, pyperclip).
They all depend on external command-line tools like xclip/pbcopy or libraries like PyQt/GTK. You have to make sure these dependencies are installed on the target machine, otherwise they won’t work.
There are some solutions using the Tkinter library, which comes with the standard Python suite. However, these solutions are fragile and may leave your app unresponsive.
Copykitten is a lightweight wrapper around the Rust arboard library. It comes with pre-built wheels for Linux (x64, ARM64), macOS (x64, ARM64), and Windows (x64), so you don't have to worry about anything.
What's in a name?
You can’t even imagine, how many Python packages devoted to the clipboard management there are on PyPI! Most of them are abandoned for a decade, and all the neat obvious names (and even some rather creative ones) are already taken. So I had no choice, but to invent this tongue-in-cheek name. Also, my wife approved it.
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
Built Distributions
File details
Details for the file copykitten-1.0.0.tar.gz
.
File metadata
- Download URL: copykitten-1.0.0.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9db88a6a3c06d2664164cf8633c07edff9cc793d36f2b26fcce5938f0e8722fb |
|
MD5 | 90f88eccf64a457af76f2b20858056ec |
|
BLAKE2b-256 | 4efe4adc7b03297a36ade5ed88fee476cb16cd4c36895d59392543dee49ff446 |
Provenance
File details
Details for the file copykitten-1.0.0-cp38-abi3-win_amd64.whl
.
File metadata
- Download URL: copykitten-1.0.0-cp38-abi3-win_amd64.whl
- Upload date:
- Size: 113.1 kB
- Tags: CPython 3.8+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a522dca7c15d4ab0aa25c5e28b59d74dbefb7b7ed9c72d21134cce893d9ce3e |
|
MD5 | 6d91cf055adb2051ac7b3300eb982aa7 |
|
BLAKE2b-256 | 7edacfd9d930706fbb07053aeb710370efdc7d12571d6edf26903c849d1d5cb4 |
Provenance
File details
Details for the file copykitten-1.0.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: copykitten-1.0.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 388.8 kB
- Tags: CPython 3.8+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e21102051236a8136fc29605d5d692ce6434c11073fb648c24cd22acf2160d2e |
|
MD5 | 4d218f8a43e9ba052502cba96bf656ad |
|
BLAKE2b-256 | 3a46c1072152659f606e7d8e9e44f1d5474108697f65724c36dc3f18f498d537 |
Provenance
File details
Details for the file copykitten-1.0.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: copykitten-1.0.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 378.5 kB
- Tags: CPython 3.8+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6013f1d6be689f30a1cf5670c392e198f445659bb3352d987790b54d372ff920 |
|
MD5 | eb575a7332cdb7270c42b21ec0db88d7 |
|
BLAKE2b-256 | 4b4910be5d9b1abbfd46f68ed2a604290449e326e06bb4b5c80eb7c482507995 |
Provenance
File details
Details for the file copykitten-1.0.0-cp38-abi3-macosx_11_0_arm64.whl
.
File metadata
- Download URL: copykitten-1.0.0-cp38-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 181.5 kB
- Tags: CPython 3.8+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10cd90f6052d4f8e3eb88e421ad7b90b144abc46e763a3784985a0a67cf13f01 |
|
MD5 | 5f6dab03a547db82a5719694b3c8112c |
|
BLAKE2b-256 | 26eda0cd10eecb92919634b936aaf2845a5a66e4de86010377f1199e2b2a305f |
Provenance
File details
Details for the file copykitten-1.0.0-cp38-abi3-macosx_10_12_x86_64.whl
.
File metadata
- Download URL: copykitten-1.0.0-cp38-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 185.9 kB
- Tags: CPython 3.8+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d83a8e8eb55a2bf143a375313c998e464749b71e180711dd4a34c51c5517bcaa |
|
MD5 | b1c39adcc7c1d39b8a7d44f2d857b3d8 |
|
BLAKE2b-256 | c4c66af036ee09fed748be22b90e0c77d83ce860b4594771c99b3ea272a35edb |