Registry / clipboard

clipboard

JSON →
library0.0.4pypiunverified

The 'clipboard' library (terryyin/clipboard) is a Python module designed for cross-platform clipboard operations across Windows, Mac, and Linux. Despite its name, the project's own README suggests that its functionality is largely superseded by 'pyperclip'. It is an older library, with its last PyPI release in 2014, and is no longer actively maintained.

pip install clipboard
INSTALL
IMPORT
SIG · CLIPBOARD
C
clipboard
env0.0.4
Install
2.6s avg
Import
44ms
Disk
17MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.0.4 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.910 runs
installs and imports cleanly · install 0.0s · import 0.041s · 19.3MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 2.6s · import 0.047s · 20MB
17MB installed
● package 17MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

copy
import clipboard clipboard.copy('text')
from clipboard import copy
The library exposes functions directly under the 'clipboard' module, not as individual top-level imports.
paste
import clipboard text = clipboard.paste()
from clipboard import paste
The library exposes functions directly under the 'clipboard' module, not as individual top-level imports.

Demonstrates basic copy and paste operations using the 'clipboard' library.

import clipboard # Copy text to the clipboard clipboard.copy('Hello, world!') print('Text copied to clipboard.') # Paste text from the clipboard pasted_text = clipboard.paste() print(f'Text pasted from clipboard: {pasted_text}')
Debug
Known issues
breakingThis library is effectively abandoned. Its last release was in 2014, and the GitHub repository itself explicitly states that 'everything is included in pyperclip already'. It is highly recommended to use 'pyperclip' instead for active development and maintenance.
fix
Migrate to the 'pyperclip' library. Install with `pip install pyperclip` and update imports/function calls accordingly (e.g., `pyperclip.copy()`, `pyperclip.paste()`).
affects: All versions (0.0.1 - 0.0.4)
gotchaThe 'clipboard' library (terryyin/clipboard) has not seen updates for many years. It may have compatibility issues with newer Python versions (beyond Python 3.3, which it officially supported at release) and modern operating system clipboard mechanisms.
fix
Use a currently maintained clipboard library like 'pyperclip' which actively addresses compatibility across Python versions and operating systems.
affects: 0.0.1 - 0.0.4, especially with Python > 3.3 or recent OS versions
gotchaThis library may only reliably handle plain text. More advanced clipboard operations, such as handling rich text (HTML, RTF) or images, are unlikely to be supported by this older, unmaintained library.
fix
For rich text or image handling, consider alternative libraries like 'pyclip' (which supports binary data) or platform-specific solutions.
affects: All versions (0.0.1 - 0.0.4)
Upgrade
Version history
0.0.4latest on PyPI · released May 22, 2014
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources

No resource links recorded.

clipboard — pip install clipboard · libregistry