Commit Graph

44 Commits

Author SHA1 Message Date
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 a1e5b9f8cc
Fix subclasses type. #115 (#124) 2022-10-09 15:15:51 +02:00
Fabio Caccamo ee698600a2
Add read-only `xls` files (`.xlsx`, `.xlsm`, `.xls`) support. #70 (#122)
* Started adding xls format support.

* Add `openpyxl` requirement.

* Add missing serializer class declaration.

* Register serializers with their own format extension(s).

* Sort serializers alphabetically.

* Optional serializer extensions argument.

* Add xls test input files.

* Refactor `io_dict` and `io_utils` for handling correctly local and remote binary files.

* Add `xlrd` requirement for reading old format excel files.

* Remove untestes extensions support.

* Add xls serializer with `.xls`, `.xlsx`, `.xlsm` files support.

* Add support for reading remote binary files.

* Update `README.md`.
2022-10-05 16:43:46 +02:00
Fabio Caccamo 37fed12485 Fixed `swap` between dict items. 2022-07-15 23:54:34 +02:00
Fabio Caccamo 7d6b709ddf Replaced `string.format` with `f-strings`. 2022-02-18 01:02:02 +01:00
Fabio Caccamo 0457802c17 Removed dead code. 2022-02-18 00:36:49 +01:00
Fabio Caccamo 5ec473b429 Fixed py2 plist tests. 2022-02-14 23:52:50 +01:00
Fabio Caccamo dad6993054 Reformatted code with Black. 2022-02-13 11:35:43 +01:00
Fabio Caccamo 6b806036d2 Improved `KeylistDict` tests. 2021-10-02 16:50:22 +02:00
Fabio Caccamo b46a87de04 Added `ini` format support. #36 #40 2021-05-04 23:22:11 +02:00
Fabio Caccamo 61e50666a7 Improved tests. 2021-01-18 16:00:22 +01: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 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 ca0defcb38 Added get_uuid and get_uuid_list methods. 2020-10-15 14:18:02 +02:00
Fabio Caccamo 599a562977 Enforced BaseDict tests. 2020-09-30 17:08:08 +02:00
Fabio Caccamo e6f0f8486c Enforced BaseDict tests. 2020-09-22 15:07:07 +02:00
Fabio Caccamo 0b1881b83d Improved casting tests. 2020-09-22 15:06:47 +02:00
Fabio Caccamo 1bf7864ecb Added match utility method. #11 #16 2020-09-22 14:10:59 +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 eac655b67f Added BaseDict to keep pointer to the initial input dict. #32 2020-09-17 19:05:55 +02:00
Fabio Caccamo ac3895acd8 Updated flatten method, now raise KeyError in case of existing key. 2020-09-17 19:03:29 +02:00
Fabio Caccamo c255be26ef Added plist dict test case. 2020-09-10 18:09:36 +02:00
Fabio Caccamo 1ef74442c1 Fixed plist tests. 2020-09-10 18:07:09 +02:00
Fabio Caccamo 00f695d849 Fixed plist tests. 2020-09-09 18:55:43 +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 06c740a488 Added find method. #23 2020-08-27 15:13:18 +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
Fabio Caccamo b82e6bb724 Changed pickle default protocol to 2. 2020-02-21 14:36:07 +01:00
Fabio Caccamo a7aa531d54 Added from_pickle and to_pickle methods. 2020-02-21 13:54:08 +01:00
Fabio Caccamo 0e306d5307 Added parse_util test case. 2020-02-20 17:17:22 +01:00
Fabio Caccamo 84ced6c68b Added datetime, Decimal and set support to JSONSerializer. 2020-02-19 18:12:36 +01:00
Fabio Caccamo 6c9a188be1 Added nest utility method tests. 2020-02-06 15:17:09 +01:00
Fabio Caccamo eb676bcc8f Added groupby utility method. 2020-02-06 15:14:36 +01:00
Fabio Caccamo e1d41ae2cc Improved code quality. 2020-02-04 11:28:47 +01:00
Fabio Caccamo df3bcb7a52 Improved code quality. 2020-02-03 19:01:28 +01:00
Fabio Caccamo 3bd5271616 Reorganized lib and tests packages, improved code quality. 2020-02-03 18:25:54 +01:00