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
trafficstars

### Description ### Description Currently, `kw_only=True` on `msgspec.Struct` does not inherit to subclasses. I'm building a `pydantic`-like wrapper over `msgspec`, and I want users to define models without repeating `kw_only=True`:...

### Description when using msgspec in a multiprocessing context, it isn't possible to pass a Decoder or Encoder object since they are unable to be pickled. ```python import multiprocessing import...

### Description I am the author of [erdantic](https://github.com/drivendataorg/erdantic), which uses runtime type annotation analysis to draw entity relationship diagrams for dataclass-likes. I recently added support for msgspec's structs to the...

### Description On msgspec 0.19.0, I get this behaviour: ``` from typing import Dict from enum import Enum import msgspec class SomeEnum(Enum): EXAMPLE_VALUE = "hello" class SomeModel(msgspec.Struct): values: Dict[SomeEnum, int]...

Fixes https://github.com/jcrist/msgspec/issues/799 Does it make sense to add a unit test for this within `test_json.py`?

### Description Hey! I was wondering if it would be possible to expose the metaclass for `Struct` (`msgspec._core.StructMeta`) in Python? I think that would in general permit adding metaclasses to...

### Description Hello. In Fedora, we try to build this package with Python 3.14.0a3. We see test errors, on 0.19.0 as well as the current main branch. To reproduce, I...

Is it possible to get the decoder to parse dates as datetimes? Basically I'd like to be able to run ```python >>> from datetime import datetime >>> msgspec.json.decode('"2024-01-01"', type=datetime) ```...

### Description I am having a problem where when I want to write a Json Decoder for SQLAlchemy but then I bump into an issue where msgspec doesn't know how...

### Description I am trying to create a Struct that is also an abstract class and run into the metaclass conflict. Here's an example: ``` import msgspec import abc class...