Skip to main content

Commandline tool for XML transit data validation.

Project description

PyPI version Build Status Dependencies Status codecov

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

No Errors

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.

Errors

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

transidate-0.3.0.tar.gz (6.5 kB view hashes)

Uploaded Source

Built Distribution

transidate-0.3.0-py3-none-any.whl (7.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page