skillfed

gtfs-realtime-bindings

Python classes generated from the GTFS-realtime protocol buffer specification.

gtfs-realtime-bindings v2.2.0 743.5K downloads/30d#5,177 on PyPI437
Permissive license Apache License, Version 2.0 Active released

What it is and what it does

gtfs-realtime-bindings is a set of pre-generated Python classes that map the GTFS Realtime protocol buffer schema into native Python objects. GTFS Realtime is a data format for communicating real-time information about public transit systems, encoded as compact binary Protocol Buffers. Rather than requiring developers to run the protoc compiler themselves, this package ships the generated classes ready to use, eliminating a common source of confusion for first-time users.

You use it to parse binary GTFS Realtime feeds into Python objects, or to construct and serialize such objects for transmission. The package is maintained by MobilityData and has been in active development since 2015, with support for current Python versions (3.8+). Its only runtime dependency is protobuf, keeping installation simple.

Use it for:

  • Parse real-time vehicle location feeds from transit agencies to display live positions.
  • Consume service alert messages to notify users of delays or service changes.
  • Build a transit data aggregator that collects GTFS Realtime feeds from multiple agencies.
  • Construct and publish GTFS Realtime feeds from your own transit system.
  • Validate or test GTFS Realtime data without writing Protocol Buffer schema definitions.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides pre-generated Python classes for encoding and decoding GTFS Realtime data—real-time public transit information—using Protocol Buffers for efficient binary serialization.

Yes. This is a focused, well-maintained library for a specific standard (GTFS Realtime) with low install friction, permissive licensing, no known vulnerabilities, and active upstream maintenance. Install it if you need to work with real-time transit data; skip it if you don't.

Install

gtfs-realtime-bindings on PyPI

pip

pip install gtfs-realtime-bindings

uv

uv add gtfs-realtime-bindings

poetry

poetry add gtfs-realtime-bindings

Installing gtfs-realtime-bindings

Before you install

Low friction: pure Python wheel with a single runtime dependency on protobuf. Actively maintained with recent release on 2026-07-29.

License in practice

Apache License, Version 2.0 (permissive) allows free use, modification, and distribution in both open-source and commercial projects with minimal restrictions.

Quickstart

pip install gtfs-realtime-bindings

import gtfs_realtime_bindings
# Use protobuf-generated classes to parse binary GTFS Realtime feed data

Requires Python >= 3.8 and protobuf runtime dependency.

Verify before relying

  • Whether the package's Protocol Buffer definitions are kept in sync with the official GTFS Realtime spec.
  • Performance characteristics when handling large or frequent transit feed updates.
  • Compatibility with specific protobuf versions beyond the declared runtime dependency.
  • Exact module structure and class names available after installation.

Package facts

License Apache License, Version 2.0 (permissive)
Python support supports the current Python release (>=3.8)
Install friction low — pure-Python wheel
Runtime dependencies 1 — protobuf
Maintenance actively maintained — 16 days since the last release
Last repo commit
First released
Downloads 743,496/month — #5,177 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: gtfs_realtime_bindings-2.2.0-py3-none-any.whl

Intended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonTopic :: Software Development :: Libraries :: Python Modules

Tags

gtfs realtime protocol bufferspublic transit real-time datagtfs bindings pythontransit feed protocol buffersprotobuf gtfs realtimepublic transportation data parsinggtfs realtime encoding decoding
transit-dataprotocol-buffers

More Python Modules packages