python-holidays icon indicating copy to clipboard operation
python-holidays copied to clipboard

Holidays in Portugal

Open goncaloperes opened this issue 5 years ago • 11 comments

Even though in Portugal there are nationwide holidays, others are regional or municipal (depending on the city).

If one runs the following script, to access the holidays in Portugal plus extended days most people have off:

from datetime import date
import holidays
for date, name in sorted(holidays.PTE(years=2020).items()):
    print(date, name)

One gets the following list:

2020-01-01 Ano Novo 2020-02-25 Carnaval 2020-04-10 Sexta-feira Santa 2020-04-12 Páscoa 2020-04-25 Dia da Liberdade 2020-05-01 Dia do Trabalhador 2020-06-10 Dia de Portugal 2020-06-11 Corpo de Deus 2020-06-13 Dia de Santo António 2020-08-15 Assunção de Nossa Senhora 2020-10-05 Implantação da República 2020-11-01 Dia de Todos os Santos 2020-12-01 Restauração da Independência 2020-12-08 Imaculada Conceição 2020-12-24 Véspera de Natal 2020-12-25 Dia de Natal 2020-12-26 26 de Dezembro 2020-12-31 Véspera de Ano Novo

I have seen that the general/national holidays for Portugal are missing, here is its list:

Date Name
1 of January Ano Novo
Tuesday (between 3 of February and 9 of March) Entrudo/Carnaval
Friday (between 20 of March and 23 of April) Sexta-Feira Santa
Sunday (between 22 of March and 25 of April) Páscoa
25 of April Dia da Liberdade
1 of May Dia do Trabalhador
Thursday (between 21 of May and 24 of June) Corpo de Deus
10 of June Dia de Portugal
15 of August Assunção de Nossa Senhora
5 of October Implantação da República
1 of November Todos os Santos
1 of December Restauração da Independência
8 of December Imaculada Conceição
25 of December Natal

As one can see, it is slightly different than the one above, as the first one considers some municipal holidays. Here is a detailed list of the holidays in Portugal, in their specific months.

goncaloperes avatar Jul 03 '20 12:07 goncaloperes

Additional Notes: • The state has been giving "Entrudo" since 1978, but there were some exceptions: 1993 and 2012–2015. • Corpus Cristus and Implantação da República were suspended between 2013 and 2015 (inclusive).

goncaloperes avatar Jul 03 '20 13:07 goncaloperes

I may suggest adding the 18 district holidays: Aveiro, Beja, Braga, Bragança, Castelo Branco, Coimbra, Évora, Faro, Guarda, Leiria, Lisboa, Portalegre, Porto, Santarém, Setúbal, Viana do Castelo, Vila Real e Viseu. I can create a PR with this addition if you agree @dr-prodigy

To get more granular, we would need to add the 318 municipal holidays ... that would take considerably more time to implement.

pmpbaptista avatar Oct 16 '22 20:10 pmpbaptista

@Nalguedo it sounds like a good plan.. I definitely agree on it! If you wish to implement this first version, please do and I'll be happy to include it.. then there's always time to improve and proceed with the other 300 :-) Thank you very much!

dr-prodigy avatar Oct 18 '22 07:10 dr-prodigy

@dr-prodigy This is now solved with the latest release.

PPsyrius avatar Mar 16 '23 03:03 PPsyrius

Not sure if we want to keep it open to track progress on adding those ~300 holidays mentioned by @goncaloperes and @pmpbaptista

arkid15r avatar Mar 21 '23 16:03 arkid15r

It makes sense to keep it open ;)

pmpbaptista avatar Mar 21 '23 18:03 pmpbaptista