Commit Graph

13 Commits

Author SHA1 Message Date
Fabio Caccamo c132cb55c1
Separate installation targets (extras requires). #200 (#258)
* Add `options.extras_requires` section.

* Fix setup metadata.

* Update `extras_require`.

* Make extras requirements optional at import time.

* Require extras requirements installation when needed.

* Update exception message.

* Update `extras_require`.

* Update README.md

* Update README.md

* Fix exception message.

* Add `extras.__all__`.

* Improve tests coverage.

* Fix `io_util.is_s3`.

* Fix `io_util.is_filepath`.

* Refactor extras flags.

* Don't catch `ExtrasRequireModuleNotFoundError` on decode.

* Add tests.
2023-03-09 00:39:33 +01:00
Fabio Caccamo 1284afb8a6 Add `pyupgrade` to `pre-commit` config. 2022-12-31 18:33:20 +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 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 9ea8b4ac46 Dropped python 2.7 and python 3.5 support. 2022-02-17 23:54:30 +01:00
Fabio Caccamo a0d5829812 Updated docstrings. 2022-02-13 11:56:44 +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 a503cd365f Updated serializers encode/decode methods to be instance methods(s). 2020-02-20 17:14:48 +01:00
Fabio Caccamo fdb4569f69 Updated serializers encode/decode methods to staticmethod(s). 2020-02-19 15:16:23 +01:00
Fabio Caccamo af01fbc270 Fixed Python 2.7 support. 2020-01-20 17:03:59 +01:00
Fabio Caccamo 0ced3fe78c Refactored io_util and added serializers. 2020-01-20 16:19:53 +01:00