Commandline tool for XML transit data validation.
Project description
Transidate
Transidate is a commandline tool for validating transit data files such as TransXChange NeTEx and SIRI.
Transidate can validate several transit data formats out of the box.
Compatibility
Transidate requires Python 3.7 or later.
Installing
Install transidate using pip
or any other PyPi package manager.
pip install transidate
Using Transidate
Transidate comes with a help guide to get you started. This will list all the options as well as the transit data formats that are supported.
transidate --help
To validate a data source just specify the path to the data and the schema to validate
the data against. If the --version
is not specified the data is automatically
validated again TransXChange v2.4.
transidate circular.xml --version TXC2.4
If transidate finds any schema violations it will print the details of the violation such as the file it occurred in, the line number of the violation and details.
You can also use transidate to validate a archived collection of files.
transidate all_uk_txc_2_4.zip --version TXC2.4
This is iterate over each XML file contained within the zip and collate all the violations.
Transidate also allows you to export any violations to CSV using the --csv
flag.
transidate all_uk_txc_2_4.zip --version TXC2.4 --csv
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for transidate-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c7ed9f932fafaa6e07866d8e4730ca5b95e1063552786064e750481e6f9e053 |
|
MD5 | 860150789ce9505c54582b86a7fb106c |
|
BLAKE2b-256 | 32c7594b5ef9a750e73e1bb275ed0e94e56ba41bc73bc5ec8c396c5a328e16f4 |