Go to file
NateScarlet a9eb75f1f7
docs: update README.md
[skip ci]
2019-07-17 00:15:25 +08:00
tests refactor: correct test name 2019-07-16 23:21:56 +08:00
.coveragerc Correct coveragerc 2019-03-12 23:07:53 +08:00
.gitignore Update .gitignore 2019-03-08 00:19:43 +08:00
.travis.yml Split out dev-requiremens.txt 2019-03-13 00:05:07 +08:00
2007.json Fix missiong days in 2007, 2011 2019-03-09 19:35:24 +08:00
2008.json Setup update script and add past data 2019-03-09 00:40:13 +08:00
2009.json Setup update script and add past data 2019-03-09 00:40:13 +08:00
2010.json Setup update script and add past data 2019-03-09 00:40:13 +08:00
2011.json Fix missiong days in 2007, 2011 2019-03-09 19:35:24 +08:00
2012.json Setup update script and add past data 2019-03-09 00:40:13 +08:00
2013.json Setup update script and add past data 2019-03-09 00:40:13 +08:00
2014.json Setup update script and add past data 2019-03-09 00:40:13 +08:00
2015.json Setup update script and add past data 2019-03-09 00:40:13 +08:00
2016.json Refactor code 2019-03-09 12:27:41 +08:00
2017.json Setup update script and add past data 2019-03-09 00:40:13 +08:00
2018.json Setup update script and add past data 2019-03-09 00:40:13 +08:00
2019.json Update holiday data [skip ci] 2019-07-16 15:11:26 +00:00
2020.json Update holiday data [skip ci] 2019-03-09 12:08:49 +00:00
dev-requirements.txt chore(deps): update dependency pytest to v5 2019-07-06 18:07:59 +08:00
fetch_holidays.py refactor: reduce complexity 2019-07-16 23:55:03 +08:00
LICENSE Initial commit 2019-03-05 10:56:09 +08:00
README.md docs: update README.md 2019-07-17 00:15:25 +08:00
renovate.json chore: modify renovate.json 2019-04-28 20:49:31 +08:00
requirements.txt chore(deps): update dependency tqdm to v4.32.2 2019-06-18 21:34:43 +00:00
update.py Add newline printing after progress bar finished 2019-03-09 20:45:56 +08:00

holiday-cn

Build Status Release CalVer Maintainability Test Coverage Maintenance

中国法定节假日数据 自动每日抓取国务院公告

  • 提供 JSON 格式节假日数据
  • CI 自动更新
  • 数据变化时时自动发布新版本 ( Watch - Release only 以获取邮件提醒! )
  • 发布页面提供 JSON 打包下载

数据格式:

interface Holidays {
  /** 完整年份, 整数。*/
  year: number;
  /** 所用国务院文件网址列表 */
  papers: string[];
  days: {
    /** 节日名称 */
    name: string;
    /** 日期, ISO 8601 格式 */
    date: string;
    /** 是否为休息日 */
    isOffDay: boolean;
  }[]
}

通过互联网使用

数据地址格式:

https://raw.githubusercontent.com/NateScarlet/holiday-cn/master/{年份}.json  

作为 git 子模块使用

参见 Git 工具 - 子模块