Skip to content

Commit

Permalink
Merge pull request #19 from OneBusAway/release-please--branches--main…
Browse files Browse the repository at this point in the history
…--changes--next

release: 0.1.0-alpha.5
  • Loading branch information
Ahmedhossamdev authored Jul 28, 2024
2 parents 8d56083 + e1a19e7 commit d4367ba
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.0-alpha.4"
".": "0.1.0-alpha.5"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 15
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-735f145c4ce18bd5a2c869289186f175513bfa496507de7ff0734f9242adf427.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-ac10a054ead5e711bd033b417891c1769d631135029ca5bd91e6584420403ee2.yml
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.1.0-alpha.5 (2024-07-28)

Full Changelog: [v0.1.0-alpha.4...v0.1.0-alpha.5](https://github.com/OneBusAway/python-sdk/compare/v0.1.0-alpha.4...v0.1.0-alpha.5)

### Features

* **api:** OpenAPI spec update via Stainless API ([#18](https://github.com/OneBusAway/python-sdk/issues/18)) ([e209b47](https://github.com/OneBusAway/python-sdk/commit/e209b47d717f9ad08a688587b1bae46cb71fab54))

## 0.1.0-alpha.4 (2024-07-27)

Full Changelog: [v0.1.0-alpha.3...v0.1.0-alpha.4](https://github.com/OneBusAway/python-sdk/compare/v0.1.0-alpha.3...v0.1.0-alpha.4)
Expand Down
3 changes: 1 addition & 2 deletions examples/agency.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


import onebusaway


Expand All @@ -12,5 +10,6 @@ def main_sync() -> None:
else:
print("Agency data or entry is None.")


if __name__ == "__main__":
main_sync()
3 changes: 1 addition & 2 deletions examples/stop.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


import onebusaway


Expand All @@ -12,5 +10,6 @@ def main_sync() -> None:
else:
print("stop not found")


if __name__ == "__main__":
main_sync()
6 changes: 2 additions & 4 deletions examples/stop_ids_for_agency.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@


import onebusaway


def main_sync() -> None:
client = onebusaway.OnebusawaySDK(api_key="TEST")
agency_id = "40";
agency_id = "40"
stop_ids = client.stop_ids_for_agency.list(agency_id)
if stop_ids.data:
if stop_ids.data and stop_ids.data.list is not None:
for stop_id in stop_ids.data.list:
print(stop_id)

Expand Down
5 changes: 2 additions & 3 deletions examples/trip.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@


import onebusaway


def main_sync() -> None:
client = onebusaway.OnebusawaySDK(api_key="TEST")

trip_id = '40_608344966'
trip_id = "40_608344966"
trip = client.trip.retrieve(trip_id)

if trip.data and trip.data.entry:
print(trip.data.entry)
else:
print("trip data or entry is None.")


if __name__ == "__main__":
main_sync()
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 = "0.1.0-alpha.4"
version = "0.1.0-alpha.5"
description = "The official Python library for the onebusaway-sdk API"
dynamic = ["readme"]
license = "Apache-2.0"
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__ = "0.1.0-alpha.4" # x-release-please-version
__version__ = "0.1.0-alpha.5" # x-release-please-version
6 changes: 3 additions & 3 deletions src/onebusaway/types/stop_ids_for_agency_list_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@


class StopIDsForAgencyListResponseData(BaseModel):
list: List[str]
limit_exceeded: Optional[bool] = FieldInfo(alias="limitExceeded", default=None)

references: References
list: Optional[List[str]] = None

limit_exceeded: Optional[bool] = FieldInfo(alias="limitExceeded", default=None)
references: Optional[References] = None


class StopIDsForAgencyListResponse(ResponseWrapper):
Expand Down
4 changes: 2 additions & 2 deletions src/onebusaway/types/stop_retrieve_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ class StopRetrieveResponseDataEntry(BaseModel):


class StopRetrieveResponseData(BaseModel):
entry: StopRetrieveResponseDataEntry
entry: Optional[StopRetrieveResponseDataEntry] = None

references: References
references: Optional[References] = None


class StopRetrieveResponse(ResponseWrapper):
Expand Down

0 comments on commit d4367ba

Please sign in to comment.