Epidemiological weeks based on the CDC (MMWR) and ISO week numbering systems
A Python package to calculate epidemiological weeks using the US CDC (MMWR) and
ISO week numbering systems.
[quality]:
https://www.codefactor.io/repository/github/dralshehri/epiweeks/overview/main
To install using pip
, run:
pip install epiweeks
To install using conda
, run:
conda install -c bioconda epiweeks
from epiweeks import Week, Year
week = Week(2019, 1)
print(week.enddate())
# 2019-01-05
for week in Year(2019).iterweeks():
print(week.enddate())
# 2019-01-05
# 2019-01-12
# ...
# 2019-12-21
# 2019-12-28
Please see https://epiweeks.readthedocs.io for full documentation of this
package, including background, more usage examples and API reference.
This project is licensed under the terms of the MIT license.