GTFS Aggregator Checker
This repo is to verify that a given list of feeds is listed in feed aggregators. Currently it checks transit.land and transitfeeds.com to verify that feeds are listed in an aggregator.
Installation
pip install gtfs-aggregator-checker
Configure
The following env variables can be set in a .env file, set to the environment,
or inline like TRANSITLAND_API_KEY=SECRET python -m gtfs_aggregator_checker.
-
TRANSITLAND_API_KEYAn api key from transitland. -
GTFS_CACHE_DIRFolder to save cached files to. Defaults to~/.cache/gtfs-aggregator-checker
Getting Started
CLI Usage
python -m gtfs_aggregator_checker [YAML_FILE] [OPTIONS]
python -m gtfs_aggregator_checker or python -m gtfs_aggregator_checker /path/to/yml will search a Cal-ITP agencies.yml file for any urls and see
if they are present in any of the feed aggregators. Alternatively you can use a
--csv-file or --url instead of an agencies.yml file.
The final line of stdout will tell how many urls were in agencies.yml and how
many of those were matched in a feed.
Options
python -m gtfs_aggregator_checker --helpprint the help--csv-file agencies.csvload a csv instead of a Cal-ITP agencies yaml file (one url per line)--url http://example.comCheck a single url instead of a Cal-ITP agencies yaml file--output /path/to/file.jsonSave the results as a json file
Development
Clone this repo and pip install -e /pat/to/feed-checker to develop locally.
By default, downloaded files (raw html files, api requsets) will be saved to
~/.cache/calitp_gtfs_aggregator_checker. This greatly reduces the time
required to run the script. Delete this folder to reset the cache.
Metadata
Release files for gtfs-aggregator-checker 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| gtfs_aggregator_checker-1.0.0.tar.gz | 4.8 kB | Without provenance | Details |
Release files / gtfs_aggregator_checker-1.0.0.tar.gz
| Download URL | gtfs_aggregator_checker-1.0.0.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ecb2af6b39d58b5a11f1a608e3e3b4d583c4e5a28c5b8208047466955925d654
|
|
BLAKE2b-256 checksum How to use checksums |
2adb3d5ec707d05d172eb2321c99eac8e17b4b113b0ceb2f82f56f0269881d51
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
|
Security for gtfs-aggregator-checker 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.