Skip to main content

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 date objects, 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, a datetime (read as the local date it shows) or "YYYY-MM-DD". end is the last day, inclusive.
  • category is public_holiday, school_days, exam_days, term_holidays or other.
  • status is final, current or tentative. Tentative calendars can still change.
  • file is "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

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 a short credit line. 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.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mv-academic-calendar 0.1.3
File Size Uploaded Provenance Actions
mv_academic_calendar-0.1.3.tar.gz 32.7 kB With provenance Details for mv_academic_calendar-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mv-academic-calendar 0.1.3
File Interpreter ABI Platform Actions
mv_academic_calendar-0.1.3-py3-none-any.whl Python 3 none any Details for mv_academic_calendar-0.1.3-py3-none-any.whl

Total release size: 67.6 kB

Release files / mv_academic_calendar-0.1.3.tar.gz

Download URL mv_academic_calendar-0.1.3.tar.gz
Size 32.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d5e7652e0af1b1411f21dcf246aa6c67ec66b8d2fad75c1445ead097f83b1fa9
BLAKE2b-256 checksum
How to use checksums
825e35475ed5845425102b2d5c7a7b5b8ca3e9f5a23506ba31e5bb9fe4c55118
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 8, 2026.

Transparency log

Release files / mv_academic_calendar-0.1.3-py3-none-any.whl

Download URL mv_academic_calendar-0.1.3-py3-none-any.whl
Size 34.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f6b2d9992639132cb8d8b6eeae2fd7d9dfbff918d8721a416a20742bef4ce8ec
BLAKE2b-256 checksum
How to use checksums
650ccc5a518bd1c896a4f338218ca8ed1f4bae970cd2acedf0e84b50e11f4b4e
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 8, 2026.

Transparency log

Security for mv-academic-calendar 0.1.3

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.

Select from 2 files

Attestation for mv_academic_calendar-0.1.3.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 8, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page