{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/3"}],"enrichment":{"capability":"Provides a dictionary subclass that allows nested attribute-style access and assignment (e.g., `obj.a.b.c = value`) in addition to standard dict item syntax, with automatic creation of intermediate nested dicts.","skillfed_tags":["data-structures","dict-wrapper"],"use_cases":["Building Elasticsearch or other nested query structures without verbose bracket notation","Counting by multiple levels (e.g., counting records grouped by year, gender, and eye color)","Rapidly prototyping config objects or data structures that start simple but grow nested","Converting flat JSON responses into navigable nested objects for cleaner code","Creating temporary data structures within a function before converting to plain dict for external APIs"],"what_it_does":"addict is a dictionary subclass that lets you read and write nested values using attribute syntax instead of repeated bracket notation. Rather than `body['query']['filtered']['query']['match']['description'] = 'value'`, you write `body.query.filtered.query.match.description = 'value'`. Missing keys automatically create intermediate Dict objects (like defaultdict), so you can build deeply nested structures in a single assignment chain without pre-creating parent levels.\n\nThe package inherits from dict, so it serializes to JSON and behaves like a regular dictionary in most contexts. It also provides a `to_dict()` method to convert back to a plain dict when needed. Non-string keys must still use bracket syntax, and native dict methods (keys, items, etc.) cannot be overridden as attributes, only as items.","worth_installing":"Yes. addict is stable, actively maintained, has zero known vulnerabilities, no dependencies, and installs trivially. It solves a real readability problem for nested dict work. Install it if you regularly build or navigate deeply nested dictionaries and want cleaner syntax; skip it if you prefer explicit bracket access or rarely work with nested structures."},"id":"addict","links":{"html":"https://skillfed.io/packages/addict","md":"https://skillfed.io/packages/addict.md","pypi":"https://pypi.org/project/addict/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2020-11-21","license_spdx":null,"license_treatment":"permissive","name":"addict","python_support":"unspecified","summary":"Addict is a dictionary whose items can be set using both attribute and item syntax."},"popularity":{"monthly_downloads":9569743,"position":1524,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"2.4.0"}
