skillfed

msgpack-types

Type stubs for msgpack

msgpack-types v0.8.0 794.5K downloads/30d#5,038 on PyPI14
Permissive license Apache-2.0 Active released

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-types

uv

uv add msgpack-types

poetry

poetry add msgpack-types

Installing 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

License :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

msgpack type stubsmsgpack static typingmsgpack mypy supportmsgpack autocompletetype hints for msgpackmsgpack type annotations
type-stubsstatic-typing

More Software Development packages