Commit Graph

51 Commits

Author SHA1 Message Date
Fabio Caccamo d79336dd73 Enforce top level keys check in `merge` method. #367 2024-02-24 16:25:37 +01:00
Fabio Caccamo 704ee5936e Fix calling `from_xls` passing custom options. #355 2023-12-27 11:06:42 +01:00
Fabio Caccamo db2b06bfa4 Add possibility to restrict input data sources. #287 2023-11-08 19:04:29 +01:00
Fabio Caccamo c5308777f3 Update test_issue_0039.py 2023-11-06 23:26:00 +01:00
Fabio Caccamo 4e33844d7f Fix tests for `Python 3.8`. 2023-09-18 22:54:19 +02:00
Fabio Caccamo 8b05daad7e Fix union with assignment operator inconsistent results (compared to `dict`). #334 2023-09-18 22:47:20 +02:00
Fabio Caccamo a80201e975 Fix `items` and `values` methods returned values type (cast to `benedict`). #333 2023-09-18 22:28:40 +02:00
Fabio Caccamo aa75d06360 Add test case for issue #314. 2023-07-16 11:15:53 +02:00
Fabio Caccamo 9800f21801 Prevent clearing dict instance when assigning value to itself. #294 2023-05-31 18:41:28 +02:00
Fabio Caccamo 332638df64 Allow `ini` format to support nested structures. 2023-05-16 09:24:02 +02:00
Fabio Caccamo dc29f17aec Reformat and cleanup code. 2023-02-09 19:19:02 +01:00
Fabio Caccamo b5bac348f1 Update test_issue_0027.py 2023-01-16 18:25:53 +01:00
Fabio Caccamo ff2527eca7 Fix `FileNotFoundError` if file is just the filename. #226 2023-01-11 11:12:02 +01:00
Fabio Caccamo a83e6473a6 Add support for `pathlib.Path`. #144 2023-01-02 17:53:55 +01:00
Fabio Caccamo 1284afb8a6 Add `pyupgrade` to `pre-commit` config. 2022-12-31 18:33:20 +01:00
Fabio Caccamo 0bdd999cdd
Fix `s3_options` option forwarded to `json` decoder. (#204) 2022-12-29 15:38:25 +01:00
Fabio Caccamo a7edec7285 Remove encoding pragma. 2022-12-05 20:35:43 +01:00
Fabio Caccamo b504e00d7e Add `pre-commit` with `black`, `isort` and `flake8`. 2022-10-14 16:53:06 +02:00
Fabio Caccamo 5ac299d1e7
Add `s3` support to I/O operations. (#126) 2022-10-12 15:12:03 +02:00
Fabio Caccamo 195ed03ae1 Fix `toml` encoding circular reference error. #110 2022-09-06 13:11:15 +02:00
Fabio Caccamo 4ef9c25114 Fix set dict item value in list. #109 2022-08-23 10:00:10 +02:00
Fabio Caccamo 244f6056bc Fixed `orjson` compatibility. #102 2022-07-15 23:53:34 +02:00
Fabio Caccamo 74db9d7b7c Fixed broken `yaml` serialization with `benedict` attributes. #89 2022-04-27 19:26:34 +02:00
Fabio Caccamo 95a0ca196c Fixed `flatten` not working when separator is equal to `keypath_separator`. #88 2022-04-27 19:26:21 +02:00
Fabio Caccamo 7d6b709ddf Replaced `string.format` with `f-strings`. 2022-02-18 01:02:02 +01:00
Fabio Caccamo dad6993054 Reformatted code with Black. 2022-02-13 11:35:43 +01:00
Fabio Caccamo 3b572c137f Added test case for issue #27. 2021-10-04 11:40:25 +02:00
Fabio Caccamo 8758137c89 Added tuple index support when getting items. #66 2021-10-02 16:56:28 +02:00
Fabio Caccamo 740e0c1b85 Enforced tests (thanks to @simkimsia). #60 2021-08-11 11:18:56 +02:00
Fabio Caccamo e8ccb7270e Fixed `json.dumps()` when `benedict` is initialized with an empty dict. #57 2021-08-01 12:12:05 +02:00
Fabio Caccamo f364542949 Fixed `to_toml` circular reference error. #53 2021-05-04 15:12:02 +02:00
Fabio Caccamo 0ca7599841 Fixed lists concat when merging nested dicts. #48 2021-01-19 11:55:35 +01:00
Fabio Caccamo 61e50666a7 Improved tests. 2021-01-18 16:00:22 +01:00
Fabio Caccamo 05ccdfcb95 Fixed tests. 2020-12-22 13:17:23 +01:00
Fabio Caccamo a2036f45bd Removed sort_keys=True by default in JSON serializer. 2020-12-22 13:11:00 +01:00
Fabio Caccamo 1782a9f72a Fixed broken json dumps using cloned instance. #46 2020-12-22 12:52:55 +01:00
Fabio Caccamo a121c9da9e Fixed benedict yaml representer. #43 2020-11-30 11:26:20 +01:00
Fabio Caccamo cdcc638758 Fixed dump benedict object to yaml not working correctly. #43 2020-11-27 12:06:40 +01:00
Fabio Caccamo d0b5f17295 Fixed performance issue. #39 2020-09-30 18:59:40 +02:00
Fabio Caccamo 497d3782c0 Fixed to_json returns empty dict from generator. #38 2020-09-29 10:31:55 +02:00
Fabio Caccamo 06c13218cd Removed old @unittest.skip commented decorator. 2020-09-23 11:12:18 +02:00
Fabio Caccamo a7301ee1f8 Enforced BaseDict pointer tests. 2020-09-23 10:19:13 +02:00
Fabio Caccamo e879cda2b7 Fixed test_issue_0034. 2020-09-22 15:19:39 +02:00
Fabio Caccamo 51169d8a79 Fixed json.dumps no longer works directly with benedict. #34 2020-09-22 15:09:40 +02:00
Fabio Caccamo 9f5602cf1e Fixed test method name. 2020-09-22 14:17:23 +02:00
Fabio Caccamo 1bf7864ecb Added match utility method. #11 #16 2020-09-22 14:10:59 +02:00
Fabio Caccamo 81197b2d71 Fixed keypath_separator inheritance when init from another benedict instance. #35 2020-09-22 14:07:50 +02:00
Fabio Caccamo eac655b67f Added BaseDict to keep pointer to the initial input dict. #32 2020-09-17 19:05:55 +02:00
Fabio Caccamo 0abe713e84 Updated dict pointers test. #25 2020-09-04 15:58:37 +02:00
Fabio Caccamo b9dfedf8da Added test case for issue #25 2020-09-02 13:48:22 +02:00