holidays.countries.india

Classes

IN(*args, **kwargs)

param years:

IND(*args, **kwargs)

param years:

India(*args, **kwargs)

https://www.india.gov.in/calendar https://www.india.gov.in/state-and-ut-holiday-calendar https://en.wikipedia.org/wiki/Public_holidays_in_India https://www.calendarlabs.com/holidays/india/2021 https://slusi.dacnet.nic.in/watershedatlas/list_of_state_abbreviation.htm https://vahan.parivahan.gov.in/vahan4dashboard/

class holidays.countries.india.India(*args, **kwargs)

Bases: HolidayBase, ChristianHolidays, InternationalHolidays, IslamicHolidays

https://www.india.gov.in/calendar https://www.india.gov.in/state-and-ut-holiday-calendar https://en.wikipedia.org/wiki/Public_holidays_in_India https://www.calendarlabs.com/holidays/india/2021 https://slusi.dacnet.nic.in/watershedatlas/list_of_state_abbreviation.htm https://vahan.parivahan.gov.in/vahan4dashboard/

Parameters:
  • years – The year(s) to pre-calculate public holidays for at instantiation.

  • expand – Whether the entire year is calculated when one date from that year is requested.

  • observed – Whether to include the dates when public holiday are observed (e.g. a holiday falling on a Sunday being observed the following Monday). This doesn’t work for all countries.

  • subdiv – The subdivision (e.g. state or province) as a ISO 3166-2 code or its alias; not implemented for all countries (see documentation).

  • provdeprecated use subdiv instead.

  • statedeprecated use subdiv instead.

  • language – The language which the returned holiday names will be translated into. It must be an ISO 639-1 (2-letter) language code. If the language translation is not supported the original holiday names will be used.

  • categories – Requested holiday categories.

Returns:

A HolidayBase object matching the country.

country: str = 'IN'

The country’s ISO 3166-1 alpha-2 code.

subdivisions: Tuple[str, ...] = ('AN', 'AP', 'AR', 'AS', 'BR', 'CG', 'CH', 'DD', 'DH', 'DL', 'GA', 'GJ', 'HP', 'HR', 'JH', 'JK', 'KA', 'KL', 'LA', 'LD', 'MH', 'ML', 'MN', 'MP', 'MZ', 'NL', 'OR', 'PB', 'PY', 'RJ', 'SK', 'TN', 'TR', 'TS', 'UK', 'UP', 'WB')

The subdivisions supported for this country (see documentation).

class holidays.countries.india.IN(*args, **kwargs)

Bases: India

Parameters:
  • years – The year(s) to pre-calculate public holidays for at instantiation.

  • expand – Whether the entire year is calculated when one date from that year is requested.

  • observed – Whether to include the dates when public holiday are observed (e.g. a holiday falling on a Sunday being observed the following Monday). This doesn’t work for all countries.

  • subdiv – The subdivision (e.g. state or province) as a ISO 3166-2 code or its alias; not implemented for all countries (see documentation).

  • provdeprecated use subdiv instead.

  • statedeprecated use subdiv instead.

  • language – The language which the returned holiday names will be translated into. It must be an ISO 639-1 (2-letter) language code. If the language translation is not supported the original holiday names will be used.

  • categories – Requested holiday categories.

Returns:

A HolidayBase object matching the country.

class holidays.countries.india.IND(*args, **kwargs)

Bases: India

Parameters:
  • years – The year(s) to pre-calculate public holidays for at instantiation.

  • expand – Whether the entire year is calculated when one date from that year is requested.

  • observed – Whether to include the dates when public holiday are observed (e.g. a holiday falling on a Sunday being observed the following Monday). This doesn’t work for all countries.

  • subdiv – The subdivision (e.g. state or province) as a ISO 3166-2 code or its alias; not implemented for all countries (see documentation).

  • provdeprecated use subdiv instead.

  • statedeprecated use subdiv instead.

  • language – The language which the returned holiday names will be translated into. It must be an ISO 639-1 (2-letter) language code. If the language translation is not supported the original holiday names will be used.

  • categories – Requested holiday categories.

Returns:

A HolidayBase object matching the country.