Skip to content

Commit 086c5b5

Browse files
committed
update
1 parent cfcdc77 commit 086c5b5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+10790
-346
lines changed

Changelog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,10 @@
1111
+ 根据`schema字段`校验配置
1212
+ 根据`schema字段`构造命令行参数
1313
+ 使用装饰器`as_main`注册获取到配置后执行的函数
14+
15+
# 0.0.1
16+
17+
## 新增功能
18+
19+
+ 实现了如下基本功能
20+
+ `default_config_file_paths字段`可以读取yaml格式的配置文件

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
+ 根据子类的名字小写构造命令
1616
+ 根据子类的docstring,`epilog字段``description字段`自动构造,命令行说明.
1717
+ 根据子类的`schema字段``env_prefix字段`自动构造环境变量的读取规则.
18-
+ 根据子类的`default_config_file_paths字段`自动按顺序读取json格式配置文件中的参数.
18+
+ 根据子类的`default_config_file_paths字段`自动按顺序读取json,yaml格式配置文件中的参数.
1919
+ 根据`schema字段`构造命令行参数和配置校验
2020
+ 使用装饰器`@as_main`注册获取到配置后执行的函数
2121
+ 通过覆写`parse_commandline_args`方法来定义命令行参数的读取

dev-requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
jsonschema>=3.2.0
2+
pyyaml>=5.3.1

docs/.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: fc93af9a51d1131ccd94ada7ccd561c1
3+
config: 9233be13f3897f92922014fc9260ffcf
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

docs/.doctrees/Changelog.doctree

1.62 KB
Binary file not shown.

docs/.doctrees/README.doctree

28 Bytes
Binary file not shown.

docs/.doctrees/environment.pickle

674 Bytes
Binary file not shown.

docs/.doctrees/index.doctree

-3 Bytes
Binary file not shown.

docs/.doctrees/modules.doctree

13 Bytes
Binary file not shown.
13 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)