A Python dict that supports attribute-style access as well as hierarchical keys.
Project description
# Changes
## Version 0.4.0 (2017-07-23)
support python 2.7 and 3.4+, as well as pypy (pypy2 and dev 3.5 pypy)
100% test coverage
making available on pypi
## Version 0.3.0 (2014-08-09)
added support for dir method to improve interactive use (exposes stored keys as well as the normal instance and class attributes that would be expected)
updates to ensure that __missing__ is only used from __getitem__, and never from methods like get or by inadvertently using __getitem__ from another method
more tests
## Version 0.2.0 (2014-07-27)
main class is now ‘uberdict.udict’ (was ‘uberdict.UberDict’)
changes to how dotted keys are handled (dots have no special meaning for ‘getattr’, ‘setattr’, ‘hasattr’, ‘delattr’ but do for ‘get’ and ‘__getitem__’ and friends)
improved README docs and examples
more tests
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for uberdict-0.4.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 064fb31e80dde9cd57a140df83b70d9fce2d5a7516e3e468d7a7618a7c478dec |
|
MD5 | adc09193e924d4bca9f5f561071c4b61 |
|
BLAKE2b-256 | 94884d59246d3eb2e691c3ddf6d6637628ada28e421613f90f13e875b9cce47f |