Skip to content

Improve settings #796

Closed
Closed

Description

@noviluni

There are some bugs related to the settings that are hard to debug and some settings that aren't documented, so I think we should address this.

This is my plan:

Activity

  1. self-assigned this
    on Sep 25, 2020
  2. mnikolop commented on Oct 2, 2020

    @mnikolop

    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.

  3. noviluni commented on Oct 5, 2020

    @noviluni
    ContributorAuthor

    Hi @mnikolop , there is an error in the docs that will be fixed in the next version. You can import default_parsers from dateparser_data.settings:

    from dateparser_data.settings import default_parsers
    
  4. DeepSpace2 commented on Oct 11, 2020

    @DeepSpace2

    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.

  5. added this to the 1.1.0 milestone on Nov 22, 2020
  6. AdrianAtZyte commented on Sep 29, 2026

    @AdrianAtZyte
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions