{ "info": { "author": "Polyconseil Dev Team", "author_email": "opensource+bizdatim@polyconseil.fr", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Topic :: Office/Business :: Scheduling", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "ABOUT\n=====\n\n.. image:: https://secure.travis-ci.org/Polyconseil/bizdatim.png?branch=master\n :target: http://travis-ci.org/Polyconseil/bizdatim/\n\n.. image:: https://img.shields.io/pypi/v/bizdatim.svg\n :target: https://pypi.python.org.pypi/bizdatim/\n :alt: Latest Version\n\n.. image:: https://img.shields.io/pypi/pyversions/bizdatim.svg\n :target: https://pypi.python.org/pypi/bizdatim/\n :alt: Supported Python versions\n\n.. image:: https://img.shields.io/pypi/wheel/bizdatim.svg\n :target: https://pypi.python.org/pypi/bizdatim/\n :alt: Wheel status\n\n.. image:: https://img.shields.io/pypi/l/bizdatim.svg\n :target: https://pypi.python.org/pypi/bizdatim/\n :alt: License\n\nbizdatim is a simple library for performing business day arithmetic.\n\nSource is hosted at https://github.com/Polyconseil/bizdatim.\n\n\nKNOWN LIMITATIONS\n=================\n\nRotating weekends/holidays are not supported (e.g., two days working, third day\noff).\n\nThe business hour arithmetic is limited to additions.\n\n\nDEFINITIONS\n===========\n\nWeekend\n Weekly repeating non-business day. Weekend does not have to be at the end\n (or beginning) or the week. Weekends do not have to be consecutive days.\n\nHoliday\n Like weekend, holiday is a non-business day. Unlike weekend, holiday does\n not have weekly regularity. It is just a date. Holiday can coincide with\n weekend.\n\nWorking hours\n The starting and ending time of a business day.\n\nPolicy\n Is a (possibly empty) collection of weekends, holidays and working hours. All calculations\n are performed within a policy.\n\n\nSAMPLE USAGE\n============\n\nAll business day arithmetic is performed in the context of policy::\n \n >>> from bizdatim import Polycy, SAT, SUN\n >>> from datetime import date\n >>> policy = Policy(weekends=(SAT, SUN), holidays=(date(2011,7,1),))\n >>> day = date(2011, 6, 29) # Wednesday\n >>> print(policy.add(day, 2)) # add 2 business dates -> Monday after the long weekend\n datetime.date(2011, 7, 4)\n >>> print(policy.biz_day_delta(date(2011, 7, 4), date(2011, 6, 30))) # one holiday, one weekend between\n 1\n\nThere is also the possibility to do arithmetic on business hours::\n\n >>> policy = Policy(weekends=(SAT, SUN), holidays=(date(2011,7,1)), hours=(time(8), time(20)))\n >>> day = datetime(2011, 6, 29, 14, 30)\n >>> policy.add(day, timedelta(days=1, hours=5)) # The day after, in the afternoon\n datetime.datetime(2011, 6, 29, 19, 30)\n >>> policy.add(day, timedelta(days=1, hours=10)) # Too many hours, will finish the monday after the long weekend\n datetime.datetime(2011, 7, 4, 12, 30)\n\nPolicy method docstrings contain more examples.", "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/Polyconseil/bizdatim", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "bizdatim", "package_url": "https://pypi.org/project/bizdatim/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/bizdatim/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/Polyconseil/bizdatim" }, "release_url": "https://pypi.org/project/bizdatim/0.2.0/", "requires_dist": null, "requires_python": null, "summary": "Module for performing simple business day arithmetic; forked from python-bizdatetime", "version": "0.2.0" }, "last_serial": 2477629, "releases": { "0.2": [], "0.2.0": [ { "comment_text": "", "digests": { "md5": "bcca2f3e3b629e40797c31b88acda2c4", "sha256": "0e2bbff3f56529e3f70d868df6f3415e6e4e1e1b751367124099a2d9002a3c24" }, "downloads": -1, "filename": "bizdatim-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "bcca2f3e3b629e40797c31b88acda2c4", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 7410, "upload_time": "2016-11-22T23:39:32", "url": "https://files.pythonhosted.org/packages/96/0c/a0b3fea7362f5ceddf1f78ac626905e5ebef41dde02cdac112462ac1de9e/bizdatim-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cc335e22641b34abe06814573dc9828c", "sha256": "8f34c814aee9a4cb74e00fe9e3b8f9d943f6b877579c4495abd39cc58ebcd6e7" }, "downloads": -1, "filename": "bizdatim-0.2.0.tar.gz", "has_sig": false, "md5_digest": "cc335e22641b34abe06814573dc9828c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6169, "upload_time": "2016-11-22T23:39:30", "url": "https://files.pythonhosted.org/packages/cb/fe/742dd9ac52ccccef6105449861b7d64da2a9c97414a52a64dc64d38e487a/bizdatim-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bcca2f3e3b629e40797c31b88acda2c4", "sha256": "0e2bbff3f56529e3f70d868df6f3415e6e4e1e1b751367124099a2d9002a3c24" }, "downloads": -1, "filename": "bizdatim-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "bcca2f3e3b629e40797c31b88acda2c4", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 7410, "upload_time": "2016-11-22T23:39:32", "url": "https://files.pythonhosted.org/packages/96/0c/a0b3fea7362f5ceddf1f78ac626905e5ebef41dde02cdac112462ac1de9e/bizdatim-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cc335e22641b34abe06814573dc9828c", "sha256": "8f34c814aee9a4cb74e00fe9e3b8f9d943f6b877579c4495abd39cc58ebcd6e7" }, "downloads": -1, "filename": "bizdatim-0.2.0.tar.gz", "has_sig": false, "md5_digest": "cc335e22641b34abe06814573dc9828c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6169, "upload_time": "2016-11-22T23:39:30", "url": "https://files.pythonhosted.org/packages/cb/fe/742dd9ac52ccccef6105449861b7d64da2a9c97414a52a64dc64d38e487a/bizdatim-0.2.0.tar.gz" } ] }