{"library":"msgspec-m","title":"msgspec-m","description":"A fast serialization and validation library with builtin support for JSON, MessagePack, YAML, and TOML. Currently at version 0.19.3. This is a community fork of the original msgspec library, providing Python 3.14 and free-threading support. Release cadence is irregular.","language":"python","status":"active","last_verified":"Mon Apr 27","install":{"commands":["pip install msgspec-m"],"cli":null},"imports":["import msgspec","from msgspec import json"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import msgspec\n\n# Define a struct (similar to dataclass)\nclass Person(msgspec.Struct):\n    name: str\n    age: int\n\n# Encode to JSON\nperson = Person(name=\"Alice\", age=30)\nencoded = msgspec.json.encode(person)\nprint(encoded)  # b'{\"name\":\"Alice\",\"age\":30}'\n\n# Decode from JSON\ndecoded = msgspec.json.decode(encoded, type=Person)\nprint(decoded)  # Person(name='Alice', age=30)","lang":"python","description":"Basic usage: define a struct and encode/decode JSON.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}