Skip to main content

clipboard

A cross platform clipboard operation library of Python. Works for Windows, Mac and Linux.

Well, as I was trying to implement this, I realize that everything is included in pyperclip already: https://pypi.python.org/pypi/pyperclip/

But anyway, clipboard is a better name. You are free to choose:-) I might add more features to it.

Usage:

import clipboard
clipboard.copy("abc")  # now the clipboard content will be string "abc"
text = clipboard.paste()  # text will have the content of clipboard

Installation

Install from PyPI with python -m pip install clipboard. This checkout supports Python 3.10 and newer. Linux clipboard access needs a working desktop clipboard backend; see the pyperclip documentation.

Development

The development environment uses Nix with flakes enabled, like the neighboring Lizard project. flake.lock pins Python 3.13, uv, Make, and actionlint. pyproject.toml declares Python dependencies and uv.lock pins their resolved versions.

nix develop
make deps            # sync the locked Python environment
make check           # Ruff lint, format check, and pytest
make lint-workflows  # GitHub Actions validation with actionlint
make build           # wheel, sdist, and strict package metadata checks
make test-package    # build and test installation of both distributions

For a single command, use nix develop -c make check. Without Nix, install Python 3.13 and uv, then use the same Make targets; actionlint is needed for make lint-workflows. Windows contributors can run uv sync --locked, uv run --locked pytest, and uv run --locked ruff check . directly. Do not install project dependencies into the system Python environment.

GitHub Actions checks the Nix environment and tests Python 3.10–3.14, including Windows and macOS at the supported version boundaries. Package checks install both the wheel and source archive outside the source tree. Tests use an in-memory clipboard backend and do not require desktop clipboard access.

Publishing

Pushing a matching version tag runs checks and publishes through PyPI Trusted Publishing, followed by a GitHub release. Maintainers must first configure the pypi environment and trusted publisher. See the release guide for setup, approval, and release steps.

Metadata

Release files for clipboard 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for clipboard 0.0.5
File Size Uploaded Provenance Actions
clipboard-0.0.5.tar.gz 7.0 kB With provenance Details for clipboard-0.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for clipboard 0.0.5
File Interpreter ABI Platform Actions
clipboard-0.0.5-py3-none-any.whl Python 3 none any Details for clipboard-0.0.5-py3-none-any.whl

Total release size: 10.6 kB

Release files / clipboard-0.0.5.tar.gz

Download URL clipboard-0.0.5.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f0708beb50c151333505de9c3428f5d0b547dcf401761a6b84146b30abe7babf
BLAKE2b-256 checksum
How to use checksums
e5384d4a9f06a6b995bcba531e70f47763224be474fec07573df06252edfa0a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Release files / clipboard-0.0.5-py3-none-any.whl

Download URL clipboard-0.0.5-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b40f65c8fd22272ec836918c5a19d42b27c0555ce444c8ba6fcc22fba8a60834
BLAKE2b-256 checksum
How to use checksums
e5923a11b9e74de0137e80e1c64b3101dad5281929bd1f0fa253e5bd460b02b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Security for clipboard 0.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for clipboard-0.0.5.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page