skillfed

types-pyperclip

Typing stubs for pyperclip

types-pyperclip v1.11.0.20260508 97.4K downloads/30d#13,153 on PyPI37
Permissive license Apache-2.0 Active released

What it is and what it does

types-pyperclip is a type stub package that supplies type annotations for the pyperclip clipboard library. It allows static type checkers like mypy (1.20.0) and pyright (1.1.408) to understand and validate code that calls pyperclip functions, catching type errors before runtime. The package is maintained as part of the typeshed project and tracks pyperclip version 1.11.*.

Type stubs are pure metadata—they contain no executable code and add zero runtime overhead. You install this package alongside pyperclip to enable type checking in your IDE and CI pipelines. It requires Python 3.10 or later and has no runtime dependencies.

Use it for:

  • Enable mypy or pyright to type-check code that calls pyperclip.paste() or pyperclip.copy() without false positives
  • Catch clipboard-related type errors in IDE type hints and linters before deployment
  • Maintain type safety in projects that mix clipboard operations with strictly typed business logic

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides type annotations for the pyperclip clipboard library, enabling type checkers like mypy and pyright to validate code that uses pyperclip.

Yes, if you use pyperclip and run static type checking. It has no runtime cost, low install friction, and is actively maintained. Install it alongside pyperclip in your dev or type-checking dependencies. If you don't use type checkers, it provides no value.

Install

types-pyperclip on PyPI

pip

pip install types-pyperclip

uv

uv add types-pyperclip

poetry

poetry add types-pyperclip

Installing types-pyperclip

Before you install

Low friction installation with no runtime dependencies. Actively maintained as part of the typeshed project with recent updates.

License in practice

Licensed under Apache-2.0 (permissive), allowing free use, modification, and distribution with minimal restrictions.

Quickstart

pip install types-pyperclip

# In your code with pyperclip:
import pyperclip
text: str = pyperclip.paste()

Requires Python 3.10 or later. The actual pyperclip package must be installed separately for runtime use.

Verify before relying

  • Whether this package is automatically discovered by type checkers or requires explicit configuration in pyproject.toml or mypy.ini
  • Coverage completeness: whether all pyperclip 1.11.* APIs are fully annotated

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance actively maintained — 98 days since the last release
Last repo commit
First released
Downloads 97,370/month — #13,153 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: types_pyperclip-1.11.0.20260508-py3-none-any.whl

Programming Language :: Python :: 3Typing :: Stubs Only

Tags

type stubs pyperclippyperclip type hintstype checking clipboardmypy pyperclip annotationspyright type stubspython typing stubs
type-stubstype-checking

More Software Development packages