outatime.util package

Submodules

outatime.util.agenda module

outatime.util.bisect module

outatime.util.bisect.find_delimiters(_list: list, first_element, second_element) tuple[source]
Given a list of elements, searches:
  • the index of the first element included in the given range

  • the index of the last element included in the given range

Parameters
  • _list (list) – Input data.

  • first_element – Low limit of the range to search.

  • second_element – High limit of the range to search.

Returns

First and last indexes of the searched range.

Return type

tuple

outatime.util.bisect.find_gt(_list: list, value)[source]

Find leftmost value greater than value.

outatime.util.bisect.find_gte(_list: list, value)[source]

Find leftmost item greater than or equal to value.

outatime.util.bisect.find_lt(_list: list, value)[source]

Find rightmost value less than value.

outatime.util.bisect.find_lte(_list: list, value)[source]

Find rightmost value less than or equal to value.

outatime.util.bisect.index_of(_list: list, value)[source]

Find index of element in given list.

outatime.util.decorators module

outatime.util.decorators.day_or_datetime(func)[source]

Decorator that transform a datetime object to a date object when it is given as input to the decorated function.

outatime.util.relativedelta module

Module contents