Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cal-itp/gtfs-validator-api
(DEPRECATED) Thin wrapper around MobilityData/gtfs-validator
https://github.com/cal-itp/gtfs-validator-api
Last synced: about 2 months ago
JSON representation
(DEPRECATED) Thin wrapper around MobilityData/gtfs-validator
- Host: GitHub
- URL: https://github.com/cal-itp/gtfs-validator-api
- Owner: cal-itp
- License: apache-2.0
- Created: 2021-03-23T21:56:52.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-16T14:49:32.000Z (11 months ago)
- Last Synced: 2024-01-11T21:53:33.887Z (6 months ago)
- Language: Python
- Homepage:
- Size: 141 KB
- Stars: 2
- Watchers: 12
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-transit - gtfs-validator-api - This Python package is a thin wrapper around [MobilityData/gtfs-validator](https://github.com/MobilityData/gtfs-validator) that handles intermediate files produced and finds gtfs-validator's output file so it can be given a specific name or returned as a string. (Uncategorized / Uncategorized)
- awesome-transit - gtfs-validator-api - This Python package is a thin wrapper around [MobilityData/gtfs-validator](https://github.com/MobilityData/gtfs-validator) that handles intermediate files produced and finds gtfs-validator's output file so it can be given a specific name or returned as a string. (Uncategorized / Uncategorized)
README
# DEPRECATED: this repo/image are replaced by https://github.com/cal-itp/data-infra/tree/main/jobs/gtfs-schedule-validator
# gtfs-validator-api
This python package is a thin wrapper around MobilityData/gtfs-validator.
It's has 2 jobs.1. Handle the intermediate files produced by gtfs-validator.
2. Find gtfs-validator's output file, so it can be given a specific name, or
returned as a string.## Example
Note that this package requires `GTFS_VALIDATOR_JAR` to be set to the `gtfs-validator`
CLI jar file. See their [releases page](https://github.com/MobilityData/gtfs-validator/releases).```python
from gtfs_validator_api import validate
validate("tests/sample.zip")
```## Development
```
docker-compose run gtfs-validator /bin/bash# then, run example script in container
gtfs-validator-api validate tests/sample.zip
gtfs-validator-api validate --help
gtfs-validator-api validate-gcs-bucket \
-v -r \
-o validation.json \
cal-itp-data-infra \
google_default \
gs://gtfs-data-test/schedule/2021-03-28T00:00:00+00:00```