holidata
is a utility for algorithmically producing holiday data.
Its purpose is mainly for holidata.net.
Holiday data can be produced for a given year in a supported locale and output format.
holidata --year=<value> --locale=<value> [--output=<value>]
holidata --year=<value> --country=<value> [--lang=<value>] [--output=<value>]
Call holidata
with the --help
option to more detailed information.
Create holiday data of year 2022
for locale de-DE
:
$ holidata --year=2022 --locale=de-DE
Create holiday data of year 2022
for country BE
and language fr
:
$ holidata --year=2022 --country=BE --lang=fr
Create holiday data of year 2022
for country US
(default language en
):
$ holidata --year=2022 --country=US
For each holiday the following data is provided:
locale
- language and country the holiday is defined forregion
- region code of the given subdivision the holiday is defined fordate
- actual date the holiday takes placedescription
- name of the holiday in the given languagetype
- holiday type flagsnotes
- additional informationHolidata provides holiday data in different locales, i.e. for a given country and in a given language. See holidata.net for a complete overview of the currently provided locales.
If you think a locale is missing, open a feature request on GitHub.
Holidata supports different output formats, currently csv
, json
, yaml
, and xml
.
If you think an output format is missing, open a feature request on GitHub.
Holidata focuses on holidays which are defined by law on which business or work are suspended or reduced (there may be some exceptions to that rule).
Holidata only provides data for countries and their principal subdivisions (both as they are defined in ISO 3166). Holidays for other subdivisions are either merged or ignored. There is also no explicit representation of partial holidays.
holidata
is released under the MIT license.
For details check the LICENSE file.