Metadata-Version: 2.0
Name: business-calendar
Version: 0.1.0
Summary: Simple business days, including custom work week and a holiday list.
Home-page: https://github.com/antoniobotelho/py-business-calendar/
Author: Antonio Botelho
Author-email: antonio@inhames.com
License: MIT
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Topic :: Software Development :: Libraries :: Python Modules

business_calendar
=================

**business_calendar** is a Python package that implements simple business days 
calculations. You can use a custom work week and a holiday list.

.. image:: https://pypip.in/wheel/business_calendar/badge.png
    :target: https://pypi.python.org/pypi/business_calendar/
    :alt: Wheel Status
.. image:: https://pypip.in/license/business_calendar/badge.png
    :target: https://pypi.python.org/pypi/business_calendar/
    :alt: License	

Documentation
^^^^^^^^^^^^^

You can find the latest documentation `here <http://py-business-calendar.readthedocs.org/en/latest/>`_.

Example
^^^^^^^

.. code-block:: python

	from business_calendar import Calendar, MO, TU, WE, TH, FR
	import datetime
	date1 = datetime.datetime(2013,1,10)

	# normal calendar, no holidays
	cal = Calendar()
	date2 = cal.addbusdays(date1, 25)
	print('%s days between %s and %s' % \
	    (cal.busdaycount(date1, date2), date1, date2))

	# don't work on Fridays? no problem!
	cal = Calendar(workdays=[MO,TU,WE,TH])
	date2 = cal.addbusdays(date1, 25)
	print('%s days between %s and %s' % \
	    (cal.busdaycount(date1, date2), date1, date2))

	# holiday? no problem!
	cal = Calendar(workdays=[MO,TU,WE,TH], holidays=['2013-01-17'])
	date2 = cal.addbusdays(date1, 25)
	print('%s days between %s and %s' % \
	    (cal.busdaycount(date1, date2), date1, date2)

License
^^^^^^^

MIT




.. :changelog:

History
=======

0.1.0 (2014-06-22)
^^^^^^^^^^^^^^^^^^

- Initial release.

Credits
=======

**business_calendar** is written and maintained by Antonio Botelho.


Contributors
^^^^^^^^^^^^


Please add yourself here alphabetically when you submit your first pull request.

