{ "info": { "author": "Antonio Botelho", "author_email": "antonio@inhames.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "business_calendar\n=================\n\n**business_calendar** is a Python package that implements simple business days \ncalculations. You can use a custom work week and a holiday list.\n\n.. image:: https://pypip.in/download/business_calendar/badge.png\n :target: https://pypi.python.org/pypi/business_calendar/\n :alt: Downloads\n.. image:: https://pypip.in/format/business_calendar/badge.png\n :target: https://pypi.python.org/pypi/business_calendar/\n :alt: Download format\n.. image:: https://travis-ci.org/antoniobotelho/py-business-calendar.svg\n :target: https://travis-ci.org/antoniobotelho/py-business-calendar\n :alt: TravisCI\n\nDocumentation\n^^^^^^^^^^^^^\n\nYou can find the latest documentation `here `_.\n\nExample\n^^^^^^^\n\n.. code-block:: python\n\n\tfrom business_calendar import Calendar, MO, TU, WE, TH, FR\n\timport datetime\n\tdate1 = datetime.datetime(2013,1,10)\n\t\n\t# normal calendar, no holidays\n\tcal = Calendar()\n\tdate2 = cal.addbusdays(date1, 25)\n\tprint('%s days between %s and %s' % \\\n\t (cal.busdaycount(date1, date2), date1, date2))\n\t\n\t# don't work on Fridays? no problem!\n\tcal = Calendar(workdays=[MO,TU,WE,TH])\n\tdate2 = cal.addbusdays(date1, 25)\n\tprint('%s days between %s and %s' % \\\n\t (cal.busdaycount(date1, date2), date1, date2))\n\t\n\t# holiday? no problem!\n\tcal = Calendar(workdays=[MO,TU,WE,TH], holidays=['2013-01-17'])\n\tdate2 = cal.addbusdays(date1, 25)\n\tprint('%s days between %s and %s' % \\\n\t (cal.busdaycount(date1, date2), date1, date2)\n\nLicense\n^^^^^^^\n\nMIT\n\n\n\n\n.. :changelog:\n\nHistory\n=======\n\n0.1.0 (2014-06-22)\n^^^^^^^^^^^^^^^^^^\n\n- Initial release.\n\n0.2.0 (2015-12-27)\n^^^^^^^^^^^^^^^^^^\n\n- Fixed bug in work day calculation when end date was not a work day.\n\n0.2.1 (2015-12-27)\n^^^^^^^^^^^^^^^^^^\n\n- Fixed distribution issues.", "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/antoniobotelho/py-business-calendar/", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "business_calendar", "package_url": "https://pypi.org/project/business_calendar/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/business_calendar/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/antoniobotelho/py-business-calendar/" }, "release_url": "https://pypi.org/project/business_calendar/0.2.1/", "requires_dist": null, "requires_python": null, "summary": "Simple business days, including custom work week and a holiday list.", "version": "0.2.1" }, "last_serial": 1879054, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "84f46cbd37b5d36150b0d0e4bec27d0f", "sha256": "c3c2393574cfd8e3810231f7b5a027f9bc29bde502af4091372921a1acac7878" }, "downloads": -1, "filename": "business_calendar-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "84f46cbd37b5d36150b0d0e4bec27d0f", "packagetype": "bdist_wheel", "python_version": "3.3", "requires_python": null, "size": 11867, "upload_time": "2014-06-22T14:13:20", "url": "https://files.pythonhosted.org/packages/3b/68/7b8496784ced8560ad98d08e6a39dae277efeefc52f4bc98822acceebb7a/business_calendar-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f43418dca69bbd66e0a76442005971fe", "sha256": "548daf86f6078945c413d7eb57fb8d7a5b2fc60152af73b5a8f06cc1d0da7fe5" }, "downloads": -1, "filename": "business_calendar-0.1.0.tar.gz", "has_sig": false, "md5_digest": "f43418dca69bbd66e0a76442005971fe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9599, "upload_time": "2014-06-22T14:13:43", "url": "https://files.pythonhosted.org/packages/50/af/6de9d0c834c14513cb845a1ccfdd48f84ba247da1c474331f6cfeb8af99b/business_calendar-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "d681723dbbfe2ffa0bfa21dd428ce4da", "sha256": "bcca359db07fbea45a9f969a418ad1bfba1fc0061f2cd6e4dad8b757ec1543c3" }, "downloads": -1, "filename": "business_calendar-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d681723dbbfe2ffa0bfa21dd428ce4da", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 12484, "upload_time": "2015-12-27T18:58:53", "url": "https://files.pythonhosted.org/packages/c6/b7/f27a0fc3fa0050e71f583664008e60921f6a172061426af5a1384e84adf2/business_calendar-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "04b543901c9ead897d87c5c1dfe7c877", "sha256": "a1a37a807f58dfc6e3b4f292307316b629e5446680b225afdffc5a56592d49cd" }, "downloads": -1, "filename": "business_calendar-0.2.0.zip", "has_sig": false, "md5_digest": "04b543901c9ead897d87c5c1dfe7c877", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15489, "upload_time": "2015-12-27T18:59:16", "url": "https://files.pythonhosted.org/packages/30/83/faadc627e2b9e6d34c456c6d7448de226e5247996df6d05e5bc9961b3b6a/business_calendar-0.2.0.zip" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "448a7364107e3f1e3bd8d633d3ecdbd1", "sha256": "2f91a0a41c8b7bd641afa33befc6e8d5e871beb16c827bc2d508f1025e78c635" }, "downloads": -1, "filename": "business_calendar-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "448a7364107e3f1e3bd8d633d3ecdbd1", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 12211, "upload_time": "2015-12-27T19:33:21", "url": "https://files.pythonhosted.org/packages/bc/72/c4a6df785b7684190756fc58e97cfb3baf298670ff421f4dadde74d50f8b/business_calendar-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7ff8f2cc99f3e9321867ed494cd1ea83", "sha256": "ed434c389c277438592df7285fde5882d3c26c6d9658a9cd3c35adee4d136d6d" }, "downloads": -1, "filename": "business_calendar-0.2.1.zip", "has_sig": false, "md5_digest": "7ff8f2cc99f3e9321867ed494cd1ea83", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15160, "upload_time": "2015-12-27T19:32:38", "url": "https://files.pythonhosted.org/packages/c6/3e/1f169d876cf8b041607934c8915057c86bdc3e80b499fd79118d9cef005b/business_calendar-0.2.1.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "448a7364107e3f1e3bd8d633d3ecdbd1", "sha256": "2f91a0a41c8b7bd641afa33befc6e8d5e871beb16c827bc2d508f1025e78c635" }, "downloads": -1, "filename": "business_calendar-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "448a7364107e3f1e3bd8d633d3ecdbd1", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 12211, "upload_time": "2015-12-27T19:33:21", "url": "https://files.pythonhosted.org/packages/bc/72/c4a6df785b7684190756fc58e97cfb3baf298670ff421f4dadde74d50f8b/business_calendar-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7ff8f2cc99f3e9321867ed494cd1ea83", "sha256": "ed434c389c277438592df7285fde5882d3c26c6d9658a9cd3c35adee4d136d6d" }, "downloads": -1, "filename": "business_calendar-0.2.1.zip", "has_sig": false, "md5_digest": "7ff8f2cc99f3e9321867ed494cd1ea83", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15160, "upload_time": "2015-12-27T19:32:38", "url": "https://files.pythonhosted.org/packages/c6/3e/1f169d876cf8b041607934c8915057c86bdc3e80b499fd79118d9cef005b/business_calendar-0.2.1.zip" } ] }