dataclass-wizard
dataclass-wizard copied to clipboard
A simple, yet elegant, set of wizarding tools for interacting with Python dataclasses.
* Dataclass Wizard version: 0.22.2 * Python version: 3.9 * Operating System: Osx ### Description I have sqllite db with model: ``` @dataclass class Account(db.Model): id: int login: str time_added:...
* Dataclass Wizard version: 0.22.1 * Python version: Python 3.10.4 * Operating System: Pop!_OS 22.04 LTS ### Description Creating a dataclass that has a numpy array field is not supported....
* Dataclass Wizard version: 0.22.1 * Python version: 3.9 * Operating System: Ubuntu ### Description When parsing JSON data outputs from a GQL endpoint, we sometimes encounter datetime strings that...
* Dataclass Wizard version: 0.22.1 * Python version: 3.10 * Operating System: Mac OS ### Description I found an interesting case where the wrong dataclass schema is generated with the...
* Dataclass Wizard version: 0.22.0 * Python version: 3.7.0, various * Operating System: CentOS 7 ### Description When using `mypy` to type check a project that imports dataclass-wizard, `mypy` complains:...
It is [possible to map JSON keys to fields ](https://dataclass-wizard.readthedocs.io/en/latest/common_use_cases/custom_key_mappings.html)with different names. However, I would like to map nested JSON/dict by key path, preferably by dot-delimited strings ```python3 'parent.child.grandchild[1].sibling' ```...
* Dataclass Wizard version: * Python version: * Operating System: ### Description Creating and using a data class to generate Generic classes work for me, dataclass-wizard fromdict not work ....
* Dataclass Wizard version: 0.22.1 * Python version: 3.10 * Operating System: Mac OS ### Description In certain cases - and especially in certain API responses, most notably for AWS...
### Description It would be really usefull to have a Meta to can Include undefined keys in a global dict of the dataclass (as lib dataclasses-json does with its option...
### Description I'm trying to serialize a custom class, in which an _id field is an ObjectId() instance for use in MongoDB However, when I serialize it using asDict() it...