iso-week-date
Toolkit to work with str representing ISO Week date format
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Optional: pandas or polars for dataframe utilities; pydantic>=2.40 for validation integration.
- Low friction: pure Python wheel with no runtime dependencies.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions.
last release 2026-04-01 (135 days) · last repo commit 2026-08-01 · 10 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 291,022 downloads/mo, #7,978 on PyPI
Alternatives
Verify before relying
pip install iso-week-date
from iso_week_date import IsoWeek, IsoWeekDate
week = IsoWeek.from_string('2023-W01')
week_date = IsoWeekDate.from_string('2023-W01-D')- Performance characteristics when working with large series of ISO week dates.
- Specific behavior of custom offset feature and whether it handles all edge cases correctly.
- Whether the package handles leap weeks and other ISO 8601 edge cases.
What it is and 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—IsoWeek and IsoWeekDate—handle 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.
The 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—you 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.
Use it for
- 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.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
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.
Install
iso-week-date on PyPI
Before you install
Low friction: pure Python wheel with no runtime dependencies. Active maintenance with recent release (2026-04-01), last commit 2026-08-01, and support for current Python versions (3.10–3.14).
Requires Python 3.10 or later. Optional: pandas or polars for dataframe utilities; pydantic>=2.40 for validation integration.
License in practice
MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions.
Quickstart
pip install iso-week-date
from iso_week_date import IsoWeek, IsoWeekDate
week = IsoWeek.from_string('2023-W01')
week_date = IsoWeekDate.from_string('2023-W01-D')
Verify before relying
- Performance characteristics when working with large series of ISO week dates.
- Specific behavior of custom offset feature and whether it handles all edge cases correctly.
- Whether the package handles leap weeks and other ISO 8601 edge cases.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 135 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 291,022 / month, #7,978 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Free Threading :: 2 - BetaTopic :: Software Development :: Libraries :: Python ModulesTyping :: Typed |
Evidence: iso_week_date-2.3.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “ISO week date parsing”
- iso-week-dateParses and manipulates ISO Week date strings in YYYY-WNN and…
- isoweekProvides a Week class representing ISO 8601 weeks (Monday–Sunday)…
- aniso8601Parses ISO 8601 date, time, datetime, duration, and interval strings…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also isoweek · epiweeks · isodate · iso8601 · metomi-isodatetime · delta · aniso8601 · isoduration · ciso8601 · dateformat