Skip to main content

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)

Uploaded Source

Built Distribution

py_dictutils-0.1.0-py2-none-any.whl (5.4 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page