{"categories":[{"label":"Text Processing","url":"https://skillfed.io/packages/category/text-processing/2"}],"enrichment":{"capability":"Parses date strings with partial precision (year, month, or day) into a structured format, normalizing and validating them for use in applications that handle incomplete date information.","skillfed_tags":["date-parsing","data-normalization"],"use_cases":["Normalize dates from historical datasets where only year or year-month is known, preserving precision information.","Parse user-supplied dates in custom formats and standardize them to ISO 8601-like strings for storage.","Validate and re-format partial dates in metadata systems that track date confidence.","Handle datetime objects with custom precision truncation (e.g., round to minute or hour level).","Accept dates in multiple formats and produce consistent normalized output."],"what_it_does":"Prefixdate is a lightweight date parser for handling dates where only partial information is known\u2014a year alone, a year and month, or a full date. It normalizes these partial dates into a consistent format and tracks the precision level (year, month, day, or finer) so your application knows what was actually specified. The library accepts strings in ISO 8601-like format (e.g., '2001', '2001-4', '2001-04-02'), integers, datetime objects, or custom format strings via strptime patterns, and returns a structured DatePrefix object with both the normalized text representation and precision metadata.\n\nThe package is designed for contexts where sources report dates with varying completeness\u2014common in historical records, metadata, or user-supplied information. It does not implement the full complexity of ISO 8601 or RFC 3339 (no date ranges, no week notation), focusing instead on the practical case of partial dates. It has no external dependencies and runs on Python 3.11 and newer.","worth_installing":"Yes. Prefixdate solves a specific, real problem\u2014handling dates with incomplete precision\u2014cleanly and with zero dependencies. It is actively maintained, licensed permissively, supports current Python versions, and has no known vulnerabilities. Install it if your application needs to parse or normalize dates where only partial information is available; skip it if you only work with complete dates."},"id":"prefixdate","links":{"html":"https://skillfed.io/packages/prefixdate","md":"https://skillfed.io/packages/prefixdate.md","pypi":"https://pypi.org/project/prefixdate/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-08","license_spdx":"MIT","license_treatment":"permissive","name":"prefixdate","python_support":"supports_current","summary":"Parse and process date string of varied precision as prefixes in Python."},"popularity":{"monthly_downloads":914009,"position":4736,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.6.1"}
