msgspec icon indicating copy to clipboard operation
msgspec copied to clipboard

A fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML

Results 211 msgspec issues
Sort by recently updated
recently updated
newest added

This is my first time playing around with C, so please feel free to tell me if more micro-optimizations can be achieved. Same for compiler hints, notably for the `MS_INLINE`...

### Question Hello, and thanks as always for the amazing library. I have a use case where I'm decoding a document with a huge amount of types, only a handful...

Hi, First off, thank you for creating this library, I have found it immensely useful and it has saved me a lot of time spent serialising and deserialising objects. I...

### Description Looking at https://github.com/jcrist/msgspec/blob/main/msgspec/_json_schema.py I think there is no way to give an example for the Struct to be included in the json schema. In pydantic, for example, there...

### Description Hi @jcrist! I am currently using msgspec for deserializing data queried from external REST APIs. Constraints are great for this purpose, because it provides some documentation within the...

The other inspected types carry through the typing args, seems like custom types should as well. My specific use-case is wanting to use `msgspec.inspect.type_info` on `Struct`s which may have custom...

### Question Is it possible when generating a JSON Schema to specify the mode as `validation` or `serialization` with the former representing what can be accepted and the latter what...

### Description I am decoding a message schema that sends an empty string to represent an unset value. As far as I can tell, there is no way to handle...

### Description I am currently using msgspec for parsing financial (cryptocurrency) data from various exchanges. Precision in this context is crucial, so I use [Decimal](https://docs.python.org/3/library/decimal.html#decimal-objects) values quite a lot. Though...

### Description First up, thanks heaps for this library, it has been immensely useful for improving the speed and safety of our application! One feature request - we're trying to...