deep_merge-0.0.4
توضیحات
A simple utility for merging python dictionaries.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | deep_merge-0.0.4 |
| نام | deep_merge |
| نسخه کتابخانه | 0.0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Aaron Halfaker |
| ایمیل نویسنده | aaron.halfaker@gmail.com |
| آدرس صفحه اصلی | https://github.com/halfak/deep_merge |
| آدرس اینترنتی | https://pypi.org/project/deep_merge/ |
| مجوز | MIT |
# Deep Merge
This library contains a simple utility for deep-merging dictionaries and the
data structures they contain.
* **Installation:** ``pip install deep_merge``
* **Documentation:** https://pythonhosted.org/deep_merge
* **Repositiory:** https://github.com/halfak/deep_merge
* **License:** MIT
## Example
>>> import deep_merge
>>>
>>> print(deep_merge.merge({'a': {'b': 10}}, {'a': {'c': 5}}))
{'a': {'b': 10, 'c': 5}}
Note that the first parameter is modified and will be assigned the return value.
>>> d1 = {}
>>> d2 = {'a': 1}
>>> deep_merge.merge(d1, d2)
>>> print(d1)
{'a': 1}
## Author
* Aaron Halfaker -- https://github.com/halfak
نحوه نصب
نصب پکیج whl deep_merge-0.0.4:
pip install deep_merge-0.0.4.whl
نصب پکیج tar.gz deep_merge-0.0.4:
pip install deep_merge-0.0.4.tar.gz