Skip to content

Installation

iso-week-date requires Python 3.10 or above. It is published as a Python package on pypi, and it can be installed with pip, or directly from source using git, or with a local clone:

python -m pip install iso-week-date
python -m pip install git+https://github.com/FBruzzesi/iso-week-date.git
git clone https://github.com/FBruzzesi/iso-week-date.git
cd iso-week-date
python -m pip install .

Optional dependencies

The IsoWeek and IsoWeekDate classes need nothing beyond a plain install, which pulls in only packaging (used to compare the versions of the optional dependencies below).

The dataframe and pydantic integrations are opt-in extras, each of which installs the corresponding library at a supported version:

python -m pip install "iso-week-date[pandas]"

Installs pandas>=1.1.0.

python -m pip install "iso-week-date[polars]"

Installs polars>=0.18.0.

python -m pip install "iso-week-date[pydantic]"

Installs pydantic>=2.4.0.

python -m pip install "iso-week-date[all]"

Installs all of the above.

Tip

Extras are additive, so they can be combined: python -m pip install "iso-week-date[pandas,pydantic]".