gtfslint-cli 0.1.1__tar.gz → 0.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/CHANGELOG.md +8 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/CITATION.cff +5 -4
- {gtfslint_cli-0.1.1/src/gtfslint_cli.egg-info → gtfslint_cli-0.1.2}/PKG-INFO +68 -14
- gtfslint_cli-0.1.1/PKG-INFO → gtfslint_cli-0.1.2/README.md +53 -43
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/pyproject.toml +25 -17
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/src/gtfslint/__init__.py +1 -1
- gtfslint_cli-0.1.1/README.md → gtfslint_cli-0.1.2/src/gtfslint_cli.egg-info/PKG-INFO +98 -6
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/LICENSE +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/MANIFEST.in +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/benchmarks/synthetic_feed.py +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/setup.cfg +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/src/gtfslint/__main__.py +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/src/gtfslint/api.py +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/src/gtfslint/cli.py +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/src/gtfslint/config.py +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/src/gtfslint/fieldtypes.py +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/src/gtfslint/notices.py +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/src/gtfslint/py.typed +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/src/gtfslint/reader.py +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/src/gtfslint/report.py +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/src/gtfslint/spec.py +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/src/gtfslint/stats.py +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/src/gtfslint/validator.py +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/src/gtfslint_cli.egg-info/SOURCES.txt +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/src/gtfslint_cli.egg-info/dependency_links.txt +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/src/gtfslint_cli.egg-info/entry_points.txt +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/src/gtfslint_cli.egg-info/requires.txt +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/src/gtfslint_cli.egg-info/top_level.txt +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/tests/__init__.py +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/tests/conftest.py +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/tests/data/valid_feed/agency.txt +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/tests/data/valid_feed/calendar.txt +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/tests/data/valid_feed/calendar_dates.txt +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/tests/data/valid_feed/fare_attributes.txt +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/tests/data/valid_feed/fare_rules.txt +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/tests/data/valid_feed/feed_info.txt +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/tests/data/valid_feed/frequencies.txt +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/tests/data/valid_feed/routes.txt +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/tests/data/valid_feed/shapes.txt +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/tests/data/valid_feed/stop_times.txt +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/tests/data/valid_feed/stops.txt +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/tests/data/valid_feed/transfers.txt +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/tests/data/valid_feed/trips.txt +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/tests/test_reading.py +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/tests/test_report_cli.py +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/tests/test_rules.py +0 -0
- {gtfslint_cli-0.1.1 → gtfslint_cli-0.1.2}/tests/test_stats_and_config.py +0 -0
|
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.1.2] - 2026-11-15
|
|
8
|
+
### Changed
|
|
9
|
+
- Project home moved to GitLab (https://gitlab.com/geophilo1/gtfslint_sdk): package URLs,
|
|
10
|
+
pre-commit hook repository, citation metadata and CI (`.gitlab-ci.yml`); GitHub workflows
|
|
11
|
+
removed. The README adds a GitLab CI job example.
|
|
12
|
+
- PyPI metadata: sharper description, search keywords, extra classifiers and documentation,
|
|
13
|
+
dashboard and DOI links. README gains badges, absolute links and a related-packages section.
|
|
14
|
+
|
|
7
15
|
## [0.1.1] - 2026-11-09
|
|
8
16
|
### Changed
|
|
9
17
|
- Release archived on Zenodo, which mints the citable DOI; no code changes.
|
|
@@ -3,13 +3,14 @@ message: "If you use this software, please cite it as below."
|
|
|
3
3
|
authors:
|
|
4
4
|
- family-names: "Eminoğlu"
|
|
5
5
|
given-names: "Yusuf"
|
|
6
|
-
email: "
|
|
6
|
+
email: "geospacephilo@gmail.com"
|
|
7
7
|
orcid: "https://orcid.org/0009-0005-6000-2934"
|
|
8
8
|
title: "gtfslint"
|
|
9
|
-
version: "0.1.
|
|
10
|
-
date-released: "2026-11-
|
|
9
|
+
version: "0.1.2"
|
|
10
|
+
date-released: "2026-11-15"
|
|
11
|
+
doi: "10.5281/zenodo.24063363"
|
|
11
12
|
license: "MIT"
|
|
12
|
-
repository-code: "https://
|
|
13
|
+
repository-code: "https://gitlab.com/geophilo1/gtfslint_sdk"
|
|
13
14
|
url: "https://pypi.org/project/gtfslint-cli/"
|
|
14
15
|
abstract: "Fast, pure-Python GTFS Schedule validator and quality report for continuous integration."
|
|
15
16
|
keywords:
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: gtfslint-cli
|
|
3
|
-
Version: 0.1.
|
|
4
|
-
Summary:
|
|
5
|
-
Author-email: Yusuf Eminoğlu <
|
|
3
|
+
Version: 0.1.2
|
|
4
|
+
Summary: Pure-Python GTFS Schedule validator and feed quality report for CI and pre-commit: coded rules, headway and service-span metrics, JSON/Markdown/HTML/GitHub output.
|
|
5
|
+
Author-email: Yusuf Eminoğlu <geospacephilo@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
7
|
-
Project-URL: Homepage, https://
|
|
8
|
-
Project-URL: Repository, https://
|
|
9
|
-
Project-URL:
|
|
10
|
-
Project-URL:
|
|
11
|
-
|
|
7
|
+
Project-URL: Homepage, https://gitlab.com/geophilo1/gtfslint_sdk
|
|
8
|
+
Project-URL: Repository, https://gitlab.com/geophilo1/gtfslint_sdk
|
|
9
|
+
Project-URL: Documentation, https://gitlab.com/geophilo1/gtfslint_sdk#readme
|
|
10
|
+
Project-URL: Issues, https://gitlab.com/geophilo1/gtfslint_sdk/-/work_items
|
|
11
|
+
Project-URL: Changelog, https://gitlab.com/geophilo1/gtfslint_sdk/-/blob/main/CHANGELOG.md
|
|
12
|
+
Project-URL: SDK dashboard, https://geophilo.com/sdk-dashboard/
|
|
13
|
+
Project-URL: DOI, https://doi.org/10.5281/zenodo.24063363
|
|
14
|
+
Keywords: gtfs,gtfs schedule,gtfs validator,transit feed,public transport,timetable,linter,data quality,pre-commit,continuous integration,headway,transit data,mobility data,transport planning
|
|
12
15
|
Classifier: Development Status :: 4 - Beta
|
|
13
16
|
Classifier: Environment :: Console
|
|
14
17
|
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
15
19
|
Classifier: Programming Language :: Python :: 3.9
|
|
16
20
|
Classifier: Programming Language :: Python :: 3.10
|
|
17
21
|
Classifier: Programming Language :: Python :: 3.11
|
|
@@ -19,10 +23,12 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
19
23
|
Classifier: Programming Language :: Python :: 3.13
|
|
20
24
|
Classifier: Operating System :: OS Independent
|
|
21
25
|
Classifier: Topic :: Scientific/Engineering :: GIS
|
|
26
|
+
Classifier: Topic :: Scientific/Engineering :: Information Analysis
|
|
22
27
|
Classifier: Topic :: Software Development :: Quality Assurance
|
|
23
28
|
Classifier: Topic :: Software Development :: Testing
|
|
24
29
|
Classifier: Intended Audience :: Developers
|
|
25
30
|
Classifier: Intended Audience :: Science/Research
|
|
31
|
+
Classifier: Intended Audience :: Other Audience
|
|
26
32
|
Classifier: Typing :: Typed
|
|
27
33
|
Requires-Python: >=3.9
|
|
28
34
|
Description-Content-Type: text/markdown
|
|
@@ -36,11 +42,21 @@ Requires-Dist: ruff>=0.1.0; extra == "dev"
|
|
|
36
42
|
Requires-Dist: mypy>=1.0.0; extra == "dev"
|
|
37
43
|
Dynamic: license-file
|
|
38
44
|
|
|
45
|
+
<p align="center">
|
|
46
|
+
<a href="https://geophilo.com/sdk-dashboard/"><img src="https://geophilo.com/assets/sdk_icons/gtfslint_sdk.svg" width="120" height="120" alt="gtfslint-cli icon"></a>
|
|
47
|
+
</p>
|
|
48
|
+
|
|
39
49
|
# gtfslint
|
|
40
50
|
|
|
41
|
-
|
|
51
|
+
[](https://pypi.org/project/gtfslint-cli/)
|
|
52
|
+
[](https://pypi.org/project/gtfslint-cli/)
|
|
53
|
+
[](https://gitlab.com/geophilo1/gtfslint_sdk/-/pipelines)
|
|
54
|
+
[](https://gitlab.com/geophilo1/gtfslint_sdk/-/blob/main/LICENSE)
|
|
55
|
+
[](https://doi.org/10.5281/zenodo.24063363)
|
|
56
|
+
[](https://pepy.tech/project/gtfslint-cli)
|
|
42
57
|
|
|
43
|
-
`gtfslint`
|
|
58
|
+
`gtfslint` is a pure-Python GTFS Schedule validator and quality report for transit data
|
|
59
|
+
teams and CI pipelines. It checks a [GTFS Schedule](https://gtfs.org/documentation/schedule/reference/) feed
|
|
44
60
|
(a `.zip` archive or a folder) against the specification, reports every problem with a stable
|
|
45
61
|
rule code, a severity and the exact file/line/field, and computes quality metrics such as
|
|
46
62
|
service span, trips per day and headways. It is a `pip install` away, has no compiled
|
|
@@ -49,7 +65,7 @@ seconds.
|
|
|
49
65
|
|
|
50
66
|
The canonical [MobilityData GTFS Validator](https://github.com/MobilityData/gtfs-validator)
|
|
51
67
|
is a Java application. `gtfslint` does not replace it. It covers the checks that catch most
|
|
52
|
-
broken feeds and fits where a Python tool works better: pre-commit hooks, GitHub Actions,
|
|
68
|
+
broken feeds and fits where a Python tool works better: pre-commit hooks, GitLab CI or GitHub Actions,
|
|
53
69
|
data pipelines and notebooks. When a rule matches a MobilityData notice, the notice name is
|
|
54
70
|
listed next to it, so you can compare the two reports.
|
|
55
71
|
|
|
@@ -110,12 +126,26 @@ usage errors, invalid configuration or an unreadable feed.
|
|
|
110
126
|
When the feed is a folder, annotations point to the exact file and line. When it is a zip
|
|
111
127
|
archive, they are attached to the archive and the message gives the location inside it.
|
|
112
128
|
|
|
129
|
+
### GitLab CI
|
|
130
|
+
|
|
131
|
+
```yaml
|
|
132
|
+
gtfs:
|
|
133
|
+
image: python:3.13
|
|
134
|
+
script:
|
|
135
|
+
- pip install gtfslint-cli
|
|
136
|
+
- gtfslint check gtfs/ --html gtfs-report.html
|
|
137
|
+
artifacts:
|
|
138
|
+
when: always
|
|
139
|
+
paths:
|
|
140
|
+
- gtfs-report.html
|
|
141
|
+
```
|
|
142
|
+
|
|
113
143
|
### pre-commit
|
|
114
144
|
|
|
115
145
|
```yaml
|
|
116
146
|
repos:
|
|
117
|
-
- repo: https://
|
|
118
|
-
rev: v0.1.
|
|
147
|
+
- repo: https://gitlab.com/geophilo1/gtfslint_sdk
|
|
148
|
+
rev: v0.1.2
|
|
119
149
|
hooks:
|
|
120
150
|
- id: gtfslint
|
|
121
151
|
```
|
|
@@ -322,6 +352,30 @@ python benchmarks/synthetic_feed.py /tmp/gtfs-bench
|
|
|
322
352
|
The tests use a small synthetic feed, `tests/data/valid_feed`, which passes every rule.
|
|
323
353
|
`tests/test_rules.py` has one broken variant of it per rule.
|
|
324
354
|
|
|
355
|
+
## Related Geophilo SDKs
|
|
356
|
+
|
|
357
|
+
- [transitfreq](https://pypi.org/project/transitfreq/): transit service frequency and headway analysis from GTFS
|
|
358
|
+
- [todindex](https://pypi.org/project/todindex/): transit-oriented development assessment of station areas
|
|
359
|
+
- [routematrix](https://pypi.org/project/routematrix/): origin-destination travel time and distance matrices
|
|
360
|
+
- [bikelts](https://pypi.org/project/bikelts/): bicycle Level of Traffic Stress and low-stress connectivity
|
|
361
|
+
|
|
362
|
+
All packages: [Geophilo SDK dashboard](https://geophilo.com/sdk-dashboard/).
|
|
363
|
+
|
|
325
364
|
## License
|
|
326
365
|
|
|
327
|
-
MIT © Yusuf Eminoğlu. See [LICENSE](LICENSE).
|
|
366
|
+
MIT © Yusuf Eminoğlu. See [LICENSE](https://gitlab.com/geophilo1/gtfslint_sdk/-/blob/main/LICENSE).
|
|
367
|
+
|
|
368
|
+
## Academic citation
|
|
369
|
+
|
|
370
|
+
```bibtex
|
|
371
|
+
@software{eminoglu_gtfslint,
|
|
372
|
+
author = {Eminoğlu, Yusuf},
|
|
373
|
+
title = {gtfslint},
|
|
374
|
+
year = {2026},
|
|
375
|
+
version = {0.1.2},
|
|
376
|
+
doi = {10.5281/zenodo.24063363},
|
|
377
|
+
url = {https://doi.org/10.5281/zenodo.24063363}
|
|
378
|
+
}
|
|
379
|
+
```
|
|
380
|
+
|
|
381
|
+
See also `CITATION.cff`.
|
|
@@ -1,46 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
Summary: Fast, pure-Python GTFS Schedule validator and quality report for CI: coded rules, feed metrics, JSON/Markdown/HTML/GitHub output.
|
|
5
|
-
Author-email: Yusuf Eminoğlu <yusufeminoglu@gmail.com>
|
|
6
|
-
License-Expression: MIT
|
|
7
|
-
Project-URL: Homepage, https://github.com/YusufEminoglu/gtfslint_sdk
|
|
8
|
-
Project-URL: Repository, https://github.com/YusufEminoglu/gtfslint_sdk
|
|
9
|
-
Project-URL: Issues, https://github.com/YusufEminoglu/gtfslint_sdk/issues
|
|
10
|
-
Project-URL: Changelog, https://github.com/YusufEminoglu/gtfslint_sdk/blob/main/CHANGELOG.md
|
|
11
|
-
Keywords: gtfs,gtfs-schedule,transit,public-transport,validator,linter,data-quality,timetable,mobility,ci,github-actions,gis
|
|
12
|
-
Classifier: Development Status :: 4 - Beta
|
|
13
|
-
Classifier: Environment :: Console
|
|
14
|
-
Classifier: Programming Language :: Python :: 3
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
-
Classifier: Operating System :: OS Independent
|
|
21
|
-
Classifier: Topic :: Scientific/Engineering :: GIS
|
|
22
|
-
Classifier: Topic :: Software Development :: Quality Assurance
|
|
23
|
-
Classifier: Topic :: Software Development :: Testing
|
|
24
|
-
Classifier: Intended Audience :: Developers
|
|
25
|
-
Classifier: Intended Audience :: Science/Research
|
|
26
|
-
Classifier: Typing :: Typed
|
|
27
|
-
Requires-Python: >=3.9
|
|
28
|
-
Description-Content-Type: text/markdown
|
|
29
|
-
License-File: LICENSE
|
|
30
|
-
Requires-Dist: tomli>=1.1.0; python_version < "3.11"
|
|
31
|
-
Requires-Dist: tzdata; sys_platform == "win32"
|
|
32
|
-
Provides-Extra: dev
|
|
33
|
-
Requires-Dist: pytest>=7.0.0; extra == "dev"
|
|
34
|
-
Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
|
|
35
|
-
Requires-Dist: ruff>=0.1.0; extra == "dev"
|
|
36
|
-
Requires-Dist: mypy>=1.0.0; extra == "dev"
|
|
37
|
-
Dynamic: license-file
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://geophilo.com/sdk-dashboard/"><img src="https://geophilo.com/assets/sdk_icons/gtfslint_sdk.svg" width="120" height="120" alt="gtfslint-cli icon"></a>
|
|
3
|
+
</p>
|
|
38
4
|
|
|
39
5
|
# gtfslint
|
|
40
6
|
|
|
41
|
-
|
|
7
|
+
[](https://pypi.org/project/gtfslint-cli/)
|
|
8
|
+
[](https://pypi.org/project/gtfslint-cli/)
|
|
9
|
+
[](https://gitlab.com/geophilo1/gtfslint_sdk/-/pipelines)
|
|
10
|
+
[](https://gitlab.com/geophilo1/gtfslint_sdk/-/blob/main/LICENSE)
|
|
11
|
+
[](https://doi.org/10.5281/zenodo.24063363)
|
|
12
|
+
[](https://pepy.tech/project/gtfslint-cli)
|
|
42
13
|
|
|
43
|
-
`gtfslint`
|
|
14
|
+
`gtfslint` is a pure-Python GTFS Schedule validator and quality report for transit data
|
|
15
|
+
teams and CI pipelines. It checks a [GTFS Schedule](https://gtfs.org/documentation/schedule/reference/) feed
|
|
44
16
|
(a `.zip` archive or a folder) against the specification, reports every problem with a stable
|
|
45
17
|
rule code, a severity and the exact file/line/field, and computes quality metrics such as
|
|
46
18
|
service span, trips per day and headways. It is a `pip install` away, has no compiled
|
|
@@ -49,7 +21,7 @@ seconds.
|
|
|
49
21
|
|
|
50
22
|
The canonical [MobilityData GTFS Validator](https://github.com/MobilityData/gtfs-validator)
|
|
51
23
|
is a Java application. `gtfslint` does not replace it. It covers the checks that catch most
|
|
52
|
-
broken feeds and fits where a Python tool works better: pre-commit hooks, GitHub Actions,
|
|
24
|
+
broken feeds and fits where a Python tool works better: pre-commit hooks, GitLab CI or GitHub Actions,
|
|
53
25
|
data pipelines and notebooks. When a rule matches a MobilityData notice, the notice name is
|
|
54
26
|
listed next to it, so you can compare the two reports.
|
|
55
27
|
|
|
@@ -110,12 +82,26 @@ usage errors, invalid configuration or an unreadable feed.
|
|
|
110
82
|
When the feed is a folder, annotations point to the exact file and line. When it is a zip
|
|
111
83
|
archive, they are attached to the archive and the message gives the location inside it.
|
|
112
84
|
|
|
85
|
+
### GitLab CI
|
|
86
|
+
|
|
87
|
+
```yaml
|
|
88
|
+
gtfs:
|
|
89
|
+
image: python:3.13
|
|
90
|
+
script:
|
|
91
|
+
- pip install gtfslint-cli
|
|
92
|
+
- gtfslint check gtfs/ --html gtfs-report.html
|
|
93
|
+
artifacts:
|
|
94
|
+
when: always
|
|
95
|
+
paths:
|
|
96
|
+
- gtfs-report.html
|
|
97
|
+
```
|
|
98
|
+
|
|
113
99
|
### pre-commit
|
|
114
100
|
|
|
115
101
|
```yaml
|
|
116
102
|
repos:
|
|
117
|
-
- repo: https://
|
|
118
|
-
rev: v0.1.
|
|
103
|
+
- repo: https://gitlab.com/geophilo1/gtfslint_sdk
|
|
104
|
+
rev: v0.1.2
|
|
119
105
|
hooks:
|
|
120
106
|
- id: gtfslint
|
|
121
107
|
```
|
|
@@ -322,6 +308,30 @@ python benchmarks/synthetic_feed.py /tmp/gtfs-bench
|
|
|
322
308
|
The tests use a small synthetic feed, `tests/data/valid_feed`, which passes every rule.
|
|
323
309
|
`tests/test_rules.py` has one broken variant of it per rule.
|
|
324
310
|
|
|
311
|
+
## Related Geophilo SDKs
|
|
312
|
+
|
|
313
|
+
- [transitfreq](https://pypi.org/project/transitfreq/): transit service frequency and headway analysis from GTFS
|
|
314
|
+
- [todindex](https://pypi.org/project/todindex/): transit-oriented development assessment of station areas
|
|
315
|
+
- [routematrix](https://pypi.org/project/routematrix/): origin-destination travel time and distance matrices
|
|
316
|
+
- [bikelts](https://pypi.org/project/bikelts/): bicycle Level of Traffic Stress and low-stress connectivity
|
|
317
|
+
|
|
318
|
+
All packages: [Geophilo SDK dashboard](https://geophilo.com/sdk-dashboard/).
|
|
319
|
+
|
|
325
320
|
## License
|
|
326
321
|
|
|
327
|
-
MIT © Yusuf Eminoğlu. See [LICENSE](LICENSE).
|
|
322
|
+
MIT © Yusuf Eminoğlu. See [LICENSE](https://gitlab.com/geophilo1/gtfslint_sdk/-/blob/main/LICENSE).
|
|
323
|
+
|
|
324
|
+
## Academic citation
|
|
325
|
+
|
|
326
|
+
```bibtex
|
|
327
|
+
@software{eminoglu_gtfslint,
|
|
328
|
+
author = {Eminoğlu, Yusuf},
|
|
329
|
+
title = {gtfslint},
|
|
330
|
+
year = {2026},
|
|
331
|
+
version = {0.1.2},
|
|
332
|
+
doi = {10.5281/zenodo.24063363},
|
|
333
|
+
url = {https://doi.org/10.5281/zenodo.24063363}
|
|
334
|
+
}
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
See also `CITATION.cff`.
|
|
@@ -4,24 +4,26 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "gtfslint-cli"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.2"
|
|
8
8
|
authors = [
|
|
9
|
-
{ name = "Yusuf Eminoğlu", email = "
|
|
9
|
+
{ name = "Yusuf Eminoğlu", email = "geospacephilo@gmail.com" }
|
|
10
10
|
]
|
|
11
|
-
description = "
|
|
11
|
+
description = "Pure-Python GTFS Schedule validator and feed quality report for CI and pre-commit: coded rules, headway and service-span metrics, JSON/Markdown/HTML/GitHub output."
|
|
12
12
|
keywords = [
|
|
13
13
|
"gtfs",
|
|
14
|
-
"gtfs
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"linter",
|
|
19
|
-
"data-quality",
|
|
14
|
+
"gtfs schedule",
|
|
15
|
+
"gtfs validator",
|
|
16
|
+
"transit feed",
|
|
17
|
+
"public transport",
|
|
20
18
|
"timetable",
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
19
|
+
"linter",
|
|
20
|
+
"data quality",
|
|
21
|
+
"pre-commit",
|
|
22
|
+
"continuous integration",
|
|
23
|
+
"headway",
|
|
24
|
+
"transit data",
|
|
25
|
+
"mobility data",
|
|
26
|
+
"transport planning",
|
|
25
27
|
]
|
|
26
28
|
readme = "README.md"
|
|
27
29
|
license = "MIT"
|
|
@@ -31,6 +33,7 @@ classifiers = [
|
|
|
31
33
|
"Development Status :: 4 - Beta",
|
|
32
34
|
"Environment :: Console",
|
|
33
35
|
"Programming Language :: Python :: 3",
|
|
36
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
34
37
|
"Programming Language :: Python :: 3.9",
|
|
35
38
|
"Programming Language :: Python :: 3.10",
|
|
36
39
|
"Programming Language :: Python :: 3.11",
|
|
@@ -38,10 +41,12 @@ classifiers = [
|
|
|
38
41
|
"Programming Language :: Python :: 3.13",
|
|
39
42
|
"Operating System :: OS Independent",
|
|
40
43
|
"Topic :: Scientific/Engineering :: GIS",
|
|
44
|
+
"Topic :: Scientific/Engineering :: Information Analysis",
|
|
41
45
|
"Topic :: Software Development :: Quality Assurance",
|
|
42
46
|
"Topic :: Software Development :: Testing",
|
|
43
47
|
"Intended Audience :: Developers",
|
|
44
48
|
"Intended Audience :: Science/Research",
|
|
49
|
+
"Intended Audience :: Other Audience",
|
|
45
50
|
"Typing :: Typed",
|
|
46
51
|
]
|
|
47
52
|
dependencies = [
|
|
@@ -61,10 +66,13 @@ dev = [
|
|
|
61
66
|
gtfslint = "gtfslint.cli:main"
|
|
62
67
|
|
|
63
68
|
[project.urls]
|
|
64
|
-
Homepage = "https://
|
|
65
|
-
Repository = "https://
|
|
66
|
-
|
|
67
|
-
|
|
69
|
+
Homepage = "https://gitlab.com/geophilo1/gtfslint_sdk"
|
|
70
|
+
Repository = "https://gitlab.com/geophilo1/gtfslint_sdk"
|
|
71
|
+
Documentation = "https://gitlab.com/geophilo1/gtfslint_sdk#readme"
|
|
72
|
+
Issues = "https://gitlab.com/geophilo1/gtfslint_sdk/-/work_items"
|
|
73
|
+
Changelog = "https://gitlab.com/geophilo1/gtfslint_sdk/-/blob/main/CHANGELOG.md"
|
|
74
|
+
"SDK dashboard" = "https://geophilo.com/sdk-dashboard/"
|
|
75
|
+
DOI = "https://doi.org/10.5281/zenodo.24063363"
|
|
68
76
|
|
|
69
77
|
[tool.setuptools]
|
|
70
78
|
package-dir = {"" = "src"}
|
|
@@ -1,8 +1,62 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: gtfslint-cli
|
|
3
|
+
Version: 0.1.2
|
|
4
|
+
Summary: Pure-Python GTFS Schedule validator and feed quality report for CI and pre-commit: coded rules, headway and service-span metrics, JSON/Markdown/HTML/GitHub output.
|
|
5
|
+
Author-email: Yusuf Eminoğlu <geospacephilo@gmail.com>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://gitlab.com/geophilo1/gtfslint_sdk
|
|
8
|
+
Project-URL: Repository, https://gitlab.com/geophilo1/gtfslint_sdk
|
|
9
|
+
Project-URL: Documentation, https://gitlab.com/geophilo1/gtfslint_sdk#readme
|
|
10
|
+
Project-URL: Issues, https://gitlab.com/geophilo1/gtfslint_sdk/-/work_items
|
|
11
|
+
Project-URL: Changelog, https://gitlab.com/geophilo1/gtfslint_sdk/-/blob/main/CHANGELOG.md
|
|
12
|
+
Project-URL: SDK dashboard, https://geophilo.com/sdk-dashboard/
|
|
13
|
+
Project-URL: DOI, https://doi.org/10.5281/zenodo.24063363
|
|
14
|
+
Keywords: gtfs,gtfs schedule,gtfs validator,transit feed,public transport,timetable,linter,data quality,pre-commit,continuous integration,headway,transit data,mobility data,transport planning
|
|
15
|
+
Classifier: Development Status :: 4 - Beta
|
|
16
|
+
Classifier: Environment :: Console
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
24
|
+
Classifier: Operating System :: OS Independent
|
|
25
|
+
Classifier: Topic :: Scientific/Engineering :: GIS
|
|
26
|
+
Classifier: Topic :: Scientific/Engineering :: Information Analysis
|
|
27
|
+
Classifier: Topic :: Software Development :: Quality Assurance
|
|
28
|
+
Classifier: Topic :: Software Development :: Testing
|
|
29
|
+
Classifier: Intended Audience :: Developers
|
|
30
|
+
Classifier: Intended Audience :: Science/Research
|
|
31
|
+
Classifier: Intended Audience :: Other Audience
|
|
32
|
+
Classifier: Typing :: Typed
|
|
33
|
+
Requires-Python: >=3.9
|
|
34
|
+
Description-Content-Type: text/markdown
|
|
35
|
+
License-File: LICENSE
|
|
36
|
+
Requires-Dist: tomli>=1.1.0; python_version < "3.11"
|
|
37
|
+
Requires-Dist: tzdata; sys_platform == "win32"
|
|
38
|
+
Provides-Extra: dev
|
|
39
|
+
Requires-Dist: pytest>=7.0.0; extra == "dev"
|
|
40
|
+
Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
|
|
41
|
+
Requires-Dist: ruff>=0.1.0; extra == "dev"
|
|
42
|
+
Requires-Dist: mypy>=1.0.0; extra == "dev"
|
|
43
|
+
Dynamic: license-file
|
|
44
|
+
|
|
45
|
+
<p align="center">
|
|
46
|
+
<a href="https://geophilo.com/sdk-dashboard/"><img src="https://geophilo.com/assets/sdk_icons/gtfslint_sdk.svg" width="120" height="120" alt="gtfslint-cli icon"></a>
|
|
47
|
+
</p>
|
|
48
|
+
|
|
1
49
|
# gtfslint
|
|
2
50
|
|
|
3
|
-
|
|
51
|
+
[](https://pypi.org/project/gtfslint-cli/)
|
|
52
|
+
[](https://pypi.org/project/gtfslint-cli/)
|
|
53
|
+
[](https://gitlab.com/geophilo1/gtfslint_sdk/-/pipelines)
|
|
54
|
+
[](https://gitlab.com/geophilo1/gtfslint_sdk/-/blob/main/LICENSE)
|
|
55
|
+
[](https://doi.org/10.5281/zenodo.24063363)
|
|
56
|
+
[](https://pepy.tech/project/gtfslint-cli)
|
|
4
57
|
|
|
5
|
-
`gtfslint`
|
|
58
|
+
`gtfslint` is a pure-Python GTFS Schedule validator and quality report for transit data
|
|
59
|
+
teams and CI pipelines. It checks a [GTFS Schedule](https://gtfs.org/documentation/schedule/reference/) feed
|
|
6
60
|
(a `.zip` archive or a folder) against the specification, reports every problem with a stable
|
|
7
61
|
rule code, a severity and the exact file/line/field, and computes quality metrics such as
|
|
8
62
|
service span, trips per day and headways. It is a `pip install` away, has no compiled
|
|
@@ -11,7 +65,7 @@ seconds.
|
|
|
11
65
|
|
|
12
66
|
The canonical [MobilityData GTFS Validator](https://github.com/MobilityData/gtfs-validator)
|
|
13
67
|
is a Java application. `gtfslint` does not replace it. It covers the checks that catch most
|
|
14
|
-
broken feeds and fits where a Python tool works better: pre-commit hooks, GitHub Actions,
|
|
68
|
+
broken feeds and fits where a Python tool works better: pre-commit hooks, GitLab CI or GitHub Actions,
|
|
15
69
|
data pipelines and notebooks. When a rule matches a MobilityData notice, the notice name is
|
|
16
70
|
listed next to it, so you can compare the two reports.
|
|
17
71
|
|
|
@@ -72,12 +126,26 @@ usage errors, invalid configuration or an unreadable feed.
|
|
|
72
126
|
When the feed is a folder, annotations point to the exact file and line. When it is a zip
|
|
73
127
|
archive, they are attached to the archive and the message gives the location inside it.
|
|
74
128
|
|
|
129
|
+
### GitLab CI
|
|
130
|
+
|
|
131
|
+
```yaml
|
|
132
|
+
gtfs:
|
|
133
|
+
image: python:3.13
|
|
134
|
+
script:
|
|
135
|
+
- pip install gtfslint-cli
|
|
136
|
+
- gtfslint check gtfs/ --html gtfs-report.html
|
|
137
|
+
artifacts:
|
|
138
|
+
when: always
|
|
139
|
+
paths:
|
|
140
|
+
- gtfs-report.html
|
|
141
|
+
```
|
|
142
|
+
|
|
75
143
|
### pre-commit
|
|
76
144
|
|
|
77
145
|
```yaml
|
|
78
146
|
repos:
|
|
79
|
-
- repo: https://
|
|
80
|
-
rev: v0.1.
|
|
147
|
+
- repo: https://gitlab.com/geophilo1/gtfslint_sdk
|
|
148
|
+
rev: v0.1.2
|
|
81
149
|
hooks:
|
|
82
150
|
- id: gtfslint
|
|
83
151
|
```
|
|
@@ -284,6 +352,30 @@ python benchmarks/synthetic_feed.py /tmp/gtfs-bench
|
|
|
284
352
|
The tests use a small synthetic feed, `tests/data/valid_feed`, which passes every rule.
|
|
285
353
|
`tests/test_rules.py` has one broken variant of it per rule.
|
|
286
354
|
|
|
355
|
+
## Related Geophilo SDKs
|
|
356
|
+
|
|
357
|
+
- [transitfreq](https://pypi.org/project/transitfreq/): transit service frequency and headway analysis from GTFS
|
|
358
|
+
- [todindex](https://pypi.org/project/todindex/): transit-oriented development assessment of station areas
|
|
359
|
+
- [routematrix](https://pypi.org/project/routematrix/): origin-destination travel time and distance matrices
|
|
360
|
+
- [bikelts](https://pypi.org/project/bikelts/): bicycle Level of Traffic Stress and low-stress connectivity
|
|
361
|
+
|
|
362
|
+
All packages: [Geophilo SDK dashboard](https://geophilo.com/sdk-dashboard/).
|
|
363
|
+
|
|
287
364
|
## License
|
|
288
365
|
|
|
289
|
-
MIT © Yusuf Eminoğlu. See [LICENSE](LICENSE).
|
|
366
|
+
MIT © Yusuf Eminoğlu. See [LICENSE](https://gitlab.com/geophilo1/gtfslint_sdk/-/blob/main/LICENSE).
|
|
367
|
+
|
|
368
|
+
## Academic citation
|
|
369
|
+
|
|
370
|
+
```bibtex
|
|
371
|
+
@software{eminoglu_gtfslint,
|
|
372
|
+
author = {Eminoğlu, Yusuf},
|
|
373
|
+
title = {gtfslint},
|
|
374
|
+
year = {2026},
|
|
375
|
+
version = {0.1.2},
|
|
376
|
+
doi = {10.5281/zenodo.24063363},
|
|
377
|
+
url = {https://doi.org/10.5281/zenodo.24063363}
|
|
378
|
+
}
|
|
379
|
+
```
|
|
380
|
+
|
|
381
|
+
See also `CITATION.cff`.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|