Registry / serialization / attributedict

attributedict

JSON →
library0.3.0pypypiunverified

Simple dictionary subclass that exposes keys as attributes (e.g., obj.mykey instead of obj['mykey']). Requires Python 3.5+. Currently maintained with steady releases.

pip install attributedict
INSTALL
IMPORT
SIG · ATTRIBUTEDICT
A
attributedict
serializationpythonv0.3.0
Install
6.0s avg
Import
Disk
46MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.3.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 47.6MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 6.0s · import 0.000s · 48MB
46MB installed
● package 46MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AttributeDict
from attributedict import AttributeDict
from attributedict import AttributeDict

Basic usage showing attribute access, .get(), assignment, and dict representation.

from attributedict import AttributeDict # Create an AttributeDict addr = AttributeDict({'city': 'Oslo', 'zip': '0150'}) # Access keys as attributes print(addr.city) # Oslo print(addr.get('zip')) # '0150' # Set new attribute addr.country = 'Norway' print(addr) # {'city': 'Oslo', 'zip': '0150', 'country': 'Norway'}
Debug
Known issues
gotchaAttributeDict stores keys as attributes, which may shadow built-in methods (e.g., if your key is 'keys' or 'items').
fix
Avoid using keys that conflict with dict methods, or use standard dict access for those keys.
affects: all
gotchaNested dictionaries are only shallowly converted; nested dicts inside an AttributeDict remain standard dicts unless you explicitly wrap them.
fix
Recursively convert with: AttributeDict(nested_dict) for each level, or use a helper function.
affects: all
deprecatedThe library has not been updated since 2020; consider using more actively maintained alternatives like 'python-box' or 'attrdict' for newer Python versions.
fix
Evaluate if the library meets your needs; if you need ongoing support, migrate to box or attrdict.
affects: 0.3.0
Upgrade
Version history
0.3.0latest on PyPI · released Mar 10, 2019
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
16
OpenAI (training)
1
Resources
attributedict — pip install attributedict · libregistry