从样本记录中获取jsonschema
getschema的Python项目详细描述
获取架构
从样本记录中获取jsonschema
命令行用法:
usage: getschema [-h] [--indent INDENT] [--type TYPE] [--skip SKIP] [--lower]
[--replace_special REPLACE_SPECIAL] [--snakecase]
data
positional arguments:
data json record file
optional arguments:
-h, --help show this help message and exit
--indent INDENT, -i INDENT
Number of spaces for indentation
--type TYPE, -t TYPE Record format (json, csv)
--skip SKIP, -s SKIP Skip first n records. Don't skip the header row.
--lower, -l Convert the keys to lower case'
--replace_special REPLACE_SPECIAL, -r REPLACE_SPECIAL
Replace special characters in the keys with the
specified string
--snakecase, -n Convert the keys to 'snake_case'
getschema file.json
模块功能: (参见执行py)在
- 推断模式
- 从json_文件推断
- 从\u csv_文件推断
- 固定类型
使用getschema的示例项目:
原始存储库
版权所有©2020 Anelen Co.,LLC
- 项目
标签: