ISO Week Date¶
iso-week-date is a toolkit to work with strings representing ISO Week date in two formats, namely:
- Week format YYYY-WNN (date format %Y-W%V)
- Week date format YYYY-WNN-D (date format %Y-W%V-%u)
where YYYY represents the year, W is a literal, NN represents the week number, and D represents the day of the week.
In a nutshell it provides:
IsoWeek
andIsoWeekDate
classes that implement a series of methods to work with ISO Week (Date) formats directly, avoiding the pitfalls of going back and forth between string, date and datetime python objects.- pandas and polars functionalities (and namespaces) to work with series of ISO Week dates.
- pydantic compatible types, as described in their docs section on how to customize validation with
__get_pydantic_core_schema__
Documentation | Source Code | Issue Tracker
Installation¶
TL;DR: you can install the package with pip:
For more information please refer to the installation section.
Usage¶
To get started with IsoWeek
and IsoWeekDate
classes please refer to the quickstart section.
To check examples on how to work with pandas and polars functionalities please refer to the dataframe modules section.
Contributing¶
Please read the contributing guidelines in the documentation site.
License¶
The project has a MIT Licence.