{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/14"}],"enrichment":{"capability":"Parses and manipulates ISO Week date strings in YYYY-WNN and YYYY-WNN-D formats through dedicated classes, with optional integration for pandas, polars, and pydantic.","skillfed_tags":["date-time","data-validation"],"use_cases":["Convert a datetime series to ISO week format for reporting or data aggregation in pandas or polars workflows.","Parse and validate ISO week strings in API payloads or configuration files using pydantic models.","Perform week-based arithmetic without manual datetime manipulation.","Check if a given date falls within a specific ISO week using containment operators.","Work with custom week boundaries by applying a timedelta offset to the standard ISO definition."],"what_it_does":"iso-week-date provides classes and utilities to work with ISO Week date formats without the friction of repeatedly converting between strings, date objects, and datetime objects. The core classes\u2014IsoWeek and IsoWeekDate\u2014handle parsing from multiple input types, support arithmetic operations (addition/subtraction with integers), comparison, and range generation. IsoWeek lets you list all dates in a week or fetch the nth day; IsoWeekDate gives you the weekday as an integer and the containing ISO week as a string.\n\nThe package also includes optional modules for pandas and polars that convert between datetime series and ISO week strings, plus pydantic integration for validation. A distinctive feature is support for custom offsets\u2014you can shift the week boundary by a timedelta to work with non-standard week definitions. It requires Python 3.10+ and has no mandatory runtime dependencies; pandas, polars, and pydantic are optional.","worth_installing":"Yes. Low install friction, no mandatory dependencies, active maintenance, MIT license, and zero known vulnerabilities make this a safe choice. Install it if you regularly work with ISO week formats or need to integrate week-based logic into pandas, polars pipelines, or pydantic validation."},"id":"iso-week-date","links":{"html":"https://skillfed.io/packages/iso-week-date","md":"https://skillfed.io/packages/iso-week-date.md","pypi":"https://pypi.org/project/iso-week-date/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-04-01","license_spdx":"MIT","license_treatment":"permissive","name":"iso-week-date","python_support":"supports_current","summary":"Toolkit to work with str representing ISO Week date format"},"popularity":{"monthly_downloads":291022,"position":7978,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.3.0"}
