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.2

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.2
File Size Uploaded Provenance Actions
mv_academic_calendar-0.1.2.tar.gz 32.9 kB With provenance Details for mv_academic_calendar-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 67.9 kB

Release files / mv_academic_calendar-0.1.2.tar.gz

Download URL mv_academic_calendar-0.1.2.tar.gz
Size 32.9 kB
Tags Source
SHA-256 checksum
How to use checksums
72d066368175fb742cfb79e918c1d597c82e909d69b6aa58ee59f495f89ad765
BLAKE2b-256 checksum
How to use checksums
9a11d7b453878b055c20f7323b0048a1605471fe41db4de1367baa29ebea7186
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 6, 2026.

Transparency log

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

Download URL mv_academic_calendar-0.1.2-py3-none-any.whl
Size 35.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ce5ca382d85338fe772c4daa574158dbbb21c4db41607f5855922a2f1d787453
BLAKE2b-256 checksum
How to use checksums
dbb2a2b86a0af72df265b58c7fbe3f041ba52e6a306e4d31e11c63d587de6069
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 6, 2026.

Transparency log

Security for mv-academic-calendar 0.1.2

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.2.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 6, 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