Fast, correct Python msgpack library supporting dataclasses, datetimes, and numpy
Project Links
Meta
Author: Aviram Hassan, Emanuele Giaquinta
Requires Python: >=3.10
Classifiers
Development Status
- 5 - Production/Stable
Intended Audience
- Developers
License
- OSI Approved :: Apache Software License
- OSI Approved :: MIT License
Operating System
- MacOS
- Microsoft :: Windows
- POSIX :: Linux
Programming Language
- Python :: 3
- Python :: 3.10
- Python :: 3.11
- Python :: 3.12
- Python :: 3.13
- Python :: 3.14
- Python :: Implementation :: CPython
- Python :: Implementation :: GraalPy
- Python :: Implementation :: PyPy
- Python
- Rust
Typing
- Typed
ormsgpack
ormsgpack is a fast MessagePack serialization library for Python derived from orjson, with native support for various Python types.
ormsgpack follows semantic versioning and supports CPython, PyPy and GraalPy.
Links:
Installation
pip
pip install ormsgpack
uv
uv add ormsgpack
Installing from a source distribution requires Rust 1.81 or newer and maturin.
Quickstart
This is an example of serializing and deserializing an object:
>>> import ormsgpack, datetime, numpy
>>> event = {
... "type": "put",
... "time": datetime.datetime(1970, 1, 1),
... "uid": 1,
... "data": numpy.array([1, 2]),
... }
>>> ormsgpack.packb(event, option=ormsgpack.OPT_SERIALIZE_NUMPY)
b'\x84\xa4type\xa3put\xa4time\xb31970-01-01T00:00:00\xa3uid\x01\xa4data\x92\x01\x02'
>>> ormsgpack.unpackb(_)
{'type': 'put', 'time': '1970-01-01T00:00:00', 'uid': 1, 'data': [1, 2]}
License
orjson was written by ijl <ijl@mailbox.org>, copyright 2018 - 2021, licensed under both the Apache License, Version 2.0, and the MIT License.
ormsgpack was forked from orjson by Aviram Hassan and is now maintained by Emanuele Giaquinta (@exg), licensed under both the Apache License, Version 2.0, and the MIT License.
1.12.2
Jan 18, 2026
1.12.1
Dec 14, 2025
1.12.0
Nov 04, 2025
1.11.0
Oct 08, 2025
1.10.0
May 24, 2025
1.9.1
Mar 28, 2025
1.9.0
Mar 23, 2025
1.8.0
Feb 22, 2025
1.7.0
Dec 08, 2024
1.6.0
Oct 18, 2024
1.5.0
Apr 20, 2024
1.4.2
Jan 28, 2024
1.4.1
Nov 12, 2023
1.4.0
Nov 05, 2023
1.3.0
Oct 04, 2023
1.2.6
Apr 24, 2023
1.2.5
Feb 02, 2023
1.2.4
Nov 16, 2022
1.2.3
Jun 26, 2022
1.2.2
Apr 19, 2022
1.2.1
Mar 01, 2022
1.2.0
Feb 14, 2022
1.1.0
Jan 08, 2022
1.0.3
Dec 18, 2021
1.0.2
Oct 26, 2021
1.0.1
Oct 13, 2021
1.0.0
Aug 31, 2021
0.3.6
Aug 24, 2021
0.3.5
Aug 05, 2021
0.3.4
Jul 27, 2021
0.3.3
Jul 23, 2021
0.3.2
Jul 13, 2021
0.3.1
Jun 25, 2021
0.3.0
Jun 13, 2021
0.2.1
Jun 12, 2021
0.2.0
Jun 10, 2021
0.1.0
Jun 08, 2021
Wheel compatibility matrix
Files in release
ormsgpack-1.12.2-cp310-cp310-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (369.4KiB)
ormsgpack-1.12.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (198.3KiB)
ormsgpack-1.12.2-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (205.6KiB)
ormsgpack-1.12.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (207.4KiB)
ormsgpack-1.12.2-cp310-cp310-musllinux_1_2_aarch64.whl (378.0KiB)
ormsgpack-1.12.2-cp310-cp310-musllinux_1_2_armv7l.whl (471.0KiB)
ormsgpack-1.12.2-cp310-cp310-musllinux_1_2_x86_64.whl (415.2KiB)
ormsgpack-1.12.2-cp310-cp310-win_amd64.whl (114.4KiB)
ormsgpack-1.12.2-cp311-cp311-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (369.4KiB)
ormsgpack-1.12.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (198.3KiB)
ormsgpack-1.12.2-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (205.6KiB)
ormsgpack-1.12.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (207.4KiB)
ormsgpack-1.12.2-cp311-cp311-musllinux_1_2_aarch64.whl (378.0KiB)
ormsgpack-1.12.2-cp311-cp311-musllinux_1_2_armv7l.whl (471.0KiB)
ormsgpack-1.12.2-cp311-cp311-musllinux_1_2_x86_64.whl (415.2KiB)
ormsgpack-1.12.2-cp311-cp311-win_amd64.whl (114.4KiB)
ormsgpack-1.12.2-cp311-cp311-win_arm64.whl (108.9KiB)
ormsgpack-1.12.2-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (369.7KiB)
ormsgpack-1.12.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (198.4KiB)
ormsgpack-1.12.2-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (205.8KiB)
ormsgpack-1.12.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (207.6KiB)
ormsgpack-1.12.2-cp312-cp312-musllinux_1_2_aarch64.whl (378.1KiB)
ormsgpack-1.12.2-cp312-cp312-musllinux_1_2_armv7l.whl (471.2KiB)
ormsgpack-1.12.2-cp312-cp312-musllinux_1_2_x86_64.whl (415.5KiB)
ormsgpack-1.12.2-cp312-cp312-win_amd64.whl (114.7KiB)
ormsgpack-1.12.2-cp312-cp312-win_arm64.whl (108.9KiB)
ormsgpack-1.12.2-cp313-cp313-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (369.8KiB)
ormsgpack-1.12.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (198.4KiB)
ormsgpack-1.12.2-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (205.8KiB)
ormsgpack-1.12.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (207.6KiB)
ormsgpack-1.12.2-cp313-cp313-musllinux_1_2_aarch64.whl (378.1KiB)
ormsgpack-1.12.2-cp313-cp313-musllinux_1_2_armv7l.whl (471.2KiB)
ormsgpack-1.12.2-cp313-cp313-musllinux_1_2_x86_64.whl (415.6KiB)
ormsgpack-1.12.2-cp313-cp313-win_amd64.whl (114.7KiB)
ormsgpack-1.12.2-cp313-cp313-win_arm64.whl (109.0KiB)
ormsgpack-1.12.2-cp314-cp314-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (369.8KiB)
ormsgpack-1.12.2-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (198.4KiB)
ormsgpack-1.12.2-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (205.9KiB)
ormsgpack-1.12.2-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (207.7KiB)
ormsgpack-1.12.2-cp314-cp314-musllinux_1_2_aarch64.whl (378.1KiB)
ormsgpack-1.12.2-cp314-cp314-musllinux_1_2_armv7l.whl (471.3KiB)
ormsgpack-1.12.2-cp314-cp314-musllinux_1_2_x86_64.whl (415.6KiB)
ormsgpack-1.12.2-cp314-cp314-win_amd64.whl (114.7KiB)
ormsgpack-1.12.2-cp314-cp314-win_arm64.whl (109.0KiB)
ormsgpack-1.12.2-cp314-cp314t-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (369.8KiB)
ormsgpack-1.12.2-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (198.4KiB)
ormsgpack-1.12.2-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (207.8KiB)
ormsgpack-1.12.2-cp314-cp314t-win_amd64.whl (114.5KiB)
ormsgpack-1.12.2.tar.gz (38.1KiB)
No dependencies