{ "info": { "author": "Mohammed Alshehri", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: Healthcare Industry", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Scientific/Engineering", "Topic :: Utilities" ], "description": "Epi Weeks\n=========\n\nA Python package to calculate epidemiological weeks using the CDC (MMWR) and\nISO week numbering systems.\n\n|travis| |codecov| |docs| |supported| |version| |license|\n\n.. |travis|\n image:: https://img.shields.io/travis/com/dralshehri/epiweeks.svg\n :alt: Build Status\n :target: https://travis-ci.com/dralshehri/epiweeks\n.. |codecov|\n image:: https://img.shields.io/codecov/c/github/dralshehri/epiweeks.svg\n :alt: Coverage Status\n :target: https://codecov.io/github/dralshehri/epiweeks\n.. |docs|\n image:: https://img.shields.io/readthedocs/epiweeks/stable.svg\n :alt: Docs Status\n :target: https://epiweeks.readthedocs.io/\n.. |supported|\n image:: https://img.shields.io/pypi/pyversions/epiweeks.svg\n :alt: Python version support\n :target: https://pypi.python.org/pypi/epiweeks\n.. |version|\n image:: https://img.shields.io/pypi/v/epiweeks.svg\n :alt: PyPI Package version\n :target: https://pypi.python.org/pypi/epiweeks\n.. |license|\n image:: https://img.shields.io/github/license/dralshehri/epiweeks.svg\n :alt: License\n :target: https://github.com/dralshehri/epiweeks/blob/master/LICENSE\n\nFeatures\n--------\n\n- Support for both the CDC (MMWR) and ISO week numbering systems.\n- Accurate and tested calculations.\n- Intuitive, clean, and easy-to-use interface.\n- Calculation of the start and end dates of weeks.\n- Iteration of year's weeks or week's dates.\n- Rich comparison between weeks.\n- Logical operations for weeks (addition, subtraction and containment).\n- Validation of input data.\n- Works on Python 3.6+ with zero dependencies.\n- Thoroughly tested on all supported Python versions.\n\nInstallation\n------------\n\n.. code-block:: bash\n\n $ pip install -U epiweeks\n\nBasic Usage\n-----------\n\n.. code-block:: python\n\n from epiweeks import Week, Year\n\n week = Week(2019, 1)\n print(week.enddate())\n # 2019-01-05\n\n for week in Year(2019).iterweeks():\n print(week.enddate())\n # 2019-01-05\n # 2019-01-12\n # ...\n # 2019-12-21\n # 2019-12-28\n\nOnline Tool\n-----------\n\nThe following is a simple online tool that was developed to calculate\nepidemiological weeks (CDC system only) using the latest version of\nthis package:\n\nhttps://www.dralshehri.com/epiweeks/\n\nDocumentation\n-------------\n\nPlease see https://epiweeks.readthedocs.io/ for full documentation of\nthis package, including overview, more usage examples and API reference.\n\nContributing\n------------\n\nContributions are welcome! See\n`CONTRIBUTING.rst `__\nfor more info.\n\nAuthors\n-------\n\nThe main author is Mohammed Alshehri \u2014\n`@dralshehri `__.\n\nLicense\n-------\n\nThis package is distributed under an MIT license.\nSee `LICENSE `__.\n\nChange Log\n----------\n\n**2.1.1**\n\n- Fixed some typos.\n- Improved documentation.\n\n**2.1.0**\n\n- Changed the parameter ``method``, which sets how the weeks are\n numbered, to ``system`` for better clarity and intuitive usage.\n- Updated documentation and unit tests.\n- Other minor fixes and enhancements.\n\n**2.0.0**\n\n- Dropped support for Python 3.5.\n- Added ``fromstring()`` classmethod to allow constructing the ``Week`` object\n from a formatted string, for example '2019W08' or '201908'.\n- Added ``cdcformat()`` method to return a formatted string like the one used\n by US CDC for epi weeks, for example for week 8 of 2019 it returns '201908'.\n- Added ``daydate()`` method to return the date of specific weekday for a week.\n- Changed the optional value 'WHO' of the parameter ``method`` to 'ISO'.\n- Changed the ``fromdate()`` classmethod of ``Week`` object to accept a date\n object as an argument instead of year, month, and day.\n- Made the ``Week`` and ``Year`` objects hashable.\n- Improved rich comparison methods.\n- Improved input data validation.\n- Updated and improved documentation examples.\n- Updated unit tests.\n- Other minor fixes and enhancements.\n\n**1.0.0**\n\n- First release.\n\n\n", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/dralshehri/epiweeks", "keywords": "epidemiology weeks cdc mmwr iso calendar surveillance public-health", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "epiweeks", "package_url": "https://pypi.org/project/epiweeks/", "platform": "", "project_url": "https://pypi.org/project/epiweeks/", "project_urls": { "Documentation": "https://epiweeks.readthedocs.io/", "Homepage": "https://github.com/dralshehri/epiweeks" }, "release_url": "https://pypi.org/project/epiweeks/2.1.1/", "requires_dist": null, "requires_python": ">=3.6", "summary": "Epidemiological weeks based on the CDC (MMWR) and ISO week numbering systems.", "version": "2.1.1" }, "last_serial": 5456678, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "419c25b7523b9d46656c16aaf02b50e4", "sha256": "d07f8103fd50af90296f8b944f4854c2a9c8b80cdbda72d463e81c089fd23010" }, "downloads": -1, "filename": "epiweeks-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "419c25b7523b9d46656c16aaf02b50e4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 5132, "upload_time": "2018-11-28T10:24:42", "url": "https://files.pythonhosted.org/packages/03/12/a71069ed5455566f7170f11d4a0466ce7f78301f70339d631b684f722913/epiweeks-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a0f9a5b159fe60e947f54c7ddee554c7", "sha256": "e32a8203c09ba49123f831abd85b7be14ca0d0d7914bdfee2770ebf8a97d75bc" }, "downloads": -1, "filename": "epiweeks-1.0.0.tar.gz", "has_sig": false, "md5_digest": "a0f9a5b159fe60e947f54c7ddee554c7", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 17984, "upload_time": "2018-11-28T10:24:45", "url": "https://files.pythonhosted.org/packages/1e/05/5ca9e32267b1261eba3900868f88b7bce7038d1b3a41b11895d7804e356c/epiweeks-1.0.0.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "bf520466ed6954386219ce1ec569ec5e", "sha256": "390a411bc250d401644a1c2af09e567a11e0d9400b2b83f4c2e4af80685cf3ff" }, "downloads": -1, "filename": "epiweeks-2.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "bf520466ed6954386219ce1ec569ec5e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 6117, "upload_time": "2019-06-25T17:02:55", "url": "https://files.pythonhosted.org/packages/dc/56/810f185040498f921fb38d73eb9416a9e9392a7c039f91cf00e33691652b/epiweeks-2.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9e94f18c7bfcfb485f0ed3a8331ffa2d", "sha256": "1fa72e1bf3093533e9cbaac58b11a9c407dd2a991ec4dc9c81b37646d0d9bb5d" }, "downloads": -1, "filename": "epiweeks-2.0.0.tar.gz", "has_sig": false, "md5_digest": "9e94f18c7bfcfb485f0ed3a8331ffa2d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 22081, "upload_time": "2019-06-25T17:02:56", "url": "https://files.pythonhosted.org/packages/f3/3b/f3bea9b4fcee11861e7b226420d321e4d9dc7054c8f6b6b4794cecf9581b/epiweeks-2.0.0.tar.gz" } ], "2.1.0": [ { "comment_text": "", "digests": { "md5": "23b86654f87741f9ad242945bb2b7a3f", "sha256": "4358da52032b088924ed87eb22c36b52013d600115bd2d02e0c2ad091eb24dd7" }, "downloads": -1, "filename": "epiweeks-2.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "23b86654f87741f9ad242945bb2b7a3f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 6203, "upload_time": "2019-06-26T13:24:05", "url": "https://files.pythonhosted.org/packages/da/fe/8205d596cd3c78cd632c510cfc29ae8713a146a650c2289ccc378fdd7a00/epiweeks-2.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2fa9101b1b5382fcae4914518ccdde93", "sha256": "b21dda3d35dff1c9e08fc53db0500b6d7399f627f632e3ee4219d13b73095202" }, "downloads": -1, "filename": "epiweeks-2.1.0.tar.gz", "has_sig": false, "md5_digest": "2fa9101b1b5382fcae4914518ccdde93", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 22394, "upload_time": "2019-06-26T13:24:07", "url": "https://files.pythonhosted.org/packages/1c/38/e2ee3a37618bf0d7c7a6897b1ad7740959096522689f90575cb7dd438d98/epiweeks-2.1.0.tar.gz" } ], "2.1.1": [ { "comment_text": "", "digests": { "md5": "53546c7a7c9951c5167398a9685887c8", "sha256": "1bb1b6c04885a6298f7641d616e12efadf9f6d65a30fc411384f0338179ac213" }, "downloads": -1, "filename": "epiweeks-2.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "53546c7a7c9951c5167398a9685887c8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 6229, "upload_time": "2019-06-27T12:23:22", "url": "https://files.pythonhosted.org/packages/e1/18/da5907bd3733975f9b6b93ad4d26fd4730a6c0ea60abd887769217d50717/epiweeks-2.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "94d50ed154f593b0865b61f420a8c40c", "sha256": "8a743419b5345e700675a490ec2a5aa88bc814ad78acb5194c8532771b40847c" }, "downloads": -1, "filename": "epiweeks-2.1.1.tar.gz", "has_sig": false, "md5_digest": "94d50ed154f593b0865b61f420a8c40c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 22724, "upload_time": "2019-06-27T12:23:24", "url": "https://files.pythonhosted.org/packages/ad/6d/7322911acec0ec42ebfe1dd8533a4ae52e293f98dd18486f90e920df1297/epiweeks-2.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "53546c7a7c9951c5167398a9685887c8", "sha256": "1bb1b6c04885a6298f7641d616e12efadf9f6d65a30fc411384f0338179ac213" }, "downloads": -1, "filename": "epiweeks-2.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "53546c7a7c9951c5167398a9685887c8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 6229, "upload_time": "2019-06-27T12:23:22", "url": "https://files.pythonhosted.org/packages/e1/18/da5907bd3733975f9b6b93ad4d26fd4730a6c0ea60abd887769217d50717/epiweeks-2.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "94d50ed154f593b0865b61f420a8c40c", "sha256": "8a743419b5345e700675a490ec2a5aa88bc814ad78acb5194c8532771b40847c" }, "downloads": -1, "filename": "epiweeks-2.1.1.tar.gz", "has_sig": false, "md5_digest": "94d50ed154f593b0865b61f420a8c40c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 22724, "upload_time": "2019-06-27T12:23:24", "url": "https://files.pythonhosted.org/packages/ad/6d/7322911acec0ec42ebfe1dd8533a4ae52e293f98dd18486f90e920df1297/epiweeks-2.1.1.tar.gz" } ] }