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+

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.

Files for py-dictutils, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size py_dictutils-0.1.1-py2-none-any.whl (5.4 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size py-dictutils-0.1.1.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page