Commit Graph

29 Commits

Author SHA1 Message Date
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 8b7a9b6d98 Improved code quality. 2022-03-24 13:26:18 +01: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 b907e1a9c7 Formatted code with black. 2021-10-12 14:27:35 +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 86082e8b9f Added python-fsutil for file-system operations. 2020-12-24 16:37:16 +01:00
Fabio Caccamo b7066e1812 Removed unnecessary dict() calls. 2020-12-22 12:49:23 +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 f4cc5abdd9 Removed unnecessarily dict() calls. 2020-09-22 15:06:10 +02:00
Fabio Caccamo d7e35779c0 Replaced internal variable references with method call. 2020-09-22 14:13:08 +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 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
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 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 32cc5f459c Updated read_file and write_file utils to use Context Manager. 2020-02-20 17:12:47 +01:00
Fabio Caccamo 5b680ce5be Improved code quality. 2020-02-06 15:18:01 +01:00
Fabio Caccamo 4199b9d605 Reformatted docstrings. 2020-02-04 11:29:00 +01:00
Fabio Caccamo e1d41ae2cc Improved code quality. 2020-02-04 11:28:47 +01:00
Fabio Caccamo 3bd5271616 Reorganized lib and tests packages, improved code quality. 2020-02-03 18:25:54 +01:00