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

v1: entity class naming

Open arkid15r opened this issue 1 year ago • 1 comments

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 avatar Jan 22 '24 20:01 arkid15r

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

arkid15r avatar Jan 22 '24 20:01 arkid15r