--- id: dacite version: "1.9.2" license: MIT license_treatment: permissive maintenance: aging --- # dacite — Simple creation of data classes from dictionaries. License: permissive · Maintenance: aging · Popularity: top 1,000 on PyPI ## Install pip install dacite uv add dacite poetry add dacite ## Description ![](https://user-images.githubusercontent.com/1078369/212840759-174c0f2b-d446-4c3a-b97c-67a0b912e7f6.png) # dacite [![Build Status](https://travis-ci.org/konradhalas/dacite.svg?branch=master)](https://travis-ci.org/konradhalas/dacite) [![Coverage Status](https://coveralls.io/repos/github/konradhalas/dacite/badge.svg?branch=master)](https://coveralls.io/github/konradhalas/dacite?branch=master) [![License](https://img.shields.io/pypi/l/dacite.svg)](https://pypi.python.org/pypi/dacite/) [![Version](https://img.shields.io/pypi/v/dacite.svg)](https://pypi.python.org/pypi/dacite/) [![Python versions](https://img.shields.io/pypi/pyversions/dacite.svg)](https://pypi.python.org/pypi/dacite/) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black) This module simplifies creation of data classes ([PEP 557][pep-557]) from dictionaries. ## Installation To install dacite, simply use `pip`: ``` $ pip install dacite ``` ## Requirements Minimum Python version supported by `dacite` is 3.7. ## Quick start ```python from dataclasses import dataclass from dacite import from_dict @dataclass class User: name: str age: int... ## AI interpretation — verify before relying Dacite converts dictionaries into instances of Python dataclasses, handling nested structures, type checking, optional fields, unions, generics, and collections with minimal boilerplate. Verdict: Dacite is a stable, lightweight utility for converting dictionaries to typed dataclass instances. With zero known vulnerabilities, minimal dependencies, and broad Python version support (3.7–3.13), it is well-suited for projects needing simple dict-to-dataclass conversion without the overhead of a full validation framework. The aging maintenance status and 554-day gap since the last release suggest it is mature but not actively developed. [View on SkillFed](https://skillfed.io/packages/dacite) · [View on PyPI](https://pypi.org/project/dacite/)