打开数据架构目录操作库
opendataschema的Python项目详细描述
打开数据模式python客户端
安装
pip install opendataschema
用法
注意:可以将schema.json
文件指定为文件路径或url。
opendataschema schema.json list opendataschema schema.json show opendataschema schema.json show --name <schema_name> opendataschema schema.json show --versions
配置
环境变量:
CATALOG_SCHEMA
:自定义json模式的url或文件路径,以用于验证目录json文件
Github API速率限制
由于github api的rate limiting strategy,您可能会遇到一个github.GithubException.RateLimitExceededException
。要避免这种情况,请在tokens settings page中生成私有访问令牌,并设置GITHUB_ACCESS_TOKEN
环境变量。