2019-06-11 12:50:03 +00:00
|
|
|
# Changelog
|
|
|
|
All notable changes to this project will be documented in this file.
|
|
|
|
|
|
|
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
|
|
2020-11-27 11:57:17 +00:00
|
|
|
## [0.22.1](https://github.com/fabiocaccamo/python-benedict/releases/tag/0.22.1) - 2020-11-27
|
|
|
|
- Fixed dump `benedict` object to `yaml` not working correctly. #43
|
|
|
|
|
2020-10-15 12:19:12 +00:00
|
|
|
## [0.22.0](https://github.com/fabiocaccamo/python-benedict/releases/tag/0.22.0) - 2020-10-15
|
|
|
|
- Added `get_uuid` and `get_uuid_list` methods.
|
|
|
|
|
2020-09-30 17:05:03 +00:00
|
|
|
## [0.21.1](https://github.com/fabiocaccamo/python-benedict/releases/tag/0.21.1) - 2020-09-30
|
|
|
|
- Fixed performance issue. #39
|
|
|
|
- Fixed `to_json` returns empty dict from generator. #38
|
|
|
|
- Refactored `BaseDict` class and enforced tests.
|
|
|
|
|
2020-09-22 13:20:08 +00:00
|
|
|
## [0.21.0](https://github.com/fabiocaccamo/python-benedict/releases/tag/0.21.0) - 2020-09-22
|
|
|
|
- Added `match` utility method. #11 #16
|
|
|
|
- Added `indexes` option support to keypaths method. #13
|
|
|
|
- Updated `keypaths` method to use the default `keypath_separator` (`.`) instead of `None`.
|
|
|
|
- Fixed `keypath_separator` inheritance when init from another `benedict` instance. #35
|
|
|
|
- Fixed `json.dumps` no longer works directly with `benedict`. #34
|
|
|
|
|
2020-09-20 17:45:46 +00:00
|
|
|
## [0.20.0](https://github.com/fabiocaccamo/python-benedict/releases/tag/0.20.0) - 2020-09-20
|
|
|
|
- Added `BaseDict` as base class to keep pointer to the initial input dict. #32
|
|
|
|
- Added automatic `benedict` casting to all methods that return dict instances.
|
|
|
|
- Updated `flatten` method, now a `KeyError` is raised in case of existing key.
|
|
|
|
|
2020-09-11 13:17:12 +00:00
|
|
|
## [0.19.0](https://github.com/fabiocaccamo/python-benedict/releases/tag/0.19.0) - 2020-09-11
|
|
|
|
- Added `plist` format support.
|
|
|
|
- Enforced `IODict` initial check when using filepath or data-string.
|
|
|
|
- Improved `KeyError` messages. PR #28
|
|
|
|
- Added encoding optional argument to `io_util.read_file` and `io_util.write_file`.
|
|
|
|
- Fixed python 3.5/3.6 I/O encoding issue.
|
|
|
|
|
2020-09-04 13:59:36 +00:00
|
|
|
## [0.18.2](https://github.com/fabiocaccamo/python-benedict/releases/tag/0.18.2) - 2020-09-02
|
|
|
|
- Added `find` method. #23
|
|
|
|
- Added `overwrite` option support to merge method. #24
|
|
|
|
- Fixed format auto-detection with unexpected extensions. #19
|
|
|
|
|
2020-03-13 12:56:18 +00:00
|
|
|
## [0.18.1](https://github.com/fabiocaccamo/python-benedict/releases/tag/0.18.1) - 2020-03-13
|
|
|
|
- Added data format auto-detection when creating instance with data from filepath or url.
|
|
|
|
- Fixed `keypath_separator` support when using `from_{format}` methods.
|
|
|
|
|
2020-02-21 12:55:44 +00:00
|
|
|
## [0.18.0](https://github.com/fabiocaccamo/python-benedict/releases/tag/0.18.0) - 2020-02-21
|
|
|
|
- Added `from_pickle` and `to_pickle` methods.
|
|
|
|
- Added `PickleSerializer`.
|
|
|
|
- Added `datetime`, `Decimal` and `set` support to `JSONSerializer`.
|
|
|
|
- Updated `dump` method to use `JSONSerializer`.
|
|
|
|
- Refactored `Base64Serializer`.
|
|
|
|
- Fixed `type_util.is_json_serializable` with `set` objects.
|
|
|
|
- Fixed `search` method for int no results - #7
|
|
|
|
- Improved `invert` method to handles correctly lists and tuples.
|
|
|
|
- Improved `io_util.read_file` and `io_util.write_file methods`.
|
|
|
|
- Improved code quality and CI.
|
|
|
|
|
2020-02-06 14:37:28 +00:00
|
|
|
## [0.17.0](https://github.com/fabiocaccamo/python-benedict/releases/tag/0.17.0) - 2020-02-06
|
|
|
|
- Added `groupby` utility method.
|
|
|
|
- Added `nest` utility method.
|
|
|
|
- Added `keylists` core method.
|
|
|
|
- Reorganized lib and tests packages.
|
|
|
|
- Improved code quality and CI.
|
|
|
|
|
2020-01-30 14:34:37 +00:00
|
|
|
## [0.16.0](https://github.com/fabiocaccamo/python-benedict/releases/tag/0.16.0) - 2020-01-30
|
|
|
|
- Added `KeylistDict` with list indexes support. #1
|
|
|
|
- Added `benedict.utils.type_util` with many utility functions.
|
|
|
|
- Improved code quality and CI.
|
|
|
|
|
2020-01-13 13:56:30 +00:00
|
|
|
## [0.15.0](https://github.com/fabiocaccamo/python-benedict/releases/tag/0.15.0) - 2020-01-13
|
|
|
|
- Added `rename` method.
|
|
|
|
- Added `search` method.
|
|
|
|
- Added `unflatten` method.
|
|
|
|
|
2020-01-07 15:01:55 +00:00
|
|
|
## [0.14.1](https://github.com/fabiocaccamo/python-benedict/releases/tag/0.14.1) - 2020-01-07
|
|
|
|
- Fixed `keypath_separator` value in instances returned by `copy`, `clone`, `filter`, `flatten`, `invert`, `subset` methods. #4
|
|
|
|
- Fixed `get` doesn't work when the key is a list with one element. #5
|
|
|
|
- Fixed `pickle` `AttributeError`. #6
|
|
|
|
|
2019-12-18 10:19:57 +00:00
|
|
|
## [0.14.0](https://github.com/fabiocaccamo/python-benedict/releases/tag/0.14.0) - 2019-12-18
|
|
|
|
- Added docstrings to methods. #2
|
|
|
|
- Added test case for stackoverflow answered questions.
|
|
|
|
- Added possibility to run tests using only `unittest`.
|
|
|
|
- Improved code quality and CI.
|
|
|
|
- Improved keypath support in `fromkeys` method.
|
|
|
|
- Improved url, file, data autodetect in `io_util.read_content`.
|
|
|
|
- Refactored `standardize` utility method.
|
|
|
|
- Removed duplicated code and `benedicton` decorator.
|
|
|
|
- Renamed `options` arg to `choices` in `ParseDict` methods.
|
|
|
|
- Replaced unsafe `yaml.load` with `yaml.safe_load`.
|
|
|
|
|
2019-11-07 16:52:13 +00:00
|
|
|
## [0.13.0](https://github.com/fabiocaccamo/python-benedict/releases/tag/0.13.0) - 2019-11-07
|
|
|
|
- Added `csv` I/O support.
|
|
|
|
- Refactored I/O dict class and utils.
|
|
|
|
- Improved tests.
|
|
|
|
|
2019-10-29 15:31:49 +00:00
|
|
|
## [0.12.0](https://github.com/fabiocaccamo/python-benedict/releases/tag/0.12.0) - 2019-10-29
|
|
|
|
- Added `standardize` utility method.
|
|
|
|
- Added `traverse` utility method.
|
|
|
|
- Added `keypath_separator` getter/setter.
|
|
|
|
- Improved `base64` I/O support.
|
|
|
|
- Improved tests.
|
|
|
|
- Refactored `benedict` class and utilies.
|
|
|
|
|
2019-10-14 14:34:18 +00:00
|
|
|
## [0.11.1](https://github.com/fabiocaccamo/python-benedict/releases/tag/0.11.1) - 2019-10-14
|
|
|
|
- Added `io_util.decode_bytes` utility method.
|
|
|
|
|
2019-10-14 12:47:49 +00:00
|
|
|
## [0.11.0](https://github.com/fabiocaccamo/python-benedict/releases/tag/0.11.0) - 2019-10-14
|
|
|
|
- Added `query-string` I/O support.
|
|
|
|
- Added `unique` utility method.
|
|
|
|
- Added urldecode, padding fix and `format=None` support to `io_util.decode_base64` utility.
|
|
|
|
- Refactored `benedict` class and utilies.
|
|
|
|
|
2019-10-03 16:49:01 +00:00
|
|
|
## [0.10.0](https://github.com/fabiocaccamo/python-benedict/releases/tag/0.10.0) - 2019-10-03
|
|
|
|
- Added `base64` I/O support.
|
|
|
|
- Added `invert` utility method.
|
|
|
|
- Added `items_sorted_by_keys` utility method.
|
|
|
|
- Added `items_sorted_by_values` utility method.
|
|
|
|
- Refactored `benedict` class and utilies.
|
|
|
|
|
2019-09-23 12:14:06 +00:00
|
|
|
## [0.9.0](https://github.com/fabiocaccamo/python-benedict/releases/tag/0.9.0) - 2019-09-23
|
|
|
|
- Added `xml` I/O support.
|
|
|
|
|
2019-09-20 14:21:31 +00:00
|
|
|
## [0.8.0](https://github.com/fabiocaccamo/python-benedict/releases/tag/0.8.0) - 2019-09-20
|
|
|
|
- Added `toml` I/O support.
|
|
|
|
|
|
|
|
## [0.7.0](https://github.com/fabiocaccamo/python-benedict/releases/tag/0.7.0) - 2019-09-17
|
2019-09-17 09:50:47 +00:00
|
|
|
- Added `yaml` I/O support.
|
|
|
|
|
2019-09-10 14:58:26 +00:00
|
|
|
## [0.6.0](https://github.com/fabiocaccamo/python-benedict/releases/tag/0.6.0) - 2019-09-10
|
|
|
|
- Added `IODict` with `json` support.
|
|
|
|
- Added `clone` (`deepcopy` alias) and `merge` (`deepupdate` alias) methods.
|
|
|
|
|
2019-07-19 09:02:18 +00:00
|
|
|
## [0.5.2](https://github.com/fabiocaccamo/python-benedict/releases/tag/0.5.2) - 2019-07-19
|
|
|
|
- Refactored `KeypathDict`.
|
|
|
|
- Added `remove` utility method.
|
|
|
|
- Added `subset` utility method.
|
|
|
|
- Fixed string casting in parse functions on python 2.
|
|
|
|
|
2019-07-10 16:26:51 +00:00
|
|
|
## [0.5.1](https://github.com/fabiocaccamo/python-benedict/releases/tag/0.5.1) - 2019-07-10
|
|
|
|
- Added timestamp support to get_datetime parse method.
|
|
|
|
|
2019-07-09 14:04:36 +00:00
|
|
|
## [0.5.0](https://github.com/fabiocaccamo/python-benedict/releases/tag/0.5.0) - 2019-07-09
|
|
|
|
- Added custom or `None` keypath `separator` support.
|
|
|
|
- Added `filter` utility method.
|
|
|
|
- Improved tests and code quality.
|
|
|
|
|
2019-07-02 14:33:18 +00:00
|
|
|
## [0.4.2](https://github.com/fabiocaccamo/python-benedict/releases/tag/0.4.2) - 2019-06-19
|
|
|
|
- Fixed `parse_str` UnicodeEncodeError on python 2.
|
|
|
|
|
2019-06-19 15:56:19 +00:00
|
|
|
## [0.4.1](https://github.com/fabiocaccamo/python-benedict/releases/tag/0.4.1) - 2019-06-18
|
2019-06-18 09:46:51 +00:00
|
|
|
- Fixed `get_phonenumber` not working with numbers without country prefix.
|
|
|
|
- Renamed `country` arg to `country_code` in `get_phonenumber` method.
|
|
|
|
|
2019-06-19 15:56:19 +00:00
|
|
|
## [0.4.0](https://github.com/fabiocaccamo/python-benedict/releases/tag/0.4.0) - 2019-06-17
|
2019-06-17 15:34:04 +00:00
|
|
|
- Added `clean` method.
|
|
|
|
- Added `get_email` method.
|
|
|
|
- Added `get_phonenumber` method.
|
|
|
|
|
2019-06-11 16:42:10 +00:00
|
|
|
## [0.3.2](https://github.com/fabiocaccamo/python-benedict/releases/tag/0.3.2) - 2019-06-11
|
2019-06-11 16:41:01 +00:00
|
|
|
- Added support to key-list as key.
|
|
|
|
- Fixed `setup.py` requirements installation on Python 2.7.
|
|
|
|
|
|
|
|
## [0.3.1](https://github.com/fabiocaccamo/python-benedict/releases/tag/0.3.1) - 2019-06-11
|
|
|
|
- Added `dump` and `dump_items` utility methods.
|
2019-06-11 12:50:03 +00:00
|
|
|
|
2019-06-11 13:53:36 +00:00
|
|
|
## [0.3.0](https://github.com/fabiocaccamo/python-benedict/releases/tag/0.3.0) - 2019-06-10
|
2019-06-11 16:41:01 +00:00
|
|
|
- Added casting to `benedict` to all dicts returned by any public method.
|
|
|
|
- Renamed `get_keypaths` to `keypaths` according to keys and values existing methods.
|
2019-06-11 13:53:36 +00:00
|
|
|
- Reorganized lib structure to improve scalability.
|
|
|
|
- Added python 2.7 support.
|
|
|
|
- Improved code quality.
|
2019-06-11 12:50:03 +00:00
|
|
|
|
2019-06-11 13:53:36 +00:00
|
|
|
## [0.2.0](https://github.com/fabiocaccamo/python-benedict/releases/tag/0.2.0) - 2019-05-20
|
2019-06-11 16:41:01 +00:00
|
|
|
- Improved `parse_bool` method.
|
|
|
|
- Added keypath support to `pop` method and refactored core methods.
|
|
|
|
- Added `get_keypaths` method.
|
|
|
|
- Added keypath support to `fromkeys` method.
|
|
|
|
- Added `deepcopy` shortcut method.
|
|
|
|
- Added keypath support to `copy` method.
|
|
|
|
- Refactored `KeypathDict` core methods.
|
2019-06-11 12:50:03 +00:00
|
|
|
|
2019-06-11 13:53:36 +00:00
|
|
|
## [0.1.0](https://github.com/fabiocaccamo/python-benedict/releases/tag/0.1.0) - 2018-05-17
|
|
|
|
- Released package on pypi.
|