`election_results_xml_validator` is a script that checks if a NIST 1500-100
data feed follows best practices. It will output errors, warnings, and info
messages for common issues.
This is not an official Google product.
# INSTALLATION
The package is available from PyPi and can be installed using the command
below.
```pip install election_results_xml_validator```
election_results_xml_validator relies on lxml which will be installed if it
isn't already installed. You may need to install libxslt development libraries
in order to build lxml.
# USAGE
## List rules
You can list the validation rules that the script contains and the description
of each rule by running the following command
```
election_results_xml_validator list
```
## Validate a file
The validate command has 2 required arguments:
* the election file to be validated
* the XSD file to validate against
The command to validate the election file against all the rules in the file is
```
election_results_xml_validator validate election_file.xml --xsd election_data_spec.xsd
```
The validator is capable of validating either election or officeholder data
feeds, depending on the value of the `--rule_set` flag (`election` is the
default). To validate an officeholder feed:
```
election_results_xml_validator validate election_file.xml --xsd election_data_spec.xsd --rule_set officeholder
```
One can choose to only validate one or more comma separated rules by using the `-i` flag
```
election_results_xml_validator validate election_file.xml --xsd election_data_spec.xsd -i Schema
```
Or choose to exclude one or more comma separated rules using the `-e` flag
```
election_results_xml_validator validate election_file.xml --xsd election_data_spec.xsd -e Schema
```
By default, the script only shows a summary of issues found. You can get a
verbose report by adding the `-v` flag
```
election_results_xml_validator validate election_file.xml --xsd election_data_spec.xsd -v
```
PyPI 官网下载 | election_results_xml_validator-0.10.1.2.tar.gz
版权申诉
5 浏览量
2022-01-11
03:11:10
上传
评论
收藏 31KB GZ 举报
挣扎的蓝藻
- 粉丝: 12w+
- 资源: 15万+
最新资源
- Edge浏览器下载文件提示 “无法安全下载” 的解决方法
- 基于springboot+layui的医院日常耗材管理系统.zip
- 计算机毕业设计-ASP.NET教育报表管理系统-权限管理模块(源代码+)-毕设源码实例.zip
- 计算机毕业设计-ASP.NET教务信息管理系统的设计与实现(源代码+)-毕设源码实例.zip
- 免费计算机毕业设计-线上公司求职招聘系统的设计与实现(包含论文+源码)
- Eleven的精益供应链管理-碓胤咨询龚胤全.rar
- 5套光伏、储能、充电收益测算表.zip
- C2 供应链集成演示平台操作手册(详细版).rar
- 3套光储充一体化站CAD+PDF图纸.zip
- c++游戏开发,本人开发的c++小游戏飞机大战(二)源码
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈