Go to file
2020-11-27 20:51:58 +08:00
.github/workflows ci: setup git user 2020-11-26 23:11:26 +08:00
tests fix: missing 2020-01-31 2020-09-07 22:33:33 +08:00
.coveragerc Correct coveragerc 2019-03-12 23:07:53 +08:00
.gitignore Update .gitignore 2019-03-08 00:19:43 +08:00
2007.json feat: add json schema 2019-09-11 22:42:42 +08:00
2008.json feat: add json schema 2019-09-11 22:42:42 +08:00
2009.json feat: add json schema 2019-09-11 22:42:42 +08:00
2010.json feat: add json schema 2019-09-11 22:42:42 +08:00
2011.json feat: add json schema 2019-09-11 22:42:42 +08:00
2012.json feat: add json schema 2019-09-11 22:42:42 +08:00
2013.json feat: add json schema 2019-09-11 22:42:42 +08:00
2014.json feat: add json schema 2019-09-11 22:42:42 +08:00
2015.json feat: add json schema 2019-09-11 22:42:42 +08:00
2016.json feat: add json schema 2019-09-11 22:42:42 +08:00
2017.json feat: add json schema 2019-09-11 22:42:42 +08:00
2018.json feat: add json schema 2019-09-11 22:42:42 +08:00
2019.json Update holiday data [skip ci] 2019-09-18 18:41:04 +00:00
2020.json Update holiday data [skip ci] 2020-09-07 14:35:29 +00:00
2021.json Update holiday data [skip ci] 2019-12-31 19:30:50 +00:00
dev-requirements.txt chore(deps): update dependency pytest to v6.1.2 2020-10-28 18:20:45 +00:00
fetch_holidays.py fix: missing 2020-01-31 2020-09-07 22:33:33 +08:00
LICENSE Initial commit 2019-03-05 10:56:09 +08:00
README.md ci: disable travis build 2020-11-21 16:27:34 +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.53.0 2020-11-24 15:26:51 +00:00
schema.json chore: update json schema 2019-09-11 23:00:55 +08:00
update.py ci: should push before release 2020-11-27 20:51:58 +08:00

holiday-cn

Build Status Release CalVer Maintainability Test Coverage Maintenance

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

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

数据格式:

JSON Schema

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 工具 - 子模块