Skip to main content

Holidata is a utility for algorithmically producing holidays for a given locale and year

Reason this release was yanked:

invalid build

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

Uploaded Source

Built Distribution

holidata-2022.8.1-py3-none-any.whl (51.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: holidata-2022.8.1.tar.gz
  • Upload date:
  • Size: 31.8 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.1.tar.gz
Algorithm Hash digest
SHA256 f1a694cdf903ea0ff1b6e69a4f6649af9734a04f8a5ea321735365478e433d0c
MD5 3dfb05408dfa61ca87c6e0fe4a87557a
BLAKE2b-256 0ec13fc6d2f9901ec16b794d463842b56518a0b795512130ac54940f4f7ab2f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: holidata-2022.8.1-py3-none-any.whl
  • Upload date:
  • Size: 51.4 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8c693eb3ae5eb7f86f138347469c3fe2ce55d6b612bcd5a49d1a94941d02c922
MD5 ec888e11c05e9ed1f51ad1d97844fdd6
BLAKE2b-256 9f2a855d5cdcf35fb1b29671521451cd7f504d3a59cb5eb03da49e596f485317

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