{"id":13501892,"url":"https://github.com/workalendar/workalendar","last_synced_at":"2025-12-12T00:53:02.560Z","repository":{"id":11984105,"uuid":"14559169","full_name":"workalendar/workalendar","owner":"workalendar","description":"Worldwide holidays and workdays computational toolkit.","archived":false,"fork":false,"pushed_at":"2024-04-12T14:28:23.000Z","size":2064,"stargazers_count":935,"open_issues_count":117,"forks_count":234,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-07-03T08:54:08.934Z","etag":null,"topics":["calendar","calendars","localization","peopledoc-opensource","python"],"latest_commit_sha":null,"homepage":"https://workalendar.github.io/workalendar/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/workalendar.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog.md","contributing":"docs/contributing.md","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":"2013-11-20T14:46:02.000Z","updated_at":"2025-06-26T13:20:40.000Z","dependencies_parsed_at":"2024-06-18T12:42:34.673Z","dependency_job_id":null,"html_url":"https://github.com/workalendar/workalendar","commit_stats":{"total_commits":1049,"total_committers":112,"mean_commits":9.366071428571429,"dds":0.6939942802669209,"last_synced_commit":"b131f2b64377e951654652a9a32e72a34f34e88f"},"previous_names":["peopledoc/workalendar"],"tags_count":93,"template":false,"template_full_name":null,"purl":"pkg:github/workalendar/workalendar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workalendar%2Fworkalendar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workalendar%2Fworkalendar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workalendar%2Fworkalendar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workalendar%2Fworkalendar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/workalendar","download_url":"https://codeload.github.com/workalendar/workalendar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workalendar%2Fworkalendar/sbom","scorecard":{"id":727406,"data":{"date":"2025-07-28","repo":{"name":"github.com/workalendar/workalendar","commit":"b131f2b64377e951654652a9a32e72a34f34e88f"},"scorecard":{"version":"v5.2.1-26-g4feedb85","commit":"4feedb857ab8d82158aa9774bf8054df41992180"},"score":4,"checks":[{"name":"Code-Review","score":3,"reason":"Found 3/9 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/4feedb857ab8d82158aa9774bf8054df41992180/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/4feedb857ab8d82158aa9774bf8054df41992180/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/4feedb857ab8d82158aa9774bf8054df41992180/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/4feedb857ab8d82158aa9774bf8054df41992180/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/4feedb857ab8d82158aa9774bf8054df41992180/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/4feedb857ab8d82158aa9774bf8054df41992180/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/workalendar/workalendar/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/workalendar/workalendar/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:61: update your workflow using https://app.stepsecurity.io/secureworkflow/workalendar/workalendar/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:63: update your workflow using https://app.stepsecurity.io/secureworkflow/workalendar/workalendar/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:67: update your workflow using https://app.stepsecurity.io/secureworkflow/workalendar/workalendar/ci.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:35","Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:76","Info:   0 out of   5 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/4feedb857ab8d82158aa9774bf8054df41992180/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/4feedb857ab8d82158aa9774bf8054df41992180/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/4feedb857ab8d82158aa9774bf8054df41992180/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/4feedb857ab8d82158aa9774bf8054df41992180/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/4feedb857ab8d82158aa9774bf8054df41992180/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/4feedb857ab8d82158aa9774bf8054df41992180/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/4feedb857ab8d82158aa9774bf8054df41992180/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2017-74"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/4feedb857ab8d82158aa9774bf8054df41992180/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/4feedb857ab8d82158aa9774bf8054df41992180/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T13:15:57.246Z","repository_id":11984105,"created_at":"2025-08-22T13:15:57.246Z","updated_at":"2025-08-22T13:15:57.246Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280325344,"owners_count":26311428,"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","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["calendar","calendars","localization","peopledoc-opensource","python"],"created_at":"2024-07-31T22:01:54.527Z","updated_at":"2025-10-21T20:09:01.182Z","avatar_url":"https://github.com/workalendar.png","language":"Python","readme":"# Workalendar\n\n[![license](http://img.shields.io/pypi/l/workalendar.svg)](https://github.com/workalendar/workalendar/blob/master/LICENSE)\n[![pypi](http://img.shields.io/pypi/v/workalendar.svg)](https://pypi.python.org/pypi/workalendar)\n[![conda](https://img.shields.io/conda/v/conda-forge/workalendar?color=blue\u0026logo=anaconda)](https://anaconda.org/conda-forge/workalendar)\n\n## Overview\n\nWorkalendar is a Python module that offers classes able to handle calendars, list legal / religious holidays and gives working-day-related computation functions.\n\n## Installation\n\n**With pip**\n\n```sh\npip install workalendar\n```\n\n**With conda**\n\n```sh\nconda install -c conda-forge workalendar\n```\n\n### Extra dependencies\n\n**Note: NEW in v16.0.0**\n\nIf the calendar(s) you want to work with requires astronomical computations (such as Asian calendars needing equinoxes or solar terms), Workalendar will provide pre-computed values within the year range from 1991 to 2051.\n\nHowever, if you want to use astronomical libraries to compute the calendar yourself, you'll need to install the `[astronomy]` extra dependency like this:\n\n```sh\npip install workalendar[astronomy]\n```\n\nIf you had previously installed the `skyfield` and `skyfield-data` packages, they'll be used to compute the calendars. If you want to benefit from the \"astronomical cache\", and eventually benefit from performance gains, you'll have to **uninstall** those packages first to fallback to pre-computed files.\n\n## Status\n\nThis library is ready for production, although we may warn eventual users: some calendars may not be up-to-date, and this library doesn't cover all the existing countries on earth (yet).\n\nIf you spot any bug or wish to add a calendar, please refer to the [Contributing doc](docs/contributing.md).\n\n## Usage sample\n\n```python\n\u003e\u003e\u003e from datetime import date\n\u003e\u003e\u003e from workalendar.europe import France\n\u003e\u003e\u003e cal = France()\n\u003e\u003e\u003e cal.holidays(2012)\n[(datetime.date(2012, 1, 1), 'New year'),\n (datetime.date(2012, 4, 9), 'Easter Monday'),\n (datetime.date(2012, 5, 1), 'Labour Day'),\n (datetime.date(2012, 5, 8), 'Victory in Europe Day'),\n (datetime.date(2012, 5, 17), 'Ascension Day'),\n (datetime.date(2012, 5, 28), 'Whit Monday'),\n (datetime.date(2012, 7, 14), 'Bastille Day'),\n (datetime.date(2012, 8, 15), 'Assumption of Mary to Heaven'),\n (datetime.date(2012, 11, 1), \"All Saints' Day\"),\n (datetime.date(2012, 11, 11), 'Armistice Day'),\n (datetime.date(2012, 12, 25), 'Christmas')]\n\u003e\u003e\u003e cal.is_working_day(date(2012, 12, 25))  # it's Christmas\nFalse\n\u003e\u003e\u003e cal.is_working_day(date(2012, 12, 30))  # it's Sunday\nFalse\n\u003e\u003e\u003e cal.is_working_day(date(2012, 12, 26))\nTrue\n\u003e\u003e\u003e cal.add_working_days(date(2012, 12, 23), 5)  # 5 working days after Xmas\ndatetime.date(2012, 12, 31)\n```\n\nFor a more complete documentation and advanced usage, go to [the official workalendar documentation](https://workalendar.github.io/workalendar).\n\n## External dependencies\n\n**Workalendar will require you to use Python 3.7+.**\n\nWorkalendar is tested on Python 3.7, 3.8, 3.9, 3.10, 3.11, and on Linux (Ubuntu), Mac OS and Windows using Github actions.\n\n### Conditional dependencies\n\nAs of v15.0.0:\n\n* If you're using \\*Nix and Python 3.7, 3.8, the package `backports.zoneinfo` is required\n* If you're using Windows and Python 3.7, 3.8, the package `tzdata` is *also* a requirement (with the `backports.zoneinfo`).\n* If you're using Python 3.9+, the stdlib `zoneinfo` package will be used.\n\n## Tests\n\nCI status:\n\n[![Github action status](https://github.com/workalendar/workalendar/workflows/CI/badge.svg)](https://github.com/workalendar/workalendar/actions?query=workflow%3ACI)\n\nTo run test, just install tox with `pip install tox` and run:\n\n```\ntox\n```\n\nfrom the command line.\n\n## Available Calendars\n\n### Europe\n\n- Austria\n- Belarus\n- Belgium\n- Bulgaria\n- Cayman Islands\n- Croatia\n- Cyprus\n- Czech Republic\n- Denmark\n- Estonia\n- European Central Bank\n- Finland\n- France\n- France (Alsace / Moselle)\n- Georgia\n- Germany\n- Greece\n- Guernsey\n- Hungary\n- Iceland\n- Ireland\n- Italy\n- Latvia\n- Lithuania\n- Luxembourg\n- Malta\n- Monaco\n- Netherlands (optionally with school holidays and carnival)\n- Norway\n- Poland\n- Portugal\n- Romania\n- Russia\n- Serbia\n- Slovakia\n- Slovenia\n- Spain (Andalusia, Aragon, Castile and León, Castilla-La Mancha, Canary Islands, Extremadura, Galicia, Balearic Islands, La Rioja, Community of Madrid, Murcia, Navarre, Asturias, Basque Country, Cantabria, Valencian Community)\n- Sweden\n- Switzerland (Aargau, Appenzell Innerrhoden, Appenzell Ausserrhoden, Bern, Basel-Landschaft, Basel-Stadt, Fribourg, Geneva, Glarus, Graubünden, Jura, Luzern, Neuchâtel, Nidwalden, Obwalden, St. Gallen, Schaffhausen, Solothurn, Schwyz, Thurgau, Ticino, Uri, Vaud, Valais, Zug, Zurich)\n- Turkey\n- Ukraine\n- United Kingdom (incl. Northern Ireland, Scotland and all its territories)\n\n### America\n\n- Argentina\n- Barbados\n- Brazil (all states, cities and for bank transactions, except the city of Viana)\n- Canada (including provincial and territory holidays)\n- Chile\n- Colombia\n- El Salvador\n- Mexico\n- Panama\n- Paraguay\n- United States of America\n  - State holidays for all the 50 States\n  - American Samoa\n  - Chicago, Illinois\n  - Guam\n  - Suffolk County, Massachusetts\n  - California Education, Berkeley, San Francisco, West Hollywood\n  - Florida Legal and Florida Circuit Courts, Miami-Dade\n  - Federal Reserve System\n\n### Asia\n\n- China\n- Hong Kong\n- Israel\n- Japan\n- JapanBank\n- Kazakhstan\n- Malaysia\n- Philippines\n- Qatar\n- Singapore\n- South Korea\n- Taiwan\n\n### Oceania\n\n- Australia (incl. its different states)\n- Marshall Islands\n- New Zealand\n\n### Africa\n\n- Algeria\n- Angola\n- Benin\n- Ivory Coast\n- Kenya\n- Madagascar\n- Mozambique\n- Nigeria\n- São Tomé\n- South Africa\n- Tunisia\n\nAnd more to come (I hope!)\n\n## Caveats\n\nPlease take note that some calendars are not 100% accurate. The most common example is the Islamic calendar, where some computed holidays are not exactly on the same official day decided by religious authorities, and this may vary country by country. Whenever it's possible, try to adjust your results with the official data provided by the adequate authorities.\n\nSome countries have some holidays based on ephemerids and equinoxes. Those are computed for the previous and next 30 years to prevent big computations and dependencies.\n\n## Contributing\n\nPlease read our [contributing.md](https://github.com/workalendar/workalendar/blob/master/docs/contributing.md) document to discover how you can contribute to `workalendar`. Pull-requests are very welcome.\n\n## History\n\nThis project was born in 2013, as an answer to the question \"how do we calculate *this date + 5 working days*?\". It was a use-case for [PeopleDoc](https://www.people-doc.fr/), in their ticketing application, for calculating SLAs. And it began as a small open-source library, for France and the USA at first.\n\nThanks to PeopleDoc, this project grew and eventually became a world-wide library, with the help of dozens of contributors.\n\nAs of June 2021, this project has moved to its own organization.\n\n## License\n\nThis library is published under the terms of the MIT License. Please check the LICENSE file for more details.\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkalendar%2Fworkalendar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fworkalendar%2Fworkalendar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkalendar%2Fworkalendar/lists"}