Skip to main content

TVIC GTFS Manager is a highly specific library for a highly specific problem.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tvic_gtfs_manager-2026.2.2.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tvic_gtfs_manager-2026.2.2-py2.py3-none-any.whl (4.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file tvic_gtfs_manager-2026.2.2.tar.gz.

File metadata

  • Download URL: tvic_gtfs_manager-2026.2.2.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.5

File hashes

Hashes for tvic_gtfs_manager-2026.2.2.tar.gz
Algorithm Hash digest
SHA256 a6d1e1c19c4088010b48e16290a7d70fc2bfa0342af2e8651f934ef6b0d7a9dc
MD5 63de5e6309e7679207933efbc2acb679
BLAKE2b-256 1a1688579d8f57c29cbe74bb368d1e15bbaada65f7e520a22e4fa46352516d97

See more details on using hashes here.

File details

Details for the file tvic_gtfs_manager-2026.2.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for tvic_gtfs_manager-2026.2.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 81fb20e15db7b90331d7b5c2f1e398329d57d9cba00e2bdc3d34944430c97be5
MD5 fd39145db6794683f5daa8370374f6e1
BLAKE2b-256 2944d276251f077d1c6fe035b27750d34a2a5ecf4f034f4f7698bd1dfef60319

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page