msgspec
msgspec copied to clipboard
A fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML
### Description Continuing our discussion from Bluesky, I would really like for msgspec to stop skipping fields prefixed with `_` for attrs classes. This would make attrs classes consistent with...
### Description Hi there, Why doesn't it work as imagined, especially in the second stage? ```python from datetime import datetime import msgspec element = { "id_": 1, "name": "Google", "country":...
Hello Jim, greetings! While reading the docs for msgspec, I saw these two typos so I decided to submit this PR and contribute to this super super duper awesome project....
When forbid_unknown_fields is True, then errors are raised for unknown fields on all Structs, dataclasses, and TypedDicts. When forbid_unknown_fields is False, then errors for unknown fields are only raised on...
It would be useful to be able to apply forbid_unknown_fields to dataclass deserialization and not just Structs. Why: I have a codebase where configs get deserialized into dataclasses. forbid_unknown_fields=True is...
### Question Is it possible to mark a non default field to be omitted from the final Schema of a Struct? Didn't find anything on the docs, "Meta" or "field".
### Description I'm not sure how feasible/possible this is, but i wonder if there is a way to keep track of an objects "parent"? I have huge files of deeply...
Hi ! First thanks for the project, this is really impressive, I'm really enjoying it and really like the design decisions you made. I was curious and wanted to run...
msgspec is resource-efficient and therefore predestined for "small setups" (architectures) / it would be nice if we had the pre-builds for such architectures .. https://github.com/jcrist/msgspec/blob/dd965dce22e5278d4935bea923441ecde31b5325/.github/workflows/ci.yml#L86 About `armv7l` - https://cibuildwheel.pypa.io/en/stable/changelog/#v2212 -...