gtfs-realtime-bindings
Python classes generated from the GTFS-realtime protocol buffer specification.
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-bindingsuv
uv add gtfs-realtime-bindingspoetry
poetry add gtfs-realtime-bindingsInstalling 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
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
foxglove-schemas-protobufProvides precompiled Protobuf message classes…
permissive · top 15,000 on PyPI
PyRMVtransportQueries real-time and scheduled transport…
permissive · top 15,000 on PyPI
proto-plusProto Plus wraps protocol buffers to provide…
permissive · top 1,000 on PyPI
discord-protosProvides Python bindings for Discord's protocol…
permissive · top 15,000 on PyPI
pure-protobufEncodes and decodes Protocol Buffer messages…
permissive · top 15,000 on PyPI
dbt-protosProvides Python Protocol Buffer bindings for…
permissive · top 1,000 on PyPI
protoc-wheel-0Provides pre-built wheels of the Google…
permissive · top 15,000 on PyPI
proto-google-cloud-datastore-v1Provides Protocol Buffer definitions and gRPC…
permissive · top 15,000 on PyPI
aristaprotoGenerates Python gRPC stubs and message classes…
permissive · top 15,000 on PyPI
pbtoolsGenerates C source code from Protocol Buffer…
permissive · top 15,000 on PyPI