BSD Ports

time/py-dateparser 1.4.3 NetBSD

Date parsing library designed to parse dates from HTML pages

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
f5e326cb68
License
modified-bsd
Categories
time, python
Package size
428.4 KiB, 3657.1 KiB installed

Description

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

In the other systems

SystemPortVersion
NetBSDtime/py-dateparser1.4.3
DragonFlydevel/py-dateparser1.2.0_1

Install

Binary package:

pkgin install py311-dateparser

From pkgsrc:

cd /usr/pkgsrc/time/py-dateparser && make install clean

Dependencies

Run dependencies 5
Required by 1

Configuration

No options to configure.

Service scripts
none
Flavors
py312-dateparser-1.4.3, py313-dateparser-1.4.3, py314-dateparser-1.4.3

Commit history 2

DateCommitCreditsLog message
f5e326cb68 adam py-dateparser: updated to 1.4.3
1.4.3 (2026-09-03) Fixes: - Make parsing thread-safe: parsing from several threads no longer raises an intermittent ``KeyError`` from the shared language caches, and a ``DATE_ORDER`` or ``RELATIVE_BASE`` value meant for one parse no longer leaks into the settings that other parses read, where it could make them return a wrong date - Do not share the language detector and the detected locale between ``search_dates()`` calls, so concurrent searches over text in different languages no longer return ``None`` or a date read in the wrong locale - Resolve the ``BST`` and ``HDT`` timezone abbreviations to the offsets the tz database gives them, UTC+1 (British Summer Time) and UTC-9 (Hawaii-Aleutian Daylight Time), instead of +11 and -9:30, which no …
934e9c9b4a adam py-dateparser: updated to 1.4.2
1.4.2 (2026-08-04) New features: - Add an ``IGNORE_SURROUNDING_TEXT`` setting that, when enabled, retries parsing after ignoring the leading and trailing words the language does not recognize, so a date wrapped in extra text such as "Published on 16/04/2019" is parsed - Add a ``strategy`` argument to ``search_dates()`` to choose the search strategy: the default ``"split"`` keeps the current behavior, while the new ``"ngram"`` strategy parses the longest sequences of tokens as dates for more predictable results on noisy text Fixes: - Do not read a two-digit number as a year once a later component has been found in year-first date orders, so the day in Japanese dates such as "4月20日" is no longer consumed as the year …