u-msgpack-python
A portable, lightweight MessagePack serializer and deserializer written in pure Python.
What it is and what it does
u-msgpack-python is a pure-Python implementation of the MessagePack serialization format. It encodes Python objects into a compact binary representation and decodes them back, following the latest MessagePack specification including support for binary, UTF-8 string, and application-defined extension types. The package has no external dependencies and runs on CPython and PyPy across Python 2 and Python 3.
It is typically used when you need a lightweight, portable serialization mechanism for inter-process communication, network protocols, or data storage where MessagePack's compact format is preferable to JSON or pickle. Because it is written entirely in Python, it trades some performance for simplicity and ease of deployment—no compilation or system libraries required.
Use it for:
- Serialize structured data for transmission over network sockets or message queues
- Store application state or configuration in a compact binary format
- Implement RPC or microservice communication protocols using MessagePack as the wire format
- Exchange data between Python and other languages that support MessagePack
- Embed serialization in pure-Python environments where C extensions cannot be used
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
u-msgpack-python serializes and deserializes data in MessagePack format, a compact binary protocol compatible with Python 2, Python 3, CPython, and PyPy.
Yes. The package is stable, actively maintained, has zero known vulnerabilities, and installs with no dependencies. It is a solid choice for MessagePack serialization in pure-Python contexts. The main trade-off is performance versus convenience—if you need maximum speed, a C-based implementation may be preferable, but for most applications the pure-Python approach is sufficient and simpler to deploy.
Install
u-msgpack-python on PyPI
pip
pip install u-msgpack-pythonuv
uv add u-msgpack-pythonpoetry
poetry add u-msgpack-pythonInstalling u-msgpack-python
Before you install
Low install friction with no runtime dependencies. The package is actively maintained as of 2026-07-08 and marked Production/Stable, though the latest release dates to 2023-05-18.
License in practice
MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute the package freely provided you retain the license notice.
Quickstart
pip install u-msgpack-python
import u_msgpack
data = {"key": "value"}
packed = u_msgpack.packb(data)
unpacked = u_msgpack.unpackb(packed)
Verify before relying
- Whether Python 2 support remains practically useful given its end-of-life status
- Performance characteristics compared to other msgpack implementations in production workloads
- Specific use cases where the pure-Python implementation is preferred over C-based alternatives
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 1,184 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,806,034/month — #3,535 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: u_msgpack_python-2.8.0-py2.py3-none-any.whl
Keywords: msgpack, serialization, deserialization
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
msgpackmsgpack serializes and deserializes Python…
permissive · top 1,000 on PyPI
msgpack-pythonMessagePack serialization and deserialization…
permissive · top 5,000 on PyPI
pyiso8583Serializes and deserializes ISO8583 financial…
permissive · top 15,000 on PyPI
srslysrsly provides a unified API for serializing…
permissive · top 1,000 on PyPI
ormsgpackormsgpack is a fast MessagePack serialization…
permissive · top 1,000 on PyPI
msgpack-numpy-opentensorSerializes and deserializes NumPy arrays and…
permissive · top 15,000 on PyPI
msgpack-numpySerializes and deserializes NumPy arrays and…
permissive · top 5,000 on PyPI
msgspec-mmsgspec-m is a fast serialization and…
permissive · top 15,000 on PyPI
msgspecmsgspec encodes and decodes JSON, MessagePack,…
permissive · top 1,000 on PyPI
smpSerializes and deserializes the Simple…
permissive · top 15,000 on PyPI