amber ibis
FastAPI serverCzech public holidays, and the working days between two dates, as a small JSON API. The whole API
is described at /docs, which FastAPI draws from the code.
The holidays of 2026
| Thu 01 Jan | Restoration Day of the Independent Czech State; New Year's Day |
| Fri 03 Apr | Good Friday |
| Mon 06 Apr | Easter Monday |
| Fri 01 May | Labour Day |
| Fri 08 May | Victory Day |
| Sun 05 Jul | Saints Cyril and Methodius Day |
| Mon 06 Jul | Jan Hus Day |
| Mon 28 Sep | St. Wenceslas Day (Czech Statehood Day) |
| Wed 28 Oct | Independent Czechoslovak State Day |
| Tue 17 Nov | Struggle for Freedom and Democracy Day |
| Thu 24 Dec | Christmas Eve |
| Fri 25 Dec | Christmas Day |
| Sat 26 Dec | St. Stephen's Day |
The next one is Christmas Eve, on Thursday 24 December 2026.
Try it
/api/holidays/2026
13 holidays in 2026./api/working-days?from=2026-01-01&to=2026-12-31
250 working days in 2026./api/is-working-day/2026-12-03
Today, Thursday 03 December, is a working day./api/is-working-day/2026-12-24
24 December 2026 is a day off.
What it counts
- Every public holiday in Czechia is a day off, and one that falls on a weekend is not moved. A working day is Monday to Friday, less the holidays.
- Years from 1990 to 2100, each with the holidays its law had: Good Friday from 2016, 28 September and 17 November from 2000, Victory Day on 9 May until 1991. Easter is computed with the Gregorian algorithm.
- A range for
/api/working-daysincludes both dates and is at most five years long.
How it runs
- There is no Dockerfile. Tori finds FastAPI in
requirements.txt, builds an image from the source and servesappfrommain.py. - When nobody visits for a while the server naps, and the next request wakes it, which takes a moment longer than the ones after it.
- This copy of the server started .
Deploy your own
With Node.js installed (the CLI runs on it; the build runs on Tori):
git clone https://github.com/tori-host/examples
cd examples/amber-ibis
npx tori.host
The first run creates a service under a new name of its own and writes it to tori.json, so that
the next run updates the same service.