skillfed

py-nextbusnext

Minimalistic Python client for the NextBus public API for real-time transit arrival data

py-nextbusnext v2.3.0 74.1K downloads/30d#14,879 on PyPI5
Permissive license AGING released

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-nextbusnext

uv

uv add py-nextbusnext

poetry

poetry add py-nextbusnext

Installing 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

License :: OSI Approved :: MIT LicenseOperating System :: OS Independent

Tags

nextbus api clienttransit arrival predictionsreal-time bus datapublic transit apinextbus python wrapper
transit-dataapi-client

More Internet packages