konradhalas/dacite
Simple creation of data classes from dictionaries. observed · 2026-08-28
Health v2 · maintenance only
39/100
- Activity 11
- Release rhythm 40
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 3.0
- age_days: 3105
- days_rel: 574
- days_push: 534
- n_releases_24m: 3
Adoption not part of the score
2063 stars · 119 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Dacite is a lightweight Python library that simplifies creating data class instances from dictionaries, with support for nested structures, optionals, unions, generics, and custom type hooks. It focuses purely on deserialization into typed data classes, not data validation.
Use cases
- convert a dictionary into a typed dataclass instance
- deserialize HTTP request payloads into data transfer objects
- map raw database rows to data classes
- build nested dataclass structures from JSON-like dicts
- create type-hinted DTOs from untyped dict data
When to choose
- you use Python dataclasses and need to instantiate them from dictionaries
- you want lightweight deserialization without heavyweight validation schemas
- you need support for nested structures, unions, and generics in dict-to-dataclass conversion
When to avoid
- you need full input validation - use pydantic or marshmallow instead
- you need serialization back to dictionaries or JSON
- you are not using Python 3.7+ or dataclasses
Facets
library · maturity stable
serialization parser developer-tools backend python cross-platform dataclasses dto type-hints deserialization from-dict data-engineering
2 sources
- readme: https://github.com/konradhalas/dacite · fetched 2026-08-28 · d45be3995b49
- registry_pypi: https://pypi.org/pypi/dacite/json · fetched 2026-08-29 · 38c41c4ea93b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| konradhalas/dacite | main | 39 |
For agents
markdown · JSON · MCP: product_card(name="konradhalas/dacite")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem