addict
Addict is a dictionary whose items can be set using both attribute and item syntax.
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction: pure Python wheel with no runtime dependencies.
- Actively maintained as of March 2026 with 2546 repository stars.
License · maintenance · safety
permissive license (permissive) — MIT license (permissive) means you can use, modify, and distribute this package with minimal restrictions in both open-source and commercial projects.
last release 2020-11-21 (2092 days) · last repo commit 2026-03-24 · 2,546 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 9,569,743 downloads/mo, #1,524 on PyPI
Alternatives
Verify before relying
from addict import Dict
mapping = Dict()
mapping.a.b.c.d.e = 2
print(mapping) # {'a': {'b': {'c': {'d': {'e': 2}}}}}- Whether Python 2.7 support is still actively tested or merely declared in classifiers
- Performance characteristics when working with very large nested structures
What it is and 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.
The 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.
Use it for
- 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
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
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.
Install
addict on PyPI
Before you install
Low friction: pure Python wheel with no runtime dependencies. Actively maintained as of March 2026 with 2546 repository stars.
License in practice
MIT license (permissive) means you can use, modify, and distribute this package with minimal restrictions in both open-source and commercial projects.
Quickstart
from addict import Dict
mapping = Dict()
mapping.a.b.c.d.e = 2
print(mapping) # {'a': {'b': {'c': {'d': {'e': 2}}}}}
Verify before relying
- Whether Python 2.7 support is still actively tested or merely declared in classifiers
- Performance characteristics when working with very large nested structures
Package facts
| License | permissive license permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 2,092 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 9,569,743 / month, #1,524 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2.7Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python Modules |
Evidence: addict-2.4.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “dict attribute syntax”
- addictProvides a dictionary subclass that allows nested attribute-style…
- python-boxBox wraps Python dictionaries to enable dot-notation attribute access…
- munchMunch provides a dictionary subclass that allows attribute-style…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also easydict · mo-dots · od · flatdict · jsonasobj2 · constantdict · attrdict · munch · hydraters