Metadata-Version: 2.4
Name: morocco-holidays
Version: 1.0.0
Summary: Public holidays in Morocco, with Eid and other Islamic holidays as Morocco actually observed them (2000-2026).
Author-email: Wadifa Info <contact@wadifa-info.com>
License: MIT (code); CC BY 4.0 (data, Wadifa Info)
Project-URL: Homepage, https://www.wadifa-info.com/en/morocco-public-holidays
Project-URL: Data, https://huggingface.co/datasets/wadifainfo/morocco-religious-holidays-2000-2026
Project-URL: Archive of dates, https://www.wadifa-info.com/fr/dates-fetes-religieuses-maroc-historique
Project-URL: API, https://www.wadifa-info.com/en/api
Project-URL: Source, https://github.com/wadifainfo/morocco-public-jobs-data
Keywords: morocco,holidays,eid,islamic calendar,public holidays,maroc,jours feries
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Office/Business :: Scheduling
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# morocco-holidays

Public holidays in Morocco for 2000–2026, with the **Islamic holidays on the dates Morocco actually observed them**.

Most calendar libraries compute Eid from Saudi Arabia's Umm al-Qura calendar. Morocco fixes each Islamic month by its own moon sighting and is usually a day later: of 135 Islamic holidays from 2000 to 2026, Morocco observed 90 one day after Saudi Arabia, 44 on the same day and 1 two days later. This package ships the observed dates, one source per date, plus the national holidays with the year each started (Amazigh New Year since 2024, Unity Day from 2026).

```python
from datetime import date
import morocco_holidays as mh

for h in mh.holidays(2025):
    print(h.date, h.name)

mh.is_holiday(date(2025, 3, 31))     # Holiday(name='Eid al-Fitr (day 1)', ...)  Saudi Arabia: 30 March
mh.holidays_online(2027)             # forecasts from the free API; unconfirmed Islamic dates have estimated=True
```

Each `Holiday` has `date`, `name` (English), `name_fr`, `name_ar`, `religious`, `estimated` and `source`.

## Data and credit

- Dates and sources: [morocco-religious-holidays-2000-2026](https://huggingface.co/datasets/wadifainfo/morocco-religious-holidays-2000-2026) (CSV, CC BY 4.0).
- Current list with explanations: [Public holidays in Morocco](https://www.wadifa-info.com/en/morocco-public-holidays) by [Wadifa Info](https://www.wadifa-info.com).
- Free JSON API used by `holidays_online()`: https://www.wadifa-info.com/en/api

Code under the MIT licence; holiday data under CC BY 4.0 (credit "Wadifa Info"). Corrections: contact@wadifa-info.com.
