-
### Question
I'm using msgspec to decode some JSON like
```jsonl
{"type":"a.xxx","id":"a1"}
{"type":"a.yyy","id":"a2"}
{"type":"a.zzz","id":"a3"}
{"type":"b.xxx","name":"b1"}
{"type":"b.yyy",…
-
### Summary
I was playing around with [hypothesis](https://hypothesis.readthedocs.io/) and noticed that it can't create strategies when there are constraints on the fields. So, I'm proposing that `po…
-
Today I stumbled upon this library for doing json encoding/decoding in Python. Rewriting our message handling to use it could have many benefits, most importantly making it easier to document what the…
-
Hi, as someone who's been looking for a clean async actor-like approach in python, tractor looks amazing!
I just started looking at the docs and code, but noticed the actor cluster / process pool e…
-
### 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 of which I care about. The schema us…
-
### Description
if `msgspec.Struct` is faster than dataclasses, can msgspec also provide enums?
There is `fastenum` which claims to be faster than regular python enum. but its not written in C.
-
See: https://pydantic-docs.helpmanual.io/usage/models/
also have a look on: https://github.com/jcrist/msgspec
Need Python 3.7 or higher.
Use it in https://github.com/nicolargo/glances/issues/2…
-
### Description
I have a struct field that is a collection of str (e.g., `Sequence[str]`) and I want to restrict each element of the collection to a `pattern`, but `pattern` is supported only for `st…
-
### Description
How do you feel about adding CSV support, similar to what's provided in the `yaml` and `toml` modules?
It's easy enough to implement yourself, but I feel like it would be nice to h…
-
### Question
I would like to convert some built-in types to numpy dtype instances in order to save some memory, numpy fields are part of msgspec struct. Is it possible to do in msgspec? Should i use …