A Python package to calculate epidemiological weeks using the US CDC (MMWR) and ISO week numbering systems.
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.
Version | Tag | Published |
---|---|---|
2.1.4 | 6mos ago | |
2.1.3 | 1yr ago | |
2.1.2 | 2yrs ago | |
2.1.1 | 3yrs ago |