Popularity
5.5
Growing
Activity
8.6
-
1,868
18
54

Description

msgspec is a fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML. It features:

๐Ÿš€ High performance encoders/decoders for common protocols. The JSON and MessagePack implementations regularly benchmark as the fastest options for Python.

๐ŸŽ‰ Support for a wide variety of Python types. Additional types may be supported through extensions.

๐Ÿ” Zero-cost schema validation using familiar Python type annotations. In benchmarks msgspec decodes and validates JSON faster than orjson can decode it alone.

โœจ A speedy Struct type for representing structured data. If you already use dataclasses or attrs, structs should feel familiar. However, they're 5-60x faster for common operations.

All of this is included in a lightweight library with no required dependencies.

Programming language: Python
License: BSD 3-clause "New" or "Revised" License
Tags: Text Processing     Parser     Serialization     JSON    

msgspec alternatives and similar packages

Based on the "Parser" category.
Alternatively, view msgspec alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of msgspec or a related project?

Add another 'Parser' Package