{"id":23326204,"url":"https://github.com/nirokay/holidapi","last_synced_at":"2025-04-07T06:44:02.629Z","repository":{"id":248663221,"uuid":"822988791","full_name":"nirokay/holidapi","owner":"nirokay","description":"HolidAPI - holiday api. Collection of wrappers for holiday APIs to use in your Nim code.","archived":false,"fork":false,"pushed_at":"2024-07-24T11:06:28.000Z","size":76,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-13T10:49:59.185Z","etag":null,"topics":["api","api-wrapper","apis","holiday","holiday-api","holidayapi","holidays","holidays-api","lib","library","nim","nim-lang","nimble"],"latest_commit_sha":null,"homepage":"","language":"Nim","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nirokay.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-02T08:07:59.000Z","updated_at":"2024-07-24T11:23:15.000Z","dependencies_parsed_at":"2024-07-22T09:08:56.239Z","dependency_job_id":null,"html_url":"https://github.com/nirokay/holidapi","commit_stats":null,"previous_names":["nirokay/holidapi"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nirokay%2Fholidapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nirokay%2Fholidapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nirokay%2Fholidapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nirokay%2Fholidapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nirokay","download_url":"https://codeload.github.com/nirokay/holidapi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247608163,"owners_count":20965950,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","api-wrapper","apis","holiday","holiday-api","holidayapi","holidays","holidays-api","lib","library","nim","nim-lang","nimble"],"created_at":"2024-12-20T19:15:04.424Z","updated_at":"2025-04-07T06:44:02.610Z","avatar_url":"https://github.com/nirokay.png","language":"Nim","funding_links":[],"categories":[],"sub_categories":[],"readme":"= HolidAPI\n\n== About\n\n_HolidAPI_ (pronounced: _\"Holiday-P-I\"_, haha get it?), is a wrapper for multiple APIs serving information about holidays.\n\n== Installation\n\n`nimble install holidapi`\n\n== Currently supported countries\n\nSee `./COUNTRIES.adoc` for a list of supported countries.\n\nYou do not see your country in this list? Help us by expanding the API wrappers! :D\n\n== Examples\n\n```nim\nimport std/[strformat]\nimport holidapi/api/nagerdate\n\nlet\n    holidays: seq[Holiday] = SouthKorea.getHolidays(2024, bothNames)\n    # `bothNames` will get the english and local name of the holiday\n    # example:\n    #\n    # - South Korea: New Year's Day (새해)\n    # - France:      New Year's Day (Jour de l'an)\n    # - Russia:      New Year's Day (Новый год)\n\nfor holiday in holidays:\n    echo \u0026\"{holiday.name} is on the \" \u0026 holiday.dateTime.format(\"yyyy-MM-dd\") \u0026\n        \u0026\" and goes on for \" \u0026 $holiday.duration.inDays() \u0026 \" day(s)!\"\n\n```\n```nim\n# European holiday API\nimport std/[strformat]\nimport holidapi/api/openholidaysapi\n\nlet\n    holidaysInEnglish: seq[Holiday] = Netherlands.getHolidays(2024)\n    holidaysInDutch {.used.}: seq[Holiday] = Netherlands.getHolidays(2024, Dutch)\n\nfor holiday in holidaysInEnglish:\n    echo \u0026\"{holiday.name} is on the \" \u0026 holiday.dateTime.format(\"yyyy-MM-dd\") \u0026\n        \u0026\" and goes on for \" \u0026 $holiday.duration.inDays() \u0026 \" day(s)!\"\n```\n```nim\n# Alternative German API\nimport std/[strformat]\nimport holidapi/api/feiertageapi\n\nlet response: OrderedTable[GermanState, seq[Holiday]] = getAllHolidays(2024)\n\nfor state, holidays in response:\n    echo \u0026\"Holidays for state {state}:\"\n    for i, holiday in holidays:\n        echo \u0026\"{i}: {holiday.name}\"\n```\n\nSee `./src/holidapi/types.nim` for documentation on the `Holiday` type.\n\n== Contributions\n\nContributions are always welcome, especially expanding the list of supported countries/regions!\n\n== Licence\n\nThis project is distributed under the `GPL-3.0` licence.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnirokay%2Fholidapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnirokay%2Fholidapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnirokay%2Fholidapi/lists"}