mirror of
https://kkgithub.com/chinese-poetry/chinese-poetry.git
synced 2026-04-15 19:33:38 +00:00
@@ -1,7 +1,6 @@
|
|||||||
language: python
|
language: python
|
||||||
python:
|
python:
|
||||||
- "2.7"
|
- "3.7"
|
||||||
- "3.6"
|
|
||||||
install:
|
install:
|
||||||
- pip install flake8 -r requirements.txt
|
- pip install flake8 -r requirements.txt
|
||||||
before_script: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
before_script: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||||
|
|||||||
@@ -4,10 +4,14 @@
|
|||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
<p align="center">阿里招p6/p7 <a href="https://thoughts.teambition.com/share/5e3d0aab1efaee001b8bbe9e#title=nodejs_%E9%AB%98%E7%BA%A7%E5%BC%80%E5%8F%91%E5%B7%A5%E7%A8%8B%E5%B8%88/%E6%8A%80%E6%9C%AF%E4%B8%93%E5%AE%B6">nodejs</a> / <a href="https://thoughts.teambition.com/share/5e3d0ab7808fb7001a0f0bd0#title=golang%E9%AB%98%E7%BA%A7%E5%BC%80%E5%8F%91%E5%B7%A5%E7%A8%8B%E5%B8%88/%E6%8A%80%E6%9C%AF%E4%B8%93%E5%AE%B6">golang</a> / <a href="https://thoughts.teambition.com/share/5e3d5e101efaee001b8bbea1#title=java_高级开发工程师/技术专家
|
||||||
|
">java</a> / <a href="https://thoughts.teambition.com/share/5e3d5d071efaee001b8bbea0#title=前端高级工程师/前端技术专家">前端</a>,支持远程面试 | gaojunqi@outlook.com </p>
|
||||||
|
|
||||||
<h2 align="center">chinese-poetry: 最全中文诗歌古典文集数据库</h2>
|
<h2 align="center">chinese-poetry: 最全中文诗歌古典文集数据库</h2>
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<a href="https://travis-ci.org/chinese-poetry/chinese-poetry" rel="nofollow">
|
<a href="https://travis-ci.com/chinese-poetry/chinese-poetry" rel="nofollow">
|
||||||
<img height="28px" alt="Build Status" src="https://img.shields.io/travis/chinese-poetry/chinese-poetry?style=for-the-badge" style="max-width:100%;">
|
<img height="28px" alt="Build Status" src="https://img.shields.io/travis/chinese-poetry/chinese-poetry?style=for-the-badge" style="max-width:100%;">
|
||||||
</a>
|
</a>
|
||||||
<a href="https://github.com/chinese-poetry/chinese-poetry/blob/master/LICENSE">
|
<a href="https://github.com/chinese-poetry/chinese-poetry/blob/master/LICENSE">
|
||||||
@@ -24,6 +28,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
||||||
最全的中华古典文集数据库,包含 5.5 万首唐诗、26 万首宋诗、2.1 万首宋词和其他古典文集。诗人包括唐宋两朝近 1.4 万古诗人,和两宋时期 1.5 千古词人。数据来源于互联网。
|
最全的中华古典文集数据库,包含 5.5 万首唐诗、26 万首宋诗、2.1 万首宋词和其他古典文集。诗人包括唐宋两朝近 1.4 万古诗人,和两宋时期 1.5 千古词人。数据来源于互联网。
|
||||||
|
|
||||||
**为什么要做这个仓库?** 古诗是中华民族乃至全世界的瑰宝,我们应该传承下去,虽然有古典文集,但大多数人并没有拥有这些书籍。从某种意义上来说,这些庞大的文集离我们是有一定距离的。而电子版方便拷贝,所以此开源数据库诞生了。此数据库通过 JSON 格式分发,可以让你很方便的开始你的项目。
|
**为什么要做这个仓库?** 古诗是中华民族乃至全世界的瑰宝,我们应该传承下去,虽然有古典文集,但大多数人并没有拥有这些书籍。从某种意义上来说,这些庞大的文集离我们是有一定距离的。而电子版方便拷贝,所以此开源数据库诞生了。此数据库通过 JSON 格式分发,可以让你很方便的开始你的项目。
|
||||||
@@ -98,7 +103,7 @@
|
|||||||
|
|
||||||
### 赞助者
|
### 赞助者
|
||||||
|
|
||||||
**xber1986**
|
[上海逆行信息科技](http://www.desmix.com/)
|
||||||
|
|
||||||
### 贡献者
|
### 贡献者
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -1717,7 +1717,7 @@
|
|||||||
"穿花蛺蝶深深見,點水蜻蜓款款飛。",
|
"穿花蛺蝶深深見,點水蜻蜓款款飛。",
|
||||||
"傳與風光共流轉,暫時相賞莫相違。"
|
"傳與風光共流轉,暫時相賞莫相違。"
|
||||||
]
|
]
|
||||||
},
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
pytest==3.1.0
|
pytest==5.3.2
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
## 说明
|
## 说明
|
||||||
|
|
||||||
繁体中文分发, 各个子目录均为章节.
|
繁体中文分发, 各个子文件均为不同章节.
|
||||||
|
|
||||||
## 数据格式
|
## 数据格式
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
#! -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# import sqlite3
|
|
||||||
import os
|
import os
|
||||||
import json
|
import json
|
||||||
import sys
|
import sys
|
||||||
@@ -15,10 +14,11 @@ def check_json(f, _dir):
|
|||||||
with open(filepath) as file:
|
with open(filepath) as file:
|
||||||
try:
|
try:
|
||||||
_ = json.loads(file.read())
|
_ = json.loads(file.read())
|
||||||
|
sys.stdout.write(f"{filepath} 校验成功")
|
||||||
return True
|
return True
|
||||||
except:
|
except:
|
||||||
sys.stderr.write(traceback.format_exc())
|
sys.stderr.write(traceback.format_exc())
|
||||||
assert False, u"校验(%s)失败" % f
|
assert False, f"{filepath} 校验失败"
|
||||||
|
|
||||||
|
|
||||||
def __check_path__(path):
|
def __check_path__(path):
|
||||||
@@ -41,3 +41,8 @@ test_nantang2 = functools.partial(__check_path__, u'./wudai/nantang/')
|
|||||||
test_youmengying = functools.partial(__check_path__, u'./youmengying/')
|
test_youmengying = functools.partial(__check_path__, u'./youmengying/')
|
||||||
|
|
||||||
test_sishuwujing = functools.partial(__check_path__, u'./sishuwujing/')
|
test_sishuwujing = functools.partial(__check_path__, u'./sishuwujing/')
|
||||||
|
|
||||||
|
test_yuanqu = functools.partial(__check_path__, u'./yuanqu/')
|
||||||
|
|
||||||
|
test_mengxue = functools.partial(__check_path__, u'./mengxue')
|
||||||
|
|
||||||
|
|||||||
22113
yuanqu/yuanqu.json
22113
yuanqu/yuanqu.json
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user