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. Its purpose is mainly 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, json, yaml, and xml.

If you think an output format is missing, open a feature request on GitHub.

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.

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-2024.8.0.tar.gz (33.2 kB view details)

Uploaded Source

Built Distribution

holidata-2024.8.0-py3-none-any.whl (58.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: holidata-2024.8.0.tar.gz
  • Upload date:
  • Size: 33.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for holidata-2024.8.0.tar.gz
Algorithm Hash digest
SHA256 45bc9ce9598404968be43c5c539534ec3a4f94cb005a5ee689a2c1606af143a5
MD5 a0d3b6d6989fc7437ff69231acd24fc3
BLAKE2b-256 5c835ed3d9c19ba006ca98c67bde5e4a9946f5591448503cd23f3b19ad49b08c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: holidata-2024.8.0-py3-none-any.whl
  • Upload date:
  • Size: 58.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for holidata-2024.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 277c56c1da76e5c5288c266c147d9d95be748bf59ac4981de0242ba2095b1768
MD5 bc3f5fc5650264efb139a60d94cdaa3d
BLAKE2b-256 8444a2f99f836a33811f4890b7a87233580c86e7ca3fd0eef6a07c7efb81f3e2

See more details on using hashes here.

Supported by

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