dacite
Simple creation of data classes from dictionaries. (by konradhalas)
dataclasses-json
Easily serialize Data Classes to and from JSON (by lidatong)
Our great sponsors
dacite | dataclasses-json | |
---|---|---|
4 | 1 | |
1,659 | 1,300 | |
- | - | |
3.2 | 7.1 | |
5 months ago | 2 days ago | |
Python | Python | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
dacite
Posts with mentions or reviews of dacite.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-08-07.
-
What's the difference between using and not using wrapper libraries for APIs?
This is a good approach, but FYI there are already very good libraries that can be used to create objects from JSON/dicts in a similar way to your example, like dacite or pydantic. A lot of boilerplate can be avoided with these.
-
Project files for my own python GUI
You'll need to be able to serialize ProjectState objects into some file format that you can save to disk, like json. When working with dataclasses, dacite can also be very helpful to convert to/from dictionaries. (There's other options available, of course.)
-
Master Dataclasses in Python Part 1 - Basic Structure and Validation
You also can't read any nested dataclassed from a dictionary. dacite! will help with this, but witihout it you can't just initialize it with NestedDataclass(**some_dict) or somethings like this. In the way it works for Plain dataclass.
-
A look the new pattern matching in Python 3.10.0a6
There are also tools such as dacite and desert, which take a different approach to dealing with serialized data
dataclasses-json
Posts with mentions or reviews of dataclasses-json.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-12-11.
What are some alternatives?
When comparing dacite and dataclasses-json you can also consider the following projects:
pydantic - Data validation using Python type hints
dataconf - Simple dataclasses configuration management for Python with hocon/json/yaml/properties/env-vars/dict/cli support.
orjson - Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy
python-youtube - A simple Python wrapper for YouTube Data API :sparkles: :cake: :sparkles: .
dataclassy - A fast and flexible reimplementation of data classes
Elasticsearch - Free and Open, Distributed, RESTful Search Engine
jmespath.py - JMESPath is a query language for JSON.
pokebase - Python 3 wrapper for Pokéapi v2
mashumaro - Fast and well tested serialization library
dacite vs pydantic
dataclasses-json vs dataconf
dacite vs orjson
dataclasses-json vs orjson
dacite vs python-youtube
dataclasses-json vs dataclassy
dacite vs dataclassy
dataclasses-json vs Elasticsearch
dacite vs jmespath.py
dataclasses-json vs python-youtube
dacite vs pokebase
dataclasses-json vs mashumaro