Pandas Holiday Calendar. The pandas_market_calendars package looks to fill that role with the holiday, late open and early close calendars for specific exchanges and otc conventions. Holiday calendars can be used to provide the list of holidays.
From pandas.tseries.holiday import usfederalholidaycalendar as calendar. Generate a custom holiday calendar.