dictionary utils
Project description
# dictutils dictionary utils.
## Installation
This is a pure-Python package built for Python 2.7+ and Python 3.0+
pip install py-dictutils
## Usage
AttrDict behaves exactly like collections.OrderedDict, but also allows keys to be accessed as attributes:
>>> from dictutils import AttrDict >>> ad = AttrDict() >>> ad['a'] = 1 >>> assert ad.a == 1 >>> ad.b = 2 >>> assert ad['b'] == 2 >>> ad.c = 3 >>> assert ad.keys() == ['a', 'b', 'c']
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py-dictutils-0.1.1.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for py_dictutils-0.1.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14ee85321e1811f54596413e42c08cec01272dca983cb55f63fe429c79f07c9e |
|
MD5 | 08a51c9a3bac683d1cf6c783c59df069 |
|
BLAKE2b-256 | a2eec615e3ecc6de4535784b3fdf13fd2bea733814f555bec9f5aa166de13e19 |