Holidata is a utility for algorithmically producing holidays for a given locale and year
Project description
Holidata
holidata is a utility for algorithmically producing holiday data.
It is used e.g. by Taskwarrior and Timewarrior, as well as for holidata.net.
Holiday data can be produced for a given year in a supported locale and output format.
Usage
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.
Examples
-
Create holiday data of year
2022for localede-DE:$ holidata --year=2022 --locale=de-DE -
Create holiday data of year
2022for countryBEand languagefr:$ holidata --year=2022 --country=BE --lang=fr -
Create holiday data of year
2022for countryUS(default languageen):$ holidata --year=2022 --country=US
Data
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 information
Locales
Holidata 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.
Output Formats
Holidata supports different output formats, currently csv, jsonline, yaml, and xml.
Limitations
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.
Contributing
Take a look at CONTRIBUTING.md on how you can contribute. ❤️
License
holidata is released under the MIT license.
For details check the LICENSE file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file holidata-2026.1.2.tar.gz.
File metadata
- Download URL: holidata-2026.1.2.tar.gz
- Upload date:
- Size: 44.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb759b93c822f57fa7a40e14ac3ed70e73c5c6a56b0f445a19261c356d088cea
|
|
| MD5 |
b72a08ec1e0348d1b34269a779ac8faf
|
|
| BLAKE2b-256 |
874a41dc48c5c49bb75b597e7e626ef4142d44089dcc50d34a780ac33fb0fc36
|
File details
Details for the file holidata-2026.1.2-py3-none-any.whl.
File metadata
- Download URL: holidata-2026.1.2-py3-none-any.whl
- Upload date:
- Size: 77.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12b58c6cdd62121eeb8e537ab0dbbd1fe6bbf60236b2a51d29382fcd898609e1
|
|
| MD5 |
9cf7972393a02160f5ec9db27b53195a
|
|
| BLAKE2b-256 |
c640911b98466b7056a0577b84852192de11925463e74a5361c5696570ba4cd8
|