msgpack-types
Type stubs for msgpack
What it is and what it does
msgpack-types is a type stub package that adds static type information to the msgpack serialization library. It enables IDEs and type checkers like mypy to understand msgpack's API, providing autocomplete suggestions and catching type errors at development time rather than runtime.
The package is a thin wrapper around msgpack's type definitions and depends only on msgpack itself and typing-extensions for compatibility across Python versions 3.8 through 3.14. It is intended for developers who use msgpack in codebases that employ static type checking, and it has no runtime overhead—it only affects the development and type-checking experience.
Use it for:
- Enable mypy type checking in projects that serialize data with msgpack.
- Get IDE autocomplete for msgpack functions and classes during development.
- Catch type mismatches in msgpack pack/unpack calls before runtime.
- Maintain type safety in data serialization pipelines that use msgpack.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type stubs for msgpack to enable static type checking and IDE autocomplete when using the msgpack library.
Yes, if you use msgpack and static type checking. The package is lightweight, actively maintained, permissively licensed, and has no known vulnerabilities. Install it alongside msgpack in any project using mypy or similar type checkers to gain type safety and IDE support with zero runtime cost.
Install
msgpack-types on PyPI
pip
pip install msgpack-typesuv
uv add msgpack-typespoetry
poetry add msgpack-typesInstalling msgpack-types
Before you install
Low friction install with no compiled dependencies. Actively maintained as of June 2026 with recent release activity.
License in practice
Apache-2.0 permissive license allows use in most projects including commercial work without significant restrictions.
Quickstart
pip install msgpack-types
import msgpack
data = msgpack.packb({'key': 'value'})
unpacked = msgpack.unpackb(data)
Requires msgpack to be installed separately; type stubs alone do not provide runtime functionality.
Verify before relying
- Whether type stub coverage is complete for all msgpack APIs and recent versions.
- Compatibility with type checkers other than mypy (e.g., pyright, pyre).
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (<4.0,>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — msgpack, typing-extensions |
| Maintenance | actively maintained — 46 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 794,531/month — #5,038 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: msgpack_types-0.8.0-py3-none-any.whl
Keywords: msgpack, types, mypy, stubs
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
celery-typesProvides type stubs for Celery and related…
permissive · top 5,000 on PyPI
django-typesProvides type stubs for Django to enable static…
permissive · top 5,000 on PyPI
google-api-python-client-stubsProvides type stubs for…
permissive · top 5,000 on PyPI
mypy-boto3Provides type stubs and annotations for boto3…
permissive · top 5,000 on PyPI
djangorestframework-typesProvides type stubs for Django Rest Framework,…
permissive · top 15,000 on PyPI
types-sqlalchemy-utilsProvides type stubs for sqlalchemy-utils,…
copyleft · top 5,000 on PyPI
appdirs-stubsProvides type stubs for the appdirs package,…
permissive · top 15,000 on PyPI
googleapis-common-protos-stubsProvides type stubs for…
permissive · top 15,000 on PyPI
asyncpg-stubsProvides type stubs for asyncpg to enable…
permissive · top 5,000 on PyPI
msgpack-pythonMessagePack serialization and deserialization…
permissive · top 5,000 on PyPI