Repository navigation
v0.3.0
A column's date order, format strings for other tools, and a Python
package. All of it is new API: nothing that existed changed, and every input
parses to what it did in 0.2.1.
Added
detectColumnandColumn: which order a column writes its numeric dates
in, month, day or year first, from all of its values where one value
cannot say. One13/02/2024settles day first for the whole column, and
two-digit years narrow it together. The report gives the order, the value
that settled it, any values that contradict it, and theOptionsthat read
the column in it.Columntakes values one at a time and allocates
nothing. In C:dateparsa_column_init,dateparsa_column_addand
dateparsa_column_summarize.Layout.dateOrder(): the order a numeric layout reads year, month and day
in.Layout.formatString(dialect, detected_from, writer): a detected format as
another tool's format string, in strftime (C, Python, pandas, Ruby), Go or
Java (also Kotlin and Spark) form, such as%d/%m/%Y %H:%M. A field a
dialect cannot spell iserror.Unsupported, never a string that reads
something else. Every example in the format table is checked in Python, Go
and Java bytools/format_check.sh. In C:dateparsa_format_stringand
the new statusDATEPARSA_UNSUPPORTED.- A Python package,
pip install dateparsa: wheels for Linux (glibc and musl),
macOS 13 and later, and Windows, on x86_64 and arm64, for Python 3.9 and
later, wrapping the release libraries withctypes.parse,detect,
Parser,Layout(withformat_string),detect_columnandColumn,
with options as keyword arguments, results asdatetimes, andNoMatch,
AmbiguousandNoBaseTimeasValueErrors. Every release installs each
wheel on its platform and runs the tests before publishing to PyPI as a
trusted publisher.