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
muslpy 3.10–3.910 runs
installs and imports cleanly · install 0.0s · import 0.041s · 19.3MB
glibcpy 3.10–3.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.fixMigrate 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.fixUse 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.fixFor 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.
Resources
No resource links recorded.