./time/py-dateparser, Date parsing library designed to parse dates from HTML pages

[ Image CVSweb ] [ Image Homepage ] [ Image RSS ] [ Image Required by ] [ Image Add to tracker ]


Branch: CURRENT, Version: 1.4.0, Package name: py313-dateparser-1.4.0, Maintainer: pkgsrc-users

dateparser provides modules to easily parse localized dates in almost any
string formats commonly found on web pages.


Required to run:
[time/py-dateutil] [time/py-pytz] [time/py-tzlocal] [textproc/py-regex] [lang/python310]

Master sites:

Filesize: 313.977 KB

Version history: (Expand)


CVS history: (Expand)


   2026-03-31 06:38:26 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-dateparser: updated to 1.4.0

1.4.0 (2026-03-26)

Security fixes:

- Remove import-time loading of timezone offset data from pickle to prevent
  unsafe deserialization from packaged data
- Replace ``eval()`` use when parsing ``no_word_spacing`` with strict boolean
  parsing to prevent code execution from locale metadata

New features:

- Add support for expressions like "N {interval} from now" in English
- Add support for the ``en-US`` locale

Fixes:

- Honor ``REQUIRE_PARTS`` for ambiguous month-number inputs by retrying with a
  year-biased ``DATE_ORDER``
- Fix parsing word-number relative phrases such as "two days later"
- Allow md5hash to work in FIPS environments

Improvements:

- Add Bosnian Cyrillic (ijekavica) date translations
- Add a new browser-based demo to the project documentation
- Update installation documentation to replace ``setup.py install`` guidance
- Add a project security policy
   2026-02-06 08:53:42 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-dateparser: updated to 1.3.0

1.3.0 (2026-02-04)

Dropped Python 3.9 support.

New features:

- ``search_dates()`` can now detect time spans from expressions like “past
  month”, “last week”, etc. For details, see the “Time Span Detection” \ 
section
  and the ``RETURN_TIME_SPAN``, ``DEFAULT_START_OF_WEEK`` and
  ``DEFAULT_DAYS_IN_MONTH`` settings in the documentation.

Fixes:

- Assume the current year if not specified
- Support expressions like “yesterday +1h”
- English: Support most 2-letter day-of-the-week names
- English: Support “in N weeks' time”
- Finnish: Support dates with “klo”
- Russian: Support compound ordinals

Cleanups and internal improvements:

- Fixed year expectation issues in tests.
   2025-07-02 14:47:11 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-dateparser: updated to 1.2.2

1.2.2 (2025-06-26)

Fixes:

- Handle the Russian preposition “с”
- Fix weekday search

Improvements:

- Add Python 3.14 support
- Cache timezone offsets to improve import time
   2025-04-14 10:49:21 by Adam Ciarcinski | Files touched by this commit (33) | Package updated
Log message:
Fix PLIST after py-setuptools update; bump depends and revision
   2025-02-05 17:22:31 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-dateparser: updated to 1.2.1

1.2.1 (2025-02-05)

Fixes:

- Fix PytzUsageWarning
- Fix date_parser with prefer_month_of_year wrong results
- Fix skipped day when UTC and tz are different days

Improvements:

- Avoid repeated loop over timezones
- Proofread README.rst
- Check for derived types for configuration
- Parse some abbreviated strings as relative dates
- Migrate from hijri-converter to hijridate
- Fixed ClusterFuzz build error by adding dateparser.data as a binary
- Fix an issue detected by OSSFuzz
- Support two-digit years in non-Gregorian calendars
- Refactored CI to run extras separately and test minimum versions of \ 
dependencies, replaced flake8 with ruff, fixed tests
- Set minimum versions for dependencies
- Limited ``numpy`` to 1.x when installing ``dateparser[fasttext]``
   2023-11-17 21:48:06 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-dateparser: updated to 1.2.0

1.2.0 (2023-11-17)
------------------

New features:

- New ``PREFER_MONTH_OF_YEAR`` setting

Fixes:

- Absolute years in Russian are no longer being treated as a number of years in
  the past

Cleanups and internal improvements:

- Removed the use of ``datetime.utcnow``, deprecated on Python 3.12
- Applied Black formatting to the code base
- Initial integration with OSSFuzz
- Extended test cases
   2023-03-29 14:57:16 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-dateparser: updated to 1.1.8

1.1.8 (2023-03-22)
------------------

Improvements:
- Improved date parsing for Chinese
- Improved date parsing for Czech
- Reorder language by popularity
- Fix leak of memory in cache
- Add support for "\d units later"
- Move modification in CLDR data to yaml
- Add support to use timezone via settings to get PREFER_DATES_FROM result
   2023-01-01 22:39:23 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-dateparser: updated to 1.1.5

1.1.5 (2022-12-29)
------------------

Improvements:

- Parse short versions of day, month, and year
- Add a test for “in 1d”
- Update languages_info
- Add a workaround for zipimporter not having exec_module before Python 3.10
- Stabilize tests at midnight
- Add a test case for French

Cleanups:

- Remove the requirements-build file