Skip to main content

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

Data

For each holiday the following data is provided:

  • locale - language and country the holiday is defined for
  • region - region code of the given subdivision the holiday is defined for
  • date - actual date the holiday takes place
  • description - name of the holiday in the given language
  • type - holiday type flags
  • notes - 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

holidata-2026.2.0.tar.gz (43.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

holidata-2026.2.0-py3-none-any.whl (76.6 kB view details)

Uploaded Python 3

File details

Details for the file holidata-2026.2.0.tar.gz.

File metadata

  • Download URL: holidata-2026.2.0.tar.gz
  • Upload date:
  • Size: 43.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for holidata-2026.2.0.tar.gz
Algorithm Hash digest
SHA256 91d54041539cda8b23ac969d029a3fc303ca5d046cc3018da0c0678c00a0e249
MD5 e2f6bc0456cc169d5b797afb2d1c4e26
BLAKE2b-256 2fab9247ca226a97bcb4489574743ac28bcae02b4cda0dc3e52b8ef2cb3809ce

See more details on using hashes here.

File details

Details for the file holidata-2026.2.0-py3-none-any.whl.

File metadata

  • Download URL: holidata-2026.2.0-py3-none-any.whl
  • Upload date:
  • Size: 76.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for holidata-2026.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 23e0b094eab08478d4389a939dab9c1a387d02c615e48ff88dd77bcc52f7b9bc
MD5 0d98f9b09e87cbf5263f92555a2fdf3d
BLAKE2b-256 a0e7dcc60627d27404a8b3a0cb361a633806a876083b1cfa76fbd95d26a2c457

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page