{ "info": { "author": "wanshot", "author_email": "nishikawa0228@sj9.so-net.ne.jp", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2", "Topic :: Software Development" ], "description": "Judgment whether the holiday\n\nRequiremants\n----------------\n\n- Python 2.7 or later.\n\nInstall\n----------------\n\n.. code-block:: shell\n\n $ pip install holiday\n\n\nholiday format\n------------------\n\n::\n\n ('*', '*', '*', '*', '*')\n \u252c \u252c \u252c \u252c \u252c\n \u2502 \u2502 \u2502 \u2502 \u2502\n \u2502 \u2502 \u2502 \u2502 \u2502\n \u2502 \u2502 \u2502 \u2502 \u2514\u2500 number of week (1 - 5)\n \u2502 \u2502 \u2502 \u2514\u2500\u2500\u2500 day of week (1 to 7 or mon to sun)\n \u2502 \u2502 \u2514\u2500\u2500\u2500\u2500\u2500 day of month (1 - 31)\n \u2502 \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500 month (1 - 12)\n \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 year (1 - 9999)\n\n '*' The asterisk allows all\n\n\n\nUsage\n----------------\n\n\n.. code-block:: python\n\n >>> holiday = Holiday([\n ... (2016, 1, 1, 'fri', 1),\n ... (2016, 1, 2, 'sat', 1),\n ... ])\n\n >>> holiday.is_holiday(date(2016, 1, 1)) # 2016-1-1 Friday 1\n True\n >>> holiday.is_holiday(date(2016, 1, 3)) # 2016-1-3 Sunday 1\n False\n\n- Express all values that can take in the field in asterisk (*)\n\n.. code-block:: python\n\n >>> holiday = Holiday([\n ... ('*', 1, 1, 'fri', 1),\n ... ('*', 1, 1, 'thu', 1),\n ... ])\n\n >>> holiday.is_holiday(date(2016, 1, 1)) # 2016-1-1 Friday 1\n True\n >>> holiday.is_holiday(date(2015, 1, 1)) # 2015-1-1 Thursday 1\n True\n >>> holiday.is_holiday(date(2014, 1, 1)) # 2014-1-1 Wednesday 1\n False\n\n- is_business_day() returns the inverse of the truth-value of the is_holiday()\n\n.. code-block:: python\n\n >>> holiday = Holiday([\n ... ('*', '*', '*', '*', '*'),\n ... ])\n\n >>> holiday.is_holiday(date(2016, 1, 1)) # 2016-1-1 Friday 1\n True\n >>> holiday.is_business_day(date(2016, 1, 1)) # 2016-1-1 Friday 1\n False\n\nLicense\n--------\n\nThis software is released under the MIT License, see LICENSE.txt.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/wanshot/holiday", "keywords": "datetime,date,time,calendar", "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "holiday", "package_url": "https://pypi.org/project/holiday/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/holiday/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/wanshot/holiday" }, "release_url": "https://pypi.org/project/holiday/1.0.0/", "requires_dist": null, "requires_python": null, "summary": "holiday is a package to generate holiday.", "version": "1.0.0" }, "last_serial": 1990853, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "b48b93e33a3a1c970f81a7be63be71bb", "sha256": "55341f7355d5bfd1e4d1086e060cd07d64192656fe9418a9903d9db5e5f4a08d" }, "downloads": -1, "filename": "holiday-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b48b93e33a3a1c970f81a7be63be71bb", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5978, "upload_time": "2016-03-05T12:50:39", "url": "https://files.pythonhosted.org/packages/d2/52/31265e410ee09cd17890891ca2c60e7eadd1e793ef4c17ff820588eac4c4/holiday-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "18793a352f08a9fedaaf748b8ed4f459", "sha256": "7a0dd8fd59afb134f333b14a0c6b7ed4dc1b854f96b251ff8c1a635374ae2d0d" }, "downloads": -1, "filename": "holiday-1.0.0.tar.gz", "has_sig": false, "md5_digest": "18793a352f08a9fedaaf748b8ed4f459", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5393, "upload_time": "2016-03-05T12:50:43", "url": "https://files.pythonhosted.org/packages/b8/30/5f9fbd2f5c33025ec754229ee551fe6a9618dc31af3f0e71d9e170f3f653/holiday-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b48b93e33a3a1c970f81a7be63be71bb", "sha256": "55341f7355d5bfd1e4d1086e060cd07d64192656fe9418a9903d9db5e5f4a08d" }, "downloads": -1, "filename": "holiday-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b48b93e33a3a1c970f81a7be63be71bb", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5978, "upload_time": "2016-03-05T12:50:39", "url": "https://files.pythonhosted.org/packages/d2/52/31265e410ee09cd17890891ca2c60e7eadd1e793ef4c17ff820588eac4c4/holiday-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "18793a352f08a9fedaaf748b8ed4f459", "sha256": "7a0dd8fd59afb134f333b14a0c6b7ed4dc1b854f96b251ff8c1a635374ae2d0d" }, "downloads": -1, "filename": "holiday-1.0.0.tar.gz", "has_sig": false, "md5_digest": "18793a352f08a9fedaaf748b8ed4f459", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5393, "upload_time": "2016-03-05T12:50:43", "url": "https://files.pythonhosted.org/packages/b8/30/5f9fbd2f5c33025ec754229ee551fe6a9618dc31af3f0e71d9e170f3f653/holiday-1.0.0.tar.gz" } ] }