dictionary utils
Project description
# dictutils dictionary utils.
## Installation
This is a pure-Python package built for Python 2.7+ and Python 3.0+. To set up
pip install 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.0.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for py_dictutils-0.1.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da1f6e0a7812d714c92787c25633bd1ec8285c03bc34b9b81eb32f5a745733fe |
|
MD5 | bb68d3a5070e16866cd75d43220fc24e |
|
BLAKE2b-256 | 7a66e436ee577fb8799eb2d98af6d403dba78170ca7720c269892534d35cb0c2 |