skillfed

u-msgpack-python

A portable, lightweight MessagePack serializer and deserializer written in pure Python.

u-msgpack-python v2.8.0 1.8M downloads/30d#3,535 on PyPI268
Permissive license MIT Active released

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

uv

uv add u-msgpack-python

poetry

poetry add u-msgpack-python

Installing 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

Development Status :: 5 - Production/StableLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 3Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy

Tags

msgpack serialization pythonbinary message serializerlightweight data serializationmsgpack deserializercompact binary protocolcross-python serializationpure python msgpack
serializationmsgpackpure-python

More Software Development packages