py-nextbusnext
Minimalistic Python client for the NextBus public API for real-time transit arrival data
What it is and what it does
py_nextbusnext is a lightweight Python wrapper around the NextBus public API, allowing you to fetch real-time transit data such as agency lists, routes, and arrival predictions. It's a fork of the original py_nextbus maintained for continued compatibility. The package depends only on requests and requires Python 3.10 or later.
You use it by instantiating a NextBusClient and calling methods like get_agencies() to retrieve transit information. It's designed for developers building applications that need live bus arrival times or route data from transit agencies that use the NextBus system.
Use it for:
- Build a transit app or dashboard that displays real-time bus arrival predictions for a specific stop.
- Query available transit agencies and routes to populate a transit route selector or search interface.
- Integrate live transit data into a travel planning or commute-tracking application.
- Monitor transit system status or collect historical arrival data for analysis.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A Python client for querying real-time transit arrival predictions and route information from the NextBus public API.
Yes, if you need a straightforward Python interface to NextBus data and are comfortable with an aging but still-maintained package. The low install friction, permissive license, and zero known vulnerabilities make it a safe choice. However, verify that the NextBus API is still active for your use case and that the fork's API changes don't conflict with your requirements.
Install
py-nextbusnext on PyPI
pip
pip install py-nextbusnextuv
uv add py-nextbusnextpoetry
poetry add py-nextbusnextInstalling py-nextbusnext
Before you install
Low install friction with a single dependency (requests). Maintenance status is aging—last release was 427 days ago, though the repository remains active and not archived. Requires Python 3.10 or later.
License in practice
Licensed under MIT (permissive), so you can use, modify, and distribute the package freely with minimal restrictions.
Quickstart
pip install py-nextbusnext
import py_nextbus
client = py_nextbus.NextBusClient()
agencies = client.get_agencies()
Requires Python 3.10 or later.
Verify before relying
- Whether the NextBus API itself remains actively maintained and available for public use.
- Scope and completeness of API coverage compared to the upstream py_nextbus project.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — requests |
| Maintenance | aging — 427 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 74,068/month — #14,879 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: py_nextbusnext-2.3.0-py3-none-any.whl
Tags
More Internet packages
Botocore provides low-level, data-driven access…
permissive · top 100 on PyPI
aiobotocoreProvides an async client for AWS services using…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
filelockProvides a platform-independent file locking…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
googleapis-common-protosProvides common Protocol Buffer message…
permissive · top 100 on PyPI
PyRMVtransportQueries real-time and scheduled transport…
permissive · top 15,000 on PyPI
gtfs-realtime-bindingsProvides pre-generated Python classes for…
permissive · top 15,000 on PyPI
TikTokLiveConnect to TikTok livestreams and receive…
permissive · top 15,000 on PyPI
flightsProgrammatic access to Google Flights search…
permissive · top 15,000 on PyPI
google-maps-routingPython client library for the Google Maps…
permissive · top 15,000 on PyPI
bottle-websocketAdds WebSocket support to the Bottle web…
permissive · top 15,000 on PyPI
pytrafikverketAsync Python client for querying Sweden's…
permissive · top 15,000 on PyPI
datarobot-predictProvides a unified Python interface for making…
permissive · top 15,000 on PyPI
signalflow-client-pythonA Python client library that connects to Splunk…
permissive · top 15,000 on PyPI