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).
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 (CSV, CC BY 4.0).
- Current list with explanations: Public holidays in Morocco by Wadifa Info.
- 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.
Metadata
Release files for morocco-holidays 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| morocco_holidays-1.0.0.tar.gz | 9.1 kB | Without provenance | Details for morocco_holidays-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| morocco_holidays-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for morocco_holidays-1.0.0-py3-none-any.whl |
Total release size: 17.6 kB
Release files / morocco_holidays-1.0.0.tar.gz
| Download URL | morocco_holidays-1.0.0.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ac62907e65799f6bca6891d180abb2e90666bc27a38855783098358ba2802a1f
|
|
BLAKE2b-256 checksum How to use checksums |
a9f57b6e0af0d7bdde7bcab49f35b460fa5084f05256d625fe89bfe7c433ae18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.5
|
Release files / morocco_holidays-1.0.0-py3-none-any.whl
| Download URL | morocco_holidays-1.0.0-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
13cb3d210f7552dd220120f3c25dd20dd027d6eca77990dfa50552f4baed2a60
|
|
BLAKE2b-256 checksum How to use checksums |
34604b44a521e66a4a9118e490a77de788ecd131a10fae96a16ebce5e3b6d62d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.5
|
Security for morocco-holidays 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.