semvec/pypi-packages huggingface dataset:
business_calendar 0.2.1
Simple business days, including custom work week and a holiday list.
License: MIT

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/download/business_calendar/badge.png
    :target: https://pypi.python.org/pypi/business_calendar/
    :alt: Downloads
.. image:: https://pypip.in/format/business_calendar/badge.png
    :target: https://pypi.python.org/pypi/business_calendar/
    :alt: Download format
.. image:: https://travis-ci.org/antoniobotelho/py-business-calendar.svg
    :target: https://travis-ci.org/antoniobotelho/py-business-calendar
    :alt: TravisCI

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.

0.2.0 (2015-12-27)
^^^^^^^^^^^^^^^^^^

- Fixed bug in work day calculation when end date was not a work day.

0.2.1 (2015-12-27)
^^^^^^^^^^^^^^^^^^

- Fixed distribution issues.
ipy-progressbar 1.3
Progressbar for both IPython Notebooks (HTML, CSS, JS) and plain terminals.
License: MIT
Keywords: progress progressbar terminal console ipython notebook

Introduction
============

ipy-progressbar allows to use the same code for rich progressbars in
IPython Notebooks, and for simple fallback ones in terminal sessions.

Example
=======

Code like this:

.. code:: python

    from ipy_progressbar import ProgressBar

    pb = ProgressBar(10, title='Outer')
    pb_inner = ProgressBar(5, title='Inner')
    for i in pb:)
        for j in pb_inner:
            # inner loop body

will work both in IPython Notebook and in plain console. When run in
notebook, the output will be rich (Bootstrap progress bars), while
console version is mainly thought of as a fallback.

For more examples see ``example.py`` and ``example.ipynb``.