vacanza / holidays

Generate and work with holidays in Python
https://pypi.org/project/holidays
MIT License
1.45k stars 460 forks source link

Add multi-level subdivision support #1713

Open arkid15r opened 7 months ago

arkid15r commented 7 months ago

Many entities have multi-level subdivision structure (see https://github.com/vacanza/python-holidays/issues/1710 request for adding Barcelona holidays, where province ES-B has autonomous community ES-CT as parent -- https://www.iso.org/obp/ui/#iso:code:3166:ES).

As long as the structure is defined by ISO3166-2 it'd be significant improvement to have multi-level subdivision support. We've added subdivision alias support recently so it won't be an issue to have Barcelona -> B mapping.

A couple of aspects to think through: