best-doctor / import_me

Python library to simplify importing data from xls/xlsx
MIT License
11 stars 12 forks source link

Issue/#5 "Feature request: guess datetime/date format in DateProcesso… #8

Closed dodgyturtle closed 4 years ago

dodgyturtle commented 4 years ago

…r/DatetimeProcessor"

  1. modified: import_me/processors.py Add feature to DateTimeProcessor to guess date and time whe the format = None or format = [].
  2. modified: requirements.txt Add dateutils.
  3. modified: setup.cfg Add minimal version Python 3.7
  4. modified: tests/test_processors.py Add test for new feature.

The DateTimeProcessor class has been modified. Now you can not specify the date and time format. If the variable is "None" or [], the opportunity will be taken to guess the format of the date and time. In case of failure, an error will be generated: "Unable to convert "value" to date." Added restrictions on the version of python from 3.7 in connection with the use of "Collection" in typing.

Melevir commented 4 years ago

Thanks!