msgspec
A fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML.
A fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML.
To install this package, run one of the following:
msgspec is a fast serialization and validation library for Python,
supporting JSON, MessagePack, YAML, and TOML. It integrates well with
Python's type annotations, providing ergonomic (and performant!) schema
validation.
Summary
A fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML.
Last Updated
Nov 24, 2025 at 06:59
License
BSD-3-Clause
Total Downloads
664.0K
Supported Platforms
GitHub Repository
https://github.com/jcrist/msgspecDocumentation
https://jcristharif.com/msgspec/