dict-utils-0.1.2
توضیحات
Set of utilities and accessory methods to work with Python dicts.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | dict-utils-0.1.2 |
| نام | dict-utils |
| نسخه کتابخانه | 0.1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Andrea Grandi |
| ایمیل نویسنده | a.grandi@gmail.com |
| آدرس صفحه اصلی | https://github.com/glowdigitalmedia/dict-utils/ |
| آدرس اینترنتی | https://pypi.org/project/dict-utils/ |
| مجوز | UNKNOWN |
# dict-utils 
[](http://travis-ci.org/#!/glowdigitalmedia/dict-utils)
[](https://coveralls.io/r/glowdigitalmedia/dict-utils?branch=master)
[](http://badge.fury.io/py/dict-utils)
dict-utils is a set of utilities and accessory methods usable
with Python dicts.
## Examples
1. Search for a value in a dictionary, passing a key:
```python
from dict_utils import dict_utils
dict_1 = {'first_level': {'second_level': {'name': 'Joe', 'age': 30}}}
found_value = dict_utils.dict_search_value(dict_1, 'name')
```
**found_value** will contain **'Joe'**
2. Compare two different dictionaries having the same keys
```python
from dict_utils import dict_utils
dict_1 = {'first_level': {'second_level': {'name': 'Joe', 'age': 30}}}
dict_2 = {'level_1': {'level_2': {'name': 'Joe', 'age': 30}}}
dict_utils.compare_assert_dicts(self, ['name', 'age'], dict_1, dict_2)
```
## Running Tests
```
python setup.py test
```
نحوه نصب
نصب پکیج whl dict-utils-0.1.2:
pip install dict-utils-0.1.2.whl
نصب پکیج tar.gz dict-utils-0.1.2:
pip install dict-utils-0.1.2.tar.gz