Commit Graph

135 Commits

Author SHA1 Message Date
Fabio Caccamo dad6993054 Reformatted code with Black. 2022-02-13 11:35:43 +01:00
Fabio Caccamo b907e1a9c7 Formatted code with black. 2021-10-12 14:27:35 +02:00
Fabio Caccamo 8758137c89 Added tuple index support when getting items. #66 2021-10-02 16:56:28 +02:00
Fabio Caccamo 92d9a32d5b Fixed `json.dumps()` when `benedict` is initialized with an empty dict. #57 #61 2021-08-11 11:27:02 +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 b46a87de04 Added `ini` format support. #36 #40 2021-05-04 23:22:11 +02:00
Fabio Caccamo f364542949 Fixed `to_toml` circular reference error. #53 2021-05-04 15:12:02 +02:00
Fabio Caccamo 81ff459304 Updated `to_csv` comments and usage example. [ci skip] 2021-04-23 12:56:00 +02:00
Fabio Caccamo 6bae657d44 Fixed BaseDict initialized with BaseDict subclass argument. 2021-01-18 15:52:59 +01:00
Fabio Caccamo cf4612937d Fixed get_int_list with single value. 2021-01-14 18:28:01 +01:00
Fabio Caccamo 86082e8b9f Added python-fsutil for file-system operations. 2020-12-24 16:37:16 +01:00
Fabio Caccamo 7d350139ee Added get_date and get_date_list methods. 2020-12-24 16:36:25 +01:00
Fabio Caccamo 1782a9f72a Fixed broken json dumps using cloned instance. #46 2020-12-22 12:52:55 +01:00
Fabio Caccamo b7066e1812 Removed unnecessary dict() calls. 2020-12-22 12:49:23 +01:00
Fabio Caccamo eae58feb10 Added concat option to merge method. 2020-12-09 11:03:03 +01:00
Fabio Caccamo 69cfa127da Fixed benedict yaml representer. #43 2020-11-30 11:27:54 +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 ca0defcb38 Added get_uuid and get_uuid_list methods. 2020-10-15 14:18:02 +02:00
Fabio Caccamo 471950a8e5 Refactored BaseDict class. 2020-09-30 19:03:09 +02: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 f4cc5abdd9 Removed unnecessarily dict() calls. 2020-09-22 15:06:10 +02:00
Fabio Caccamo 234b888e36 Mirrored BaseDict internal dict data to instance data. 2020-09-22 15:05:39 +02:00
Fabio Caccamo 835f8a9955 Improved BaseDict backward compatibility. 2020-09-22 14:13:44 +02:00
Fabio Caccamo d7e35779c0 Replaced internal variable references with method call. 2020-09-22 14:13:08 +02:00
Fabio Caccamo 1bf7864ecb Added match utility method. #11 #16 2020-09-22 14:10:59 +02:00
Fabio Caccamo a8ebc85105 Fixed keypath_separator inheritance when init from another benedict instance. #35 2020-09-22 14:08:31 +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 1105dc67b5 Fixed E501 warnings. 2020-09-21 18:07:00 +02:00
Fabio Caccamo 4ad0f9439e Added indexes support to keypaths method. #13 2020-09-21 16:41:44 +02:00
Fabio Caccamo 2d519d76cb Improved benedict casting support. 2020-09-19 14:42:02 +02:00
Fabio Caccamo 0baa5bb7f0 Refactored BaseDict init method. 2020-09-19 14:40:53 +02:00
Fabio Caccamo 7e7541cce5 Added automatic benedict casting to methods that return dict instances. 2020-09-19 14:40:17 +02:00
Fabio Caccamo 60d0502466 Added automatic benedict casting to methods that return dict instances. 2020-09-17 19:07:14 +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 f407bea3ec Added encoding optional argument to io_util.read_file and io_util.write_file. 2020-09-10 19:14:33 +02:00
Fabio Caccamo b8d2e72cda Improved KeyError(s) message. 2020-09-10 19:06:43 +02:00
Fabio Caccamo 4d6c43db28
Merge pull request #28 from neutrinoceros/keyerror_explicit
Insightful KeyErrors
2020-09-10 18:56:31 +02:00
Fabio Caccamo 7d2af21d15 Fixed python 3.5/3.6 I/O encoding issue. 2020-09-09 16:49:49 +02:00
Fabio Caccamo 84ff5b7406 Enforced IODict initial check when using filepath or data-string. 2020-09-09 16:47:25 +02:00
Fabio Caccamo ac789db31d Added plist support. 2020-09-09 16:45:39 +02:00
Fabio Caccamo 68311ced1e Re-ordered methods alphabetically. 2020-09-09 12:22:56 +02:00
Clément Robert dfc79a44e8 insightful keyerrors 2020-09-07 19:25:34 +02:00
Fabio Caccamo 3e4ae0622a Added overwrite option support to merge method. #24 2020-09-02 10:22:20 +02:00
Fabio Caccamo 06c740a488 Added find method. #23 2020-08-27 15:13:18 +02:00
Fabio Caccamo ebe7f1d33d Removed unnecessary try/except block. 2020-08-12 12:47:43 +02:00
Fabio Caccamo 6cd075edce Fixed format auto-detection with unexpected extensions. 2020-08-12 12:46:52 +02:00
Fabio Caccamo d0dfee0681 Added data format auto-detection when creating instance with data from filepath or url. 2020-03-13 13:54:53 +01:00
Fabio Caccamo 86a23c7c11 Fixed `keypath_separator` support when using `from_{format}` methods. #12 2020-03-13 13:53:49 +01:00