holidays.countries.puerto_rico

PuertoRico(*args, **kwargs)

Bases: ChildEntity, UnitedStates

Puerto Rico holidays.

Alias of a US subdivision that is also officially assigned its own country code in ISO 3166-1. See https://en.wikipedia.org/wiki/ISO_3166-2:US#Subdivisions_included_in_ISO_3166-1

Initialize the child entity using its country code.

A child entity always has its own country code that is different from the parent entity's country code but (in majority of cases) is a subdivision of the parent entity. For setting specific subdivision code value use parent_entity_subdivision_code.

country = 'PR' class-attribute instance-attribute

parent_entity = UnitedStates class-attribute instance-attribute

start_year = 1903 class-attribute instance-attribute

supported_categories = (HALF_DAY, PUBLIC, UNOFFICIAL) class-attribute instance-attribute

HolidaysPR(*args, **kwargs)

Bases: PuertoRico

Initialize the child entity using its country code.

A child entity always has its own country code that is different from the parent entity's country code but (in majority of cases) is a subdivision of the parent entity. For setting specific subdivision code value use parent_entity_subdivision_code.

PR(*args, **kwargs)

Bases: PuertoRico

Initialize the child entity using its country code.

A child entity always has its own country code that is different from the parent entity's country code but (in majority of cases) is a subdivision of the parent entity. For setting specific subdivision code value use parent_entity_subdivision_code.

PRI(*args, **kwargs)

Bases: PuertoRico

Initialize the child entity using its country code.

A child entity always has its own country code that is different from the parent entity's country code but (in majority of cases) is a subdivision of the parent entity. For setting specific subdivision code value use parent_entity_subdivision_code.