Skip to main content

TVIC GTFS Manager

2026, February, Release 2


About

TVIC GTFS Manager is a highly specific library for a highly specific problem. Transport Victoria (formerly PTV) publishes GTFS schedules in a horrid way in which you download a Zip, which contains folders for each mode of transport (operational branches), which contains another Zip file (unhelpfully called google_transit.zip), which contains the various General Transit Feed Specification files, each of which are CSV files with the unhelpful extension of .txt.

This library hopefully solves a lot of pain of dealing with downloading and returning data for a operating branch.

Installation

pip install tvic_gtfs_manager

or download from the releases

Usage

For the simplest usage:

from tvic_gtfs_manager import getGTFS
files = getGTFS()

print(files.keys())
> dict_keys(['pathways', 'transfers', 'agency', 'trips', 'calendar', 'routes', 'shapes', 'levels', 'stops', 'calendar_dates', 'stop_times'])

Or get a bit more nuanced:

from tvic_gtfs_manager import getGTFS
from pathlib import Path as LibPath

getGTFS(
    URL="https://opendata.transport.vic.gov.au/dataset/3f4e292e-7f8a-4ffe-831f-1953be0fe448/resource/fb152201-859f-4882-9206-b768060b50ad/download/gtfs.zip", # GTFS Schedule Zip URL
    branch=2, # Metropolitan Trains
    filepath=LibPath(LibPath.cwd(), "gtfs.zip"), # Path to save to disk
    )

Dependencies

This library requires pandas and Requests to function.

License

MIT

Metadata

Release files for tvic_gtfs_manager 2026.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tvic_gtfs_manager 2026.2.2
File Size Uploaded
tvic_gtfs_manager-2026.2.2.tar.gz 5.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tvic_gtfs_manager 2026.2.2
File Interpreter ABI Platform
tvic_gtfs_manager-2026.2.2-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 10.2 kB

Release files / tvic_gtfs_manager-2026.2.2.tar.gz

Download URL tvic_gtfs_manager-2026.2.2.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a6d1e1c19c4088010b48e16290a7d70fc2bfa0342af2e8651f934ef6b0d7a9dc
BLAKE2b-256 checksum
How to use checksums
1a1688579d8f57c29cbe74bb368d1e15bbaada65f7e520a22e4fa46352516d97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.5

Release files / tvic_gtfs_manager-2026.2.2-py2.py3-none-any.whl

Download URL tvic_gtfs_manager-2026.2.2-py2.py3-none-any.whl
Size 4.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
81fb20e15db7b90331d7b5c2f1e398329d57d9cba00e2bdc3d34944430c97be5
BLAKE2b-256 checksum
How to use checksums
2944d276251f077d1c6fe035b27750d34a2a5ecf4f034f4f7698bd1dfef60319
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.5

Release history Release notifications | RSS feed

This release

2026.2.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page