Metadata-Version: 2.1
Name: attd
Version: 0.4
Summary: Dictionary with attribute access to keys
Home-page: https://github.com/otsaloma/attd
Author: Osmo Salomaa
Author-email: otsaloma@iki.fi
License: MIT
Platform: UNKNOWN
Requires-Python: >=3.1.0
Description-Content-Type: text/markdown

Attribute Dictionary
====================

[![Build Status](https://travis-ci.org/otsaloma/attd.svg)](https://travis-ci.org/otsaloma/attd)
[![PyPI](https://img.shields.io/pypi/v/attd.svg)](https://pypi.org/project/attd/)

attd is a Python package that provides a dictionary with attribute
access to keys. It is especially convenient when working with deeply
nested data from JSON APIs.

## Installation

```bash
pip install attd
```

## Documentation

```python
>>> from attd import AttributeDict
>>> data = AttributeDict({"a": {"b": {"c": 1}}})
>>> data["a"]["b"]["c"]
1
>>> data.a.b.c
1
>>> from attd import FallbackAttributeDict
>>> data = FallbackAttributeDict({})
>>> data["a"]["b"]["c"]
FallbackAttributeDict()
>>> data.a.b.c
FallbackAttributeDict()
```


