Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.23.0"
".": "1.24.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 29
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-30baad9d29b0909d180aae300750a0cd8425b52d7a60ba365b6aa4e5f8da6fab.yml
openapi_spec_hash: 218466af34966d9b08728f107cb3b3b0
config_hash: 3871f5d21bb38ddd334ec04721dea64d
configured_endpoints: 30
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-a30b0967ffed17b866dc65b5528148a06a42cce7c3c6d8f740ae2f6079963e7d.yml
openapi_spec_hash: 9bf1e5bf00ef9936a9181ebd0956d5b8
config_hash: c28ddf5b7754155603d9fd1c5fcaeeff
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.24.0 (2026-03-29)

Full Changelog: [v1.23.0...v1.24.0](https://github.com/OneBusAway/python-sdk/compare/v1.23.0...v1.24.0)

### Features

* **api:** api update ([349fab1](https://github.com/OneBusAway/python-sdk/commit/349fab1505b040ed2e6fc7dd8d44a8f5cbe90385))

## 1.23.0 (2026-03-27)

Full Changelog: [v1.22.2...v1.23.0](https://github.com/OneBusAway/python-sdk/compare/v1.22.2...v1.23.0)
Expand Down
12 changes: 12 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,18 @@ Methods:

- <code title="get /api/where/schedule-for-route/{routeID}.json">client.schedule_for_route.<a href="./src/onebusaway/resources/schedule_for_route.py">retrieve</a>(route_id, \*\*<a href="src/onebusaway/types/schedule_for_route_retrieve_params.py">params</a>) -> <a href="./src/onebusaway/types/schedule_for_route_retrieve_response.py">ScheduleForRouteRetrieveResponse</a></code>

# ArrivalsAndDeparturesForLocation

Types:

```python
from onebusaway.types import ArrivalsAndDeparturesForLocationListResponse
```

Methods:

- <code title="get /api/where/arrivals-and-departures-for-location.json">client.arrivals_and_departures_for_location.<a href="./src/onebusaway/resources/arrivals_and_departures_for_location.py">list</a>(\*\*<a href="src/onebusaway/types/arrivals_and_departures_for_location_list_params.py">params</a>) -> <a href="./src/onebusaway/types/arrivals_and_departures_for_location_list_response.py">ArrivalsAndDeparturesForLocationListResponse</a></code>

# ArrivalAndDeparture

Types:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "onebusaway"
version = "1.23.0"
version = "1.24.0"
description = "The official Python library for the onebusaway-sdk API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
65 changes: 65 additions & 0 deletions src/onebusaway/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
agencies_with_coverage,
report_problem_with_stop,
report_problem_with_trip,
arrivals_and_departures_for_location,
)
from .resources.stop import StopResource, AsyncStopResource
from .resources.trip import TripResource, AsyncTripResource
Expand Down Expand Up @@ -89,6 +90,10 @@
from .resources.agencies_with_coverage import AgenciesWithCoverageResource, AsyncAgenciesWithCoverageResource
from .resources.report_problem_with_stop import ReportProblemWithStopResource, AsyncReportProblemWithStopResource
from .resources.report_problem_with_trip import ReportProblemWithTripResource, AsyncReportProblemWithTripResource
from .resources.arrivals_and_departures_for_location import (
ArrivalsAndDeparturesForLocationResource,
AsyncArrivalsAndDeparturesForLocationResource,
)

__all__ = [
"Timeout",
Expand Down Expand Up @@ -253,6 +258,12 @@ def schedule_for_route(self) -> ScheduleForRouteResource:

return ScheduleForRouteResource(self)

@cached_property
def arrivals_and_departures_for_location(self) -> ArrivalsAndDeparturesForLocationResource:
from .resources.arrivals_and_departures_for_location import ArrivalsAndDeparturesForLocationResource

return ArrivalsAndDeparturesForLocationResource(self)

@cached_property
def arrival_and_departure(self) -> ArrivalAndDepartureResource:
from .resources.arrival_and_departure import ArrivalAndDepartureResource
Expand Down Expand Up @@ -600,6 +611,12 @@ def schedule_for_route(self) -> AsyncScheduleForRouteResource:

return AsyncScheduleForRouteResource(self)

@cached_property
def arrivals_and_departures_for_location(self) -> AsyncArrivalsAndDeparturesForLocationResource:
from .resources.arrivals_and_departures_for_location import AsyncArrivalsAndDeparturesForLocationResource

return AsyncArrivalsAndDeparturesForLocationResource(self)

@cached_property
def arrival_and_departure(self) -> AsyncArrivalAndDepartureResource:
from .resources.arrival_and_departure import AsyncArrivalAndDepartureResource
Expand Down Expand Up @@ -898,6 +915,18 @@ def schedule_for_route(self) -> schedule_for_route.ScheduleForRouteResourceWithR

return ScheduleForRouteResourceWithRawResponse(self._client.schedule_for_route)

@cached_property
def arrivals_and_departures_for_location(
self,
) -> arrivals_and_departures_for_location.ArrivalsAndDeparturesForLocationResourceWithRawResponse:
from .resources.arrivals_and_departures_for_location import (
ArrivalsAndDeparturesForLocationResourceWithRawResponse,
)

return ArrivalsAndDeparturesForLocationResourceWithRawResponse(
self._client.arrivals_and_departures_for_location
)

@cached_property
def arrival_and_departure(self) -> arrival_and_departure.ArrivalAndDepartureResourceWithRawResponse:
from .resources.arrival_and_departure import ArrivalAndDepartureResourceWithRawResponse
Expand Down Expand Up @@ -1073,6 +1102,18 @@ def schedule_for_route(self) -> schedule_for_route.AsyncScheduleForRouteResource

return AsyncScheduleForRouteResourceWithRawResponse(self._client.schedule_for_route)

@cached_property
def arrivals_and_departures_for_location(
self,
) -> arrivals_and_departures_for_location.AsyncArrivalsAndDeparturesForLocationResourceWithRawResponse:
from .resources.arrivals_and_departures_for_location import (
AsyncArrivalsAndDeparturesForLocationResourceWithRawResponse,
)

return AsyncArrivalsAndDeparturesForLocationResourceWithRawResponse(
self._client.arrivals_and_departures_for_location
)

@cached_property
def arrival_and_departure(self) -> arrival_and_departure.AsyncArrivalAndDepartureResourceWithRawResponse:
from .resources.arrival_and_departure import AsyncArrivalAndDepartureResourceWithRawResponse
Expand Down Expand Up @@ -1248,6 +1289,18 @@ def schedule_for_route(self) -> schedule_for_route.ScheduleForRouteResourceWithS

return ScheduleForRouteResourceWithStreamingResponse(self._client.schedule_for_route)

@cached_property
def arrivals_and_departures_for_location(
self,
) -> arrivals_and_departures_for_location.ArrivalsAndDeparturesForLocationResourceWithStreamingResponse:
from .resources.arrivals_and_departures_for_location import (
ArrivalsAndDeparturesForLocationResourceWithStreamingResponse,
)

return ArrivalsAndDeparturesForLocationResourceWithStreamingResponse(
self._client.arrivals_and_departures_for_location
)

@cached_property
def arrival_and_departure(self) -> arrival_and_departure.ArrivalAndDepartureResourceWithStreamingResponse:
from .resources.arrival_and_departure import ArrivalAndDepartureResourceWithStreamingResponse
Expand Down Expand Up @@ -1423,6 +1476,18 @@ def schedule_for_route(self) -> schedule_for_route.AsyncScheduleForRouteResource

return AsyncScheduleForRouteResourceWithStreamingResponse(self._client.schedule_for_route)

@cached_property
def arrivals_and_departures_for_location(
self,
) -> arrivals_and_departures_for_location.AsyncArrivalsAndDeparturesForLocationResourceWithStreamingResponse:
from .resources.arrivals_and_departures_for_location import (
AsyncArrivalsAndDeparturesForLocationResourceWithStreamingResponse,
)

return AsyncArrivalsAndDeparturesForLocationResourceWithStreamingResponse(
self._client.arrivals_and_departures_for_location
)

@cached_property
def arrival_and_departure(self) -> arrival_and_departure.AsyncArrivalAndDepartureResourceWithStreamingResponse:
from .resources.arrival_and_departure import AsyncArrivalAndDepartureResourceWithStreamingResponse
Expand Down
2 changes: 1 addition & 1 deletion src/onebusaway/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "onebusaway"
__version__ = "1.23.0" # x-release-please-version
__version__ = "1.24.0" # x-release-please-version
14 changes: 14 additions & 0 deletions src/onebusaway/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,14 @@
ReportProblemWithTripResourceWithStreamingResponse,
AsyncReportProblemWithTripResourceWithStreamingResponse,
)
from .arrivals_and_departures_for_location import (
ArrivalsAndDeparturesForLocationResource,
AsyncArrivalsAndDeparturesForLocationResource,
ArrivalsAndDeparturesForLocationResourceWithRawResponse,
AsyncArrivalsAndDeparturesForLocationResourceWithRawResponse,
ArrivalsAndDeparturesForLocationResourceWithStreamingResponse,
AsyncArrivalsAndDeparturesForLocationResourceWithStreamingResponse,
)

__all__ = [
"AgenciesWithCoverageResource",
Expand Down Expand Up @@ -322,6 +330,12 @@
"AsyncScheduleForRouteResourceWithRawResponse",
"ScheduleForRouteResourceWithStreamingResponse",
"AsyncScheduleForRouteResourceWithStreamingResponse",
"ArrivalsAndDeparturesForLocationResource",
"AsyncArrivalsAndDeparturesForLocationResource",
"ArrivalsAndDeparturesForLocationResourceWithRawResponse",
"AsyncArrivalsAndDeparturesForLocationResourceWithRawResponse",
"ArrivalsAndDeparturesForLocationResourceWithStreamingResponse",
"AsyncArrivalsAndDeparturesForLocationResourceWithStreamingResponse",
"ArrivalAndDepartureResource",
"AsyncArrivalAndDepartureResource",
"ArrivalAndDepartureResourceWithRawResponse",
Expand Down
Loading