vacanza / holidays

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

v1: entity class naming #1655

Open arkid15r opened 8 months ago

arkid15r commented 8 months ago

Currently there is no standard on entity holiday class naming. In general it somehow aligns with a country name. The idea is to use unified approach on entity class naming. For iso3166 entities it could be based either on alpha-2 or alpha-3 code, e.g. UsHolidays or UsaHolidays. The classes should still be available via their alpha-2 (and probably alpha-3) code aliases so for example US() and USA() imports would also work.

arkid15r commented 8 months ago

See https://github.com/vacanza/python-holidays/issues/998#issuecomment-1454270994 for the original discussion.