Metadata-Version: 2.1
Name: Bigt
Version: 2019.1.1
Summary: Extention of the inbuild dict type.
Home-page: https://gitlab.com/vladku/bigt
Author: Vladyslav Kurovskyi
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown

# bigt

Extention of the inbuild dict type.
Main reason is add merge and issubset method to simplify working with nested dictionaries.

Examples:

```python
    a = {"a": {"a": "str", "b": 123}}
    b = {"a": {"a": "str", "b": 1234}}
    result, not_present, changed = DictExt(b).issubset(a)
    assert not result
    assert changed == {"a": {"b": {"old": 1234, "new": 123} } }
    assert not not_present
```

```python
    >>> DictExt({"a": 3, "b": [{"b": 123}]}) + DictExt({"a": 1, "c": False, "b": [{"a": 12.64}]})
    {'a': 1, 'b': [{'b': 123, 'a': 12.64}], 'c': False}
```

```python
    >>> DictExt({"aa": 3, "a": [{"b": {"bv": 1, "bc": 2}, "a": 1}, [3,1,8,5]]}).sort()
    {'a': [[1, 3, 5, 8], {'a': 1, 'b': {'bc': 2, 'bv': 1}}], 'aa': 3}
```

