Go to file
2019-03-12 22:31:43 +08:00
tests Setup test coverage 2019-03-12 22:31:43 +08:00
.coveragerc Setup test coverage 2019-03-12 22:31:43 +08:00
.gitignore Update .gitignore 2019-03-08 00:19:43 +08:00
.travis.yml Setup test coverage 2019-03-12 22:31:43 +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 data [skip ci] 2019-03-09 00:41:22 +08:00
2020.json Update holiday data [skip ci] 2019-03-09 12:08:49 +00:00
fetch_holidays.py Fix broken test 2019-03-10 00:59:53 +08:00
LICENSE Initial commit 2019-03-05 10:56:09 +08:00
pytest.ini Setup test coverage 2019-03-12 22:31:43 +08:00
README.md Setup test coverage 2019-03-12 22:31:43 +08:00
requirements.txt Setup test coverage 2019-03-12 22:31:43 +08: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 打包下载

数据格式:

{
    year: Int, 年份
    papers: [String], 所用国务院文件网址列表
    days: [
        {
            name: String, 节日名称
            date: String, ISO 8601 日期
            isOffDay: Boolean, 是否为休息日
        }
    ]
}

通过互联网使用

数据地址格式:

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

作为 git 子模块使用

参见 Git 工具 - 子模块