Flatdict

Latest version: v4.0.1

Safety actively analyzes 683322 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

3.1.0

- FIXED `FlatDict` behavior with empty iteratable values
- CHANGED behavior when casting to str or repr (23)

3.0.1

- Add 3.7 to Trove Classifiers
- Add Python 2.7 unicode string compatibility (22 [nvllsvm](https://github.com/nvllsvm))

3.0.0

- CHANGED `FlatDict.as_dict` to return the nested data structure based upon delimiters, coercing `FlatDict` objects to `dict`.
- CHANGED `FlatDict` to extend `collections.MutableMapping` instead of dict
- CHANGED `dict(FlatDict())` to return a shallow `dict` instance with the delimited keys as strings
- CHANGED `FlatDict.__eq__` to only evaluate against dict or the same class
- FIXED `FlatterDict` behavior to match expectations from pre-2.0 releases.

2.0.1

- FIXED metadata for pypi upload

2.0.0

- Code efficiency refactoring and cleanup
- Rewrote a majority of the tests, now at 100% coverage
- ADDED `FlatDict.__eq__` and `FlatDict.__ne__` (13 - [arm77](https://github.com/arm77))
- ADDED `FlatterDict` class that performs the list, set, and tuple coercion that was added in v1.20
- REMOVED coercion of lists and tuples from `FlatDict` that was added in 1.2.0. Alternative to (12 - [rj-jesus](https://github.com/rj-jesus))
- REMOVED `FlatDict.has_key()` as it duplicates of `FlatDict.__contains__`
- ADDED Python 3.5 and 3.6 to support matrix
- REMOVED support for Python 2.6 and Python 3.2, 3.3
- CHANGED `FlatDict.set_delimiter` to raise a `ValueError` if a key already exists with the delimiter value in it. (8)

1.2.0

- ADDED Support lists and tuples as well as dicts. (4 - [alex-hutton](https://github.com/alex-hutton))

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.