Maldives Academic Calendar for Python
mv-academic-calendar gives you the Maldives school academic calendar and public holidays as a small, offline Python library:
terms, exams, mid-term breaks and holidays for every year from 2015 to 2027, plus the iCalendar (ICS) file for each calendar.
- Works offline. The data ships inside the package. No API key, no network calls, no dependencies.
- Ready to use. Check a public holiday, list a day's events, find the next holiday, or filter by year, category and dates.
- Typed. Events are frozen dataclasses with real
dateobjects, and the package ships type hints. - Python 3.11 or newer.
Unofficial. The data is compiled from calendars published by the Ministry of Education of the Maldives. Always check the Ministry's site for the authoritative version.
Install
pip install mv-academic-calendar
Quick start
import mv_academic_calendar as mv
mv.is_public_holiday("2026-01-01") # True
mv.events_on("2026-05-27") # what is happening on that day
mv.next_event("2026-02-01", category="public_holiday") # the next Maldives public holiday
mv.events(year=2026, category="exam_days") # exam periods in 2026
mv.calendars() # every calendar with its status
Get the Maldives public holidays for a year
for h in mv.events(year=2026, category="public_holiday"):
print(h.start, h.end, h.name)
Is today a school holiday?
from datetime import date
off = [e for e in mv.events_on(date.today()) if e.category in ("public_holiday", "term_holidays")]
print(f"No school: {off[0].name}" if off else "Normal day")
Get the iCalendar (ICS) file
mv.ics_files() # ["2015", "2017", ..., "2023-2024", ..., "2027"]
mv.ics("2026") # iCalendar text: serve it, save it, or subscribe to it
API
| Function | Returns |
|---|---|
is_public_holiday(day) |
True if the day falls on a public holiday |
events_on(day) |
every event happening on that day |
next_event(day, **filters) |
the next event starting on or after the day, or None |
events(**filters) |
events sorted by date. Filter by year, file, category, status, start, end, text |
calendars() |
the available calendars: file, year, status, events, retrieved |
ics(file) / ics_files() |
the iCalendar text for a calendar, and the available names |
updated |
the date the bundled data was last checked |
attribution |
a ready-made credit line |
An Event has id, start, end, name, category, calendar, file and status.
- Dates have no time zone. Pass a
date, adatetime(read as the local date it shows) or"YYYY-MM-DD".endis the last day, inclusive. categoryispublic_holiday,school_days,exam_days,term_holidaysorother.statusisfinal,currentortentative. Tentative calendars can still change.fileis"2026", or"2023-2024"for the academic years that run August to June.
About the data
Calendars cover 2015, 2017 to 2020, the academic years 2021-2022, 2022-2023 and 2023-2024, and 2024 to 2027. Each is the newest version the Ministry has published.
The package is a snapshot: a new version is released whenever the calendars change. See the changelog.
For the very latest data between releases, fetch data/all.json from the repository.
Also available
- JavaScript and TypeScript:
npm install mv-academic-calendar, with the same API - Raw JSON and ICS files: the repository, no install needed
- Guides: the wiki, including how to load the data into a database
Licence
Code: MIT. The compiled data: CC BY 4.0. Please credit it, and say it is unofficial:
Maldives Academic Calendar, https://github.com/grootismore/mv-academic-calendar. Compiled from calendars published by the Ministry of Education, Republic of Maldives. Unofficial.
mv_academic_calendar.attribution holds that text. The package stores no Ministry documents, only the dates and names extracted from them.
Questions, ideas or a wrong date? Open a discussion or an issue.
Metadata
Release files for mv-academic-calendar 0.1.1
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 |
|---|---|---|---|---|
| mv_academic_calendar-0.1.1.tar.gz | 32.9 kB | With provenance | Details for mv_academic_calendar-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mv_academic_calendar-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for mv_academic_calendar-0.1.1-py3-none-any.whl |
Total release size: 67.9 kB
Release files / mv_academic_calendar-0.1.1.tar.gz
| Download URL | mv_academic_calendar-0.1.1.tar.gz |
|---|---|
| Size | 32.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e47531b48545c9ba2d6e50bbd5f47d72a13820f5e68fd31c46051cb191dc5c38
|
|
BLAKE2b-256 checksum How to use checksums |
15ee2114ac1930385ded29147b7b3cc9bbbfd965f9c33ae02ba62a171c71bfac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logRelease files / mv_academic_calendar-0.1.1-py3-none-any.whl
| Download URL | mv_academic_calendar-0.1.1-py3-none-any.whl |
|---|---|
| Size | 35.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ce529835e84db7ff077a0350f11ccfe2bb56877bd9bfc2331668662ad35d812c
|
|
BLAKE2b-256 checksum How to use checksums |
8ef0ff52d9722826f5077a755137be71d8a40ed922aa0859206f6a407f6358da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logSecurity for mv-academic-calendar 0.1.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for mv_academic_calendar-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logA 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.