How to use the holidays.HolidayBase.__init__ function in holidays

To help you get started, we’ve selected a few holidays examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dr-prodigy / python-holidays / holidays.py View on Github external
def __init__(self, **kwargs):
        self.country = 'DE'
        self.prov = kwargs.pop('prov', 'SH')
        HolidayBase.__init__(self, **kwargs)
github dr-prodigy / python-holidays / holidays.py View on Github external
def __init__(self, **kwargs):
        self.country = "FI"
        HolidayBase.__init__(self, **kwargs)
github dr-prodigy / python-holidays / holidays.py View on Github external
def __init__(self, **kwargs):
        self.country = 'CO'
        HolidayBase.__init__(self, **kwargs)
github facebook / prophet / python / fbprophet / hdays.py View on Github external
def __init__(self, **kwargs):
        self.country = "BD"
        HolidayBase.__init__(self, **kwargs)
github dr-prodigy / python-holidays / holidays.py View on Github external
def __init__(self, **kwargs):
        self.country = 'England'
        HolidayBase.__init__(self, **kwargs)
github dr-prodigy / python-holidays / holidays.py View on Github external
def __init__(self, **kwargs):
        self.country = 'Ireland'
        HolidayBase.__init__(self, **kwargs)
github dr-prodigy / python-holidays / holidays.py View on Github external
def __init__(self, **kwargs):
        self.country = 'UK'
        HolidayBase.__init__(self, **kwargs)
github facebook / prophet / python / fbprophet / hdays.py View on Github external
def __init__(self, **kwargs):
        self.country = "VN"
        HolidayBase.__init__(self, **kwargs)
github dr-prodigy / python-holidays / holidays.py View on Github external
def __init__(self, country, **kwargs):
            self.country = country
            self.holidays = []
            if getattr(h1, 'holidays', False):
                for h in h1.holidays:
                    self.holidays.append(h)
            else:
                self.holidays.append(h1)
            if getattr(h2, 'holidays', False):
                for h in h2.holidays:
                    self.holidays.append(h)
            else:
                self.holidays.append(h2)
            HolidayBase.__init__(self, **kwargs)
github CityOfNewYork / NYCOpenRecords / app / lib / __init__.py View on Github external
def __init__(self, **kwargs):
        self.country = 'US'
        HolidayBase.__init__(self, **kwargs)