gtfs-garage-core
The library behind GTFS Garage: load a GTFS feed into DuckDB, convert it to Parquet, and query it. No web server and no interface. It depends only on duckdb.
pip install gtfs-garage-core
from pathlib import Path
from gtfs_garage_core import GtfsFeed, query_table
feed = GtfsFeed("feed.zip")
print(query_table(feed, "routes", page=1, page_size=20))
feed.export_parquet(Path("out")) # {table}.parquet + manifest.json
feed.close()
Converting one table at a time
gtfs_garage_core.convert does the conversion without a GtfsFeed, one table at a time, so peak memory tracks the largest table rather than the whole feed:
from pathlib import Path
import duckdb
from gtfs_garage_core.convert import convert_table, manifest_entry, register_table, write_manifest
con = duckdb.connect()
columns = register_table(con, "stops", Path("stops.txt"))
convert_table(con, "stops", Path("out/stops.parquet"))
The output is the dataset GTFS Garage's viewer reads, in the browser or on a server. Every column is text, and empty fields are NULL. The manifest records each table's rows and sizes.
gtfs-garage is released together with this package and depends on its exact version. Code that imports gtfs_garage.core keeps working: it is the same package under its old name.
Metadata
Release files for gtfs-garage-core 0.6.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_garage_core-0.6.0.tar.gz | 46.9 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gtfs_garage_core-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 101.9 kB
Release files / gtfs_garage_core-0.6.0.tar.gz
| Download URL | gtfs_garage_core-0.6.0.tar.gz |
|---|---|
| Size | 46.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1cbcc6c36f8c273cd25b31c83d931adcce7c189e97d4223addf26743bc87c374
|
|
BLAKE2b-256 checksum How to use checksums |
29d7b8a4d3b74996928b65728c96559a633a1c9bed9debbd79668010d54428f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.
Transparency logRelease files / gtfs_garage_core-0.6.0-py3-none-any.whl
| Download URL | gtfs_garage_core-0.6.0-py3-none-any.whl |
|---|---|
| Size | 55.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
da1cfebaea87665aebab5fc0cfa44c878949bf1c5aeef0fb44f7fe01276d0de8
|
|
BLAKE2b-256 checksum How to use checksums |
9d4393c753bc56c25615d823f27f8dc7ad57547bcfedfd4fe9bb84da1ea5d5f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.
Transparency logSecurity for gtfs-garage-core 0.6.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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for gtfs_garage_core-0.6.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.
Transparency logA 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.