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

Call holidata providing the necessary data, e.g.

$ holidata --year=2020 --locale=de-DE

Call holidata with the --usage or --help option to get usage info or help respectively.

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 a in 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-2022.8.0.tar.gz (28.9 kB view details)

Uploaded Source

Built Distribution

holidata-2022.8.0-py3-none-any.whl (41.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: holidata-2022.8.0.tar.gz
  • Upload date:
  • Size: 28.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.0

File hashes

Hashes for holidata-2022.8.0.tar.gz
Algorithm Hash digest
SHA256 350693fca021938ca1bcef6df7dc1b9dc22ae15b2e0db45bcfaa435632359afa
MD5 02ffb8d73d3b65e77428ab0e296f7bac
BLAKE2b-256 981db6f25dc06f51c80d099d230f8419df9fca3646af0fce2bdef811b17c622b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: holidata-2022.8.0-py3-none-any.whl
  • Upload date:
  • Size: 41.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.0

File hashes

Hashes for holidata-2022.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0e7250034f42f19a9ed5157889b2090f12e776a2eda894c26b1d3684cbd50a85
MD5 4cf5521bff3c759dee462a125bce32d2
BLAKE2b-256 e04e459bd39507f801f20ec76651e2d05aa1abef3c301ab44be5e65b95a1acaf

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