holidata


Nameholidata JSON
Version 2023.11.0 PyPI version JSON
download
home_pagehttps://github.com/GothenburgBitFactory/holidata
SummaryHolidata is a utility for algorithmically producing holidays for a given locale and year
upload_time2023-11-09 20:37:04
maintainer
docs_urlNone
authorGothenburg Bit Factory
requires_python>=3.8, <4
license
keywords holiday calendar
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Holidata

`holidata` is a utility for algorithmically producing holiday data.
Its purpose is mainly for [holidata.net](https://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](https://holidata.net/locales/) for a complete overview of the currently provided locales.

If you think a locale is missing, [open a feature request on GitHub](https://github.com/GothenburgBitFactory/holidata/issues).

## 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](https://github.com/GothenburgBitFactory/holidata/issues).

## 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](LICENSE) file.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/GothenburgBitFactory/holidata",
    "name": "holidata",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8, <4",
    "maintainer_email": "",
    "keywords": "holiday,calendar",
    "author": "Gothenburg Bit Factory",
    "author_email": "support@gothenburgbitfactory.org",
    "download_url": "https://files.pythonhosted.org/packages/30/47/5e765fc88324fa15905951487f2c1892284046e9bffd0baca0f91ca0f6fe/holidata-2023.11.0.tar.gz",
    "platform": null,
    "description": "# Holidata\n\n`holidata` is a utility for algorithmically producing holiday data.\nIts purpose is mainly for [holidata.net](https://holidata.net).\n\nHoliday data can be produced for a given year in a supported locale and output format.\n\n## Usage\n\n```\nholidata --year=<value> --locale=<value> [--output=<value>]\nholidata --year=<value> --country=<value> [--lang=<value>] [--output=<value>]\n```\nCall `holidata` with the `--help` option to more detailed information.\n\n### Examples\n* Create holiday data of year `2022` for locale `de-DE`:\n  ```\n  $ holidata --year=2022 --locale=de-DE\n  ```\n  \n* Create holiday data of year `2022` for country `BE` and language `fr`:\n  ```\n  $ holidata --year=2022 --country=BE --lang=fr\n  ```\n  \n* Create holiday data of year `2022` for country `US` (default language `en`):\n  ```\n  $ holidata --year=2022 --country=US\n  ```\n\n## Data\n\nFor each holiday the following data is provided:\n* `locale` - language and country the holiday is defined for\n* `region` - region code of the given subdivision the holiday is defined for\n* `date` - actual date the holiday takes place\n* `description` - name of the holiday in the given language\n* `type` - holiday type flags\n* `notes` - additional information\n\n## Locales\n\nHolidata provides holiday data in different locales, i.e. for a given country and in a given language.\nSee [holidata.net](https://holidata.net/locales/) for a complete overview of the currently provided locales.\n\nIf you think a locale is missing, [open a feature request on GitHub](https://github.com/GothenburgBitFactory/holidata/issues).\n\n## Output Formats\n\nHolidata supports different output formats, currently `csv`, `json`, `yaml`, and `xml`.\n\nIf you think an output format is missing, [open a feature request on GitHub](https://github.com/GothenburgBitFactory/holidata/issues).\n\n## Limitations\n\nHolidata 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).\n\nHolidata only provides data for countries and their principal subdivisions (both as they are defined in ISO 3166).\nHolidays for other subdivisions are either merged or ignored.\nThere is also no explicit representation of partial holidays.\n\n## License\n\n`holidata` is released under the MIT license.\nFor details check the [LICENSE](LICENSE) file.\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Holidata is a utility for algorithmically producing holidays for a given locale and year",
    "version": "2023.11.0",
    "project_urls": {
        "Bug Reports": "https://github.com/GothenburgBitFactory/holidata/issues",
        "Homepage": "https://github.com/GothenburgBitFactory/holidata",
        "Source": "https://github.com/GothenburgBitFactory/holidata",
        "Website": "https://holidata.net"
    },
    "split_keywords": [
        "holiday",
        "calendar"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3a62071f5954ee88a4368e069508fe48bf53188b2dd76136ee9936241ef05c64",
                "md5": "b56cfe025cc73e8d233320942b7db757",
                "sha256": "54afc61506cd727fc4d1bb50e4ff8d3ac7048672c1010f9c51aa1996a6779df7"
            },
            "downloads": -1,
            "filename": "holidata-2023.11.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b56cfe025cc73e8d233320942b7db757",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8, <4",
            "size": 51720,
            "upload_time": "2023-11-09T20:37:03",
            "upload_time_iso_8601": "2023-11-09T20:37:03.305759Z",
            "url": "https://files.pythonhosted.org/packages/3a/62/071f5954ee88a4368e069508fe48bf53188b2dd76136ee9936241ef05c64/holidata-2023.11.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "30475e765fc88324fa15905951487f2c1892284046e9bffd0baca0f91ca0f6fe",
                "md5": "7907543af7f4e45e7bc732f2311b7e43",
                "sha256": "08d23b0ee9baafbab3f1ae1a67b08037a1c8fea9c6200a054bbe5eec16d7b7e2"
            },
            "downloads": -1,
            "filename": "holidata-2023.11.0.tar.gz",
            "has_sig": false,
            "md5_digest": "7907543af7f4e45e7bc732f2311b7e43",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8, <4",
            "size": 33794,
            "upload_time": "2023-11-09T20:37:04",
            "upload_time_iso_8601": "2023-11-09T20:37:04.955802Z",
            "url": "https://files.pythonhosted.org/packages/30/47/5e765fc88324fa15905951487f2c1892284046e9bffd0baca0f91ca0f6fe/holidata-2023.11.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-09 20:37:04",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "GothenburgBitFactory",
    "github_project": "holidata",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "holidata"
}
        
Elapsed time: 0.19307s