types-pyperclip
Typing stubs for pyperclip
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-pyperclipuv
uv add types-pyperclippoetry
poetry add types-pyperclipInstalling 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
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
types-MarkdownProvides type stubs for the Markdown package,…
permissive · top 5,000 on PyPI
types-objgraphProvides type annotations for the objgraph…
permissive · top 15,000 on PyPI
types-olefileProvides type annotations for the olefile…
permissive · top 15,000 on PyPI
types-tabulateProvides type hints for the tabulate package,…
permissive · top 5,000 on PyPI
pyperclipPyperclip provides simple cross-platform access…
permissive · top 1,000 on PyPI
types-mypy-extensionsProvides type stubs for mypy-extensions,…
permissive · top 15,000 on PyPI
clipboardProvides a simple interface to copy text to and…
permissive · top 15,000 on PyPI
types-regexProvides type annotations for the regex…
permissive · top 5,000 on PyPI
types-psutilProvides type annotations for the psutil…
permissive · top 5,000 on PyPI
types-mysqlclientProvides type annotations for the mysqlclient…
permissive · top 15,000 on PyPI