Example #1
0
 def __init__(self, **kwargs):
     """
     Constructs all the necessary attributes for the HolidayEcuador object.
     """         
     self.country = "ECU"
     self.prov = kwargs.pop("prov", "ON")
     HolidayBase.__init__(self, **kwargs)
Example #2
0
 def __init__(self, include_sundays=True, **kwargs):
     """
     :param include_sundays: Whether to consider sundays as a holiday
     (which they are in Sweden)
     :param kwargs:
     """
     self.include_sundays = include_sundays
     HolidayBase.__init__(self, **kwargs)
Example #3
0
    def __init__(self, include_sundays=False, **kwargs):
        """

        :param include_sundays: Whether to consider sundays as a holiday
        (which they are in Norway)
        :param kwargs:
        """
        self.country = "NO"
        self.include_sundays = include_sundays
        HolidayBase.__init__(self, **kwargs)
Example #4
0
 def __init__(self, **kwargs):
     self.country = 'Northern Ireland'
     HolidayBase.__init__(self, **kwargs)
 def __init__(self, **kwargs):
     # http://www.gov.za/about-sa/public-holidays
     # https://en.wikipedia.org/wiki/Public_holidays_in_South_Africa
     self.country = "ZA"
     HolidayBase.__init__(self, **kwargs)
Example #6
0
 def __init__(self, **kwargs):
     self.prov = kwargs.pop("prov", None)
     HolidayBase.__init__(self, **kwargs)
Example #7
0
 def __init__(self, **kwargs):
     self.prov = kwargs.pop("prov", kwargs.pop("state", "MN"))
     HolidayBase.__init__(self, **kwargs)
Example #8
0
 def __init__(self, **kwargs):
     self.country = "FR"
     self.prov = kwargs.pop("prov", "Métropole")
     HolidayBase.__init__(self, **kwargs)
 def __init__(self, **kwargs):
     self.country = 'AU'
     self.prov = kwargs.pop('prov', None)
     HolidayBase.__init__(self, **kwargs)
Example #10
0
 def __init__(self, **kwargs):
     HolidayBase.__init__(self, **kwargs)
     self.cnls = ChineseLuniSolar()
Example #11
0
 def __init__(self, **kwargs):
     # https://www.officeholidays.com/countries/malawi
     # https://www.timeanddate.com/holidays/malawi/
     self.country = 'MW'
     HolidayBase.__init__(self, **kwargs)
Example #12
0
 def __init__(self, **kwargs):
     self.country = 'CA'
     self.prov = kwargs.pop('prov', 'ON')
     HolidayBase.__init__(self, **kwargs)
Example #13
0
 def __init__(self, **kwargs):
     # https://www.officeholidays.com/countries/namibia
     # https://www.timeanddate.com/holidays/namibia/
     HolidayBase.__init__(self, **kwargs)
Example #14
0
 def __init__(self, **kwargs):
     # https://en.wikipedia.org/wiki/Robert_Mugabe
     # https://en.wikipedia.org/wiki/Public_holidays_in_Zimbabwe
     HolidayBase.__init__(self, **kwargs)
Example #15
0
 def __init__(self, **kwargs):
     # https://www.officeholidays.com/countries/angola/
     # https://www.timeanddate.com/holidays/angola/
     self.country = "AO"
     HolidayBase.__init__(self, **kwargs)
Example #16
0
 def __init__(self, **kwargs):
     # https://www.officeholidays.com/countries/zambia/
     # https://www.timeanddate.com/holidays/zambia/
     # https://en.wikipedia.org/wiki/Public_holidays_in_Zambia
     # https://www.parliament.gov.zm/sites/default/files/documents/acts/Public%20Holidays%20Act.pdf
     HolidayBase.__init__(self, **kwargs)
Example #17
0
 def __init__(self, **kwargs):
     # http://www.iamsterdam.com/en/plan-your-trip/practical-info/public-holidays
     self.country = "NL"
     HolidayBase.__init__(self, **kwargs)
Example #18
0
 def __init__(self, **kwargs):
     # https://swazilii.org/sz/legislation/act/1938/71
     # https://www.officeholidays.com/countries/swaziland
     HolidayBase.__init__(self, **kwargs)
Example #19
0
 def __init__(self, **kwargs):
     self.country = "CA"
     self.prov = kwargs.pop("prov", "ON")
     HolidayBase.__init__(self, **kwargs)
Example #20
0
 def __init__(self, **kwargs):
     self.country = 'AT'
     self.prov = kwargs.pop('prov', kwargs.pop('state', 'W'))
     HolidayBase.__init__(self, **kwargs)
Example #21
0
 def __init__(self, **kwargs):
     self.country = 'MOZ'
     HolidayBase.__init__(self, **kwargs)
Example #22
0
 def __init__(self, **kwargs):
     self.country = "HK"
     self.cnls = ChineseLuniSolar()
     HolidayBase.__init__(self, **kwargs)
Example #23
0
 def __init__(self, **kwargs):
     self.country = 'FR'
     self.prov = kwargs.pop('prov', 'Métropole')
     HolidayBase.__init__(self, **kwargs)
Example #24
0
 def __init__(self, **kwargs):
     # default state to UK
     if "state" not in kwargs:
         kwargs["state"] = "UK"
     HolidayBase.__init__(self, **kwargs)
Example #25
0
 def __init__(self, **kwargs):
     self.country = "ES"
     self.prov = kwargs.pop("prov", kwargs.pop("state", ""))
     HolidayBase.__init__(self, **kwargs)
 def __init__(self, **kwargs):
     self.country = "KR"
     self.korean_cal = KoreanLunarCalendar()
     HolidayBase.__init__(self, **kwargs)
Example #27
0
 def __init__(self, **kwargs):
     HolidayBase.__init__(self, **kwargs)
Example #28
0
 def __init__(self, **kwargs):
     self.country = 'Scotland'
     HolidayBase.__init__(self, **kwargs)
Example #29
0
 def __init__(self, **kwargs):
     self.country = "HN"
     HolidayBase.__init__(self, **kwargs)
Example #30
0
 def __init__(self, **kwargs):
     self.country = 'Isle of Man'
     HolidayBase.__init__(self, **kwargs)