You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been trying to use the settings with this from dateparser.settings import default_parsers parsers = [parser for parser in default_parsers if parser != 'relative-time'] parse('today', settings={'PARSERS': parsers})
and it throws with ModuleNotFoundError: No module named 'dateparser.settings'.
Is there something I am missing? I have installed dateparser with pip as admin and have access to everything as admin as well.
Thanks for any help.
Maybe the settings should be an enum? this way they can be auto-completed (and auto documented, by using tools such as sphinx.autodoc) so there will be no need to "guess" what settings are available.
The concrete items are done (#797, #728, #794, #722). The per-parser check is open-ended, so I am closing this in favor of specific issues and PRs for settings that a parser ignores, e.g. #804, #828, #1350, #1347.
Activity
mnikolop commentedon Oct 2, 2020
I have been trying to use the settings with this
from dateparser.settings import default_parsersparsers = [parser for parser in default_parsers if parser != 'relative-time']parse('today', settings={'PARSERS': parsers})and it throws with
ModuleNotFoundError: No module named 'dateparser.settings'.Is there something I am missing? I have installed dateparser with pip as admin and have access to everything as admin as well.
Thanks for any help.
noviluni commentedon Oct 5, 2020
Hi @mnikolop , there is an error in the docs that will be fixed in the next version. You can import
default_parsersfromdateparser_data.settings:DeepSpace2 commentedon Oct 11, 2020
Maybe the settings should be an enum? this way they can be auto-completed (and auto documented, by using tools such as
sphinx.autodoc) so there will be no need to "guess" what settings are available.AdrianAtZyte commentedon Sep 29, 2026