attd-0.4
توضیحات
Dictionary with attribute access to keys
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | attd-0.4 |
| نام | attd |
| نسخه کتابخانه | 0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Osmo Salomaa |
| ایمیل نویسنده | otsaloma@iki.fi |
| آدرس صفحه اصلی | https://github.com/otsaloma/attd |
| آدرس اینترنتی | https://pypi.org/project/attd/ |
| مجوز | MIT |
Attribute Dictionary
====================
[](https://travis-ci.org/otsaloma/attd)
[](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()
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.1.0 | Python |
نحوه نصب
نصب پکیج whl attd-0.4:
pip install attd-0.4.whl
نصب پکیج tar.gz attd-0.4:
pip install attd-0.4.tar.gz