Suites · education
Education and training
Schools, colleges and training: academic years and terms, year groups, attendance, grades and weighted marks, GPA and degree classes, timetable clashes, fees and CPD.
34 capabilities (15 core, 19 optional) and 8 gaps, in build order. Put each line in the file that calls it, then fune build.
UK first: year groups, academic years, attendance thresholds and degree classification follow UK conventions; check your institution's own regulations.
TypeScript Python Rust
1. Academic calendar
Put dates into academic years and terms, and pupils into year groups.
education.academic-year core
The academic year and term a date falls in, terms supplied by you.
The academic year and term a date falls in: 1 September to 31 August by default, terms from the caller.
from fune.education.academic_year import academic_year # education.academic-year@^1
1.0.1
education.school-year-group core
School year group from date of birth, by UK nation.
School year group from date of birth on a date, by UK nation: Reception to Year 13, P1 to S6, P1 to Year 14.
from fune.education.school_year_group import school_year_group # education.school-year-group@^1
1.0.1
dates.age optional
Age in whole years on a date.
Age in whole years on a given date, with 29 February birthdays ageing on 1 March in other years.
from fune.dates.age import age # dates.age@^1
1.0.0
2. Attendance
Track attendance and spot persistent absence.
education.attendance-rate core
Attendance and absence rates with the DfE persistent and severe absence flags.
Pupil attendance and absence rates in basis points, with the DfE persistent and severe absence flags.
from fune.education.attendance_rate import attendance_rate # education.attendance-rate@^1
1.0.1
registers Taking registers (marks, codes per session) and storing them is yours.
3. Assessment and grades
Turn marks into grades and results.
education.grade-boundaries core
Grade for a mark from your boundary table.
Grade for a mark from the caller's boundary table: inclusive lower bounds, ungraded below the lowest.
from fune.education.grade_boundaries import grade_for_mark # education.grade-boundaries@^1
1.0.0
education.weighted-grade core
Weighted percentage across coursework and exam components.
Weighted percentage across coursework and exam components, exact as a fraction, then rounded once.
from fune.education.weighted_grade import weighted_grade # education.weighted-grade@^1
1.0.0
education.gpa optional
GPA on a 4.0 scale from letter grades and credit hours.
Grade point average on a 4.0 scale from letter grades and credit hours, weighted by credits and rounded once.
from fune.education.gpa import gpa # education.gpa@^1
1.0.0
education.degree-classification optional
UK honours degree class from module marks and credits, weighted by level.
UK honours degree class (First, 2:1, 2:2, Third) from module marks and credits, weighted by level.
from fune.education.degree_classification import degree_classification # education.degree-classification@^1
1.0.0
stats.mean-median optional
Class averages and medians, exactly.
Mean, median and mode of a list of integers, with the mean and median as exact fractions.
from fune.stats.mean_median import mean_median_mode # stats.mean-median@^1
1.0.0
exam-board-data Exam board results and boundaries (via A2C/EDI) are not in caps; you supply the tables.
5. Fees and finance
Bill fees in instalments.
education.fee-instalments optional
Tuition fee instalment schedule from a total, shares and due dates, to the penny.
Tuition fee instalment schedule from a total, shares and due dates, exact to the penny.
from fune.education.fee_instalments import fee_instalments # education.fee-instalments@^1
1.0.0
education.student-loan-repayment optional
A graduate's student loan repayment for a tax year.
A graduate's student or postgraduate loan repayment for a tax year, as Self Assessment works it out.
from fune.education.student_loan_repayment import student_loan_repayment # education.student-loan-repayment@^1
1.0.1
money.format optional
Shows fees with the currency's decimal places.
Render a monetary amount as text, using the currency's real minor-unit precision.
from fune.money.format import format_money # money.format@^1
1.0.0
6. Professional development
Track CPD against a requirement.
education.cpd-hours optional
CPD minutes logged against a requirement for a period, shortfall and days left.
CPD logged against a requirement for a rolling or fixed period: minutes counted, shortfall and days left.
from fune.education.cpd_hours import cpd_hours # education.cpd-hours@^1
1.0.0
7. Calendar arithmetic from dates-basics
Move and measure ISO dates exactly, with no date library and no clock reads.
dates.add-days core
Shifts a date by whole days, for due dates and windows.
Shift an ISO date by a whole number of days, forwards or backwards, with exact calendar arithmetic.
from fune.dates.add_days import add_days # dates.add-days@^1
1.0.0
dates.add-months core
Adds months clamping to month end, so 31 January plus a month is the end of February.
Add calendar months to an ISO date, clamping to the month end: 31 Jan + 1 month is 28 or 29 Feb.
from fune.dates.add_months import add_months # dates.add-months@^1
1.0.0
dates.days-between core
Signed calendar days between two dates, for ages of invoices and stays.
Calendar days from one ISO date to another, signed: negative when the second date is earlier.
from fune.dates.days_between import days_between # dates.days-between@^1
1.0.0
dates.month-boundaries core
First and last day of a date's month, for monthly periods and statements.
The first day, last day and length of the calendar month containing a date.
from fune.dates.month_boundaries import month_boundaries # dates.month-boundaries@^1
1.0.0
dates.day-of-week core
ISO weekday of a date, for weekend rules and opening hours.
The ISO 8601 day of the week for a date: 1 is Monday through 7 is Sunday.
from fune.dates.day_of_week import day_of_week # dates.day-of-week@^1
1.0.0
dates.is-leap-year optional
Whether a year is a leap year, for 365/366-day calculations.
Whether a year is a Gregorian leap year: every 4th, except centuries, except every 400th.
from fune.dates.is_leap_year import is_leap_year # dates.is-leap-year@^1
1.0.0
dates.overlap optional
Days two date ranges share, for prorating and clash checks.
Days two date ranges have in common, with the end of each range stated as inclusive or exclusive.
from fune.dates.overlap import overlap_days # dates.overlap@^1
1.0.0
8. Periods and reporting dates from dates-basics
Put dates into the periods reports are grouped by.
dates.quarter core
Calendar and fiscal quarter of a date for any year-start month.
Calendar quarter and fiscal quarter of a date, with the fiscal year and quarter date ranges, for any start month.
from fune.dates.quarter import quarter # dates.quarter@^1
1.0.0
dates.week-number optional
ISO week number and week-year, for weekly reports.
ISO 8601 week number and week-numbering year of a date: weeks start Monday, week 1 holds the first Thursday.
from fune.dates.week_number import week_number # dates.week-number@^1
1.0.0
dates.day-count-fraction optional
Year fraction by ACT/365F, ACT/360, 30/360 or ACT/ACT, for interest periods.
Year fraction between two dates by ACT/365F, ACT/360, 30/360, 30E/360 or ACT/ACT ISDA, as an exact fraction.
from fune.dates.day_count_fraction import day_count_fraction # dates.day-count-fraction@^1
1.0.0
9. Working days and holidays from dates-basics
Skip weekends and public holidays when counting or adding days.
dates.bank-holidays core
UK bank holidays for a region and year, as gov.uk publishes them.
UK bank and public holidays for a region and year, as published by gov.uk, including one-off holidays.
from fune.dates.bank_holidays import bank_holidays # dates.bank-holidays@^1
1.0.1
dates.add-business-days core
Moves a date by working days, skipping weekends and a holiday list.
Move a date forward or back by working days, skipping weekends and a caller-supplied holiday list.
from fune.dates.add_business_days import add_business_days # dates.add-business-days@^1
1.0.0
dates.business-days-between core
Working days between two dates, for SLAs and notice periods.
Working days between two dates, excluding weekends and a caller-supplied holiday list.
from fune.dates.business_days_between import business_days_between # dates.business-days-between@^1
1.0.0
10. Repeating schedules from dates-basics
Generate the dates of something that repeats.
dates.recurrence optional
The next n dates of a rule: monthly on the 31st, last Friday, every two weeks.
The next n dates of a repeating rule: monthly on a day, last weekday of the month, every k days or weeks, yearly.
from fune.dates.recurrence import recurrence # dates.recurrence@^1
1.0.0
11. Times and durations from dates-basics
Work with times of day, durations and timestamps.
time.duration optional
Parses and adds durations like 1h30m in whole minutes, and formats the total.
Parse durations written as 1h30m, 90m or 01:30, add them up in whole minutes, and format the total.
from fune.time.duration import duration # time.duration@^1
1.0.0
time.minutes-between optional
Minutes between two local date-times, across midnight.
Minutes from one local date and time to another, correct across midnight; wall-clock time, no time zones.
from fune.time.minutes_between import minutes_between # time.minutes-between@^1
1.0.0
time.round-to-increment optional
Rounds minutes to a billing increment such as 6 or 15.
Round a duration in minutes to a billing increment such as 6 or 15 minutes, up, down or to nearest.
from fune.time.round_to_increment import round_to_increment # time.round-to-increment@^1
1.0.0
time.iso-to-unix optional
RFC 3339 timestamps to Unix seconds.
An RFC 3339 timestamp with a Z or offset, such as 2026-09-26T13:00:00+01:00, to Unix time in whole seconds.
from fune.time.iso_to_unix import iso_to_unix # time.iso-to-unix@^1
1.0.0
time.unix-to-iso optional
Unix seconds to an ISO 8601 UTC timestamp.
Unix time in seconds to an ISO 8601 UTC timestamp such as 2026-09-26T12:00:00Z, for years 0001 to 9999.
from fune.time.unix_to_iso import unix_to_iso # time.unix-to-iso@^1
1.0.0
time.countdown optional
Seconds left until a moment and a 4:05 style timer text.
Seconds left until a Unix time, whether it has passed, and a timer text like 4:05, for tokens or retry waits.
from fune.time.countdown import countdown # time.countdown@^1
1.0.0
Gaps What this kind of app usually needs that Functional Weave does not have yet: write these yourself, or use a service.
safeguarding Safeguarding records, parental contacts and consent are yours, with their data protection duties.learning-content Course content, quizzes and an LMS (SCORM, video) are not in caps.time-zones Time zones and daylight saving: caps works in ISO dates, UTC and wall-clock times; converting with the IANA tz rules is yours.locale-formatting Showing dates in a user's language and format ("3 octobre 2026"): caps returns ISO dates, not localised text.non-uk-holidays Public holidays outside the UK: dates.bank-holidays is UK only; pass another country's list to the working-day functions yourself.