pyrail breaking changes
pyrail 0.7.0 (November 25, 2026) is its newest release with breaking changes, 25 of them. The first: Removed get_composition.data. Every breaking API change we have recorded in pyrail on PyPI: 25 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 0.7.0, released November 25, 2026. Source repository
Packages on PyPI run on Python. Python end of life dates.
pyrail 0.7.0 breaking changes
- Removed
get_composition.data
Passing data to get_composition now raises TypeError. Stop passing it. github.com - Removed
get_disturbances.line_break_character
Passing line_break_character to get_disturbances now raises TypeError. Stop passing it. github.com - Removed
get_liveboard.alerts
Passing alerts to get_liveboard now raises TypeError. Stop passing it. github.com - Removed
get_vehicle.alerts
Passing alerts to get_vehicle now raises TypeError. Stop passing it. github.com - Behavior changed
Empty, overlong or control-character station names and vehicle ids now raise ValueError before any request is sent. github.com - Behavior changed
A longitude outside ±180 or a latitude outside ±90 now fails with InvalidResponseError. github.com - Behavior changed
InvalidRequestError
The message attribute now carries the message from a V1 error body instead of the raw JSON. github.com - Signature changed
ConnectionDeparture
Code that builds ConnectionDeparture by position must reorder its arguments. Keyword use and parsing are unaffected. github.com - Signature changed
get_composition
The second positional argument is now read as a date and must be in DDMMYY format. Pass date= by keyword. github.com - Signature changed
pyrail.ConnectionArrival.__init__
Was def __init__(self, delay: int, station: str, station_info: StationDetails, time: datetime, vehicle: str, vehicle_info: VehicleInfo, platform: str, platform_info: PlatformInfo, canceled: bool, direction: Direction, arrived: bool... pypi.org - Signature changed
pyrail.ConnectionArrival.departure_connection
Was departure_connection: str; now departure_connection: str | None. pypi.org - Signature changed
pyrail.ConnectionDeparture.__init__
Was def __init__(self, delay: int, station: str, station_info: StationDetails, time: datetime, vehicle: str, vehicle_info: VehicleInfo, platform: str, platform_info: PlatformInfo, canceled: bool, departure_connection: str, direction... pypi.org - Signature changed
pyrail.ConnectionDeparture.departure_connection
Was departure_connection: str; now departure_connection: str | None. pypi.org - Signature changed
pyrail.IRail.get_composition
Was async def get_composition(self, vehicle_id: str, data: str | None = None) -> CompositionApiResponse | None; now async def get_composition(self, vehicle_id: str, date: str | None = None) -> CompositionApiResponse | None. pypi.org - Signature changed
pyrail.IRail.get_disturbances
Was async def get_disturbances(self, line_break_character: str | None = None) -> DisturbancesApiResponse | None; now async def get_disturbances(self) -> DisturbancesApiResponse | None. pypi.org - Signature changed
pyrail.IRail.get_liveboard
Was async def get_liveboard(self, station: str | None = None, station_id: str | None = None, date: str | None = None, time: str | None = None, arrdep: Literal['departure', 'arrival'] = 'departure', *, alerts: bool = False) ->... pypi.org - Signature changed
pyrail.IRail.get_vehicle
Was async def get_vehicle(self, vehicle_id: str, date: str | None = None, *, alerts: bool = False) -> VehicleApiResponse | None; now async def get_vehicle(self, vehicle_id: str, date: str | None = None) -> VehicleApiResponse | None. pypi.org - Signature changed
pyrail.irail.IRail.get_composition
Was async def get_composition(self, vehicle_id: str, data: str | None = None) -> CompositionApiResponse | None; now async def get_composition(self, vehicle_id: str, date: str | None = None) -> CompositionApiResponse | None. pypi.org - Signature changed
pyrail.irail.IRail.get_disturbances
Was async def get_disturbances(self, line_break_character: str | None = None) -> DisturbancesApiResponse | None; now async def get_disturbances(self) -> DisturbancesApiResponse | None. pypi.org - Signature changed
pyrail.irail.IRail.get_liveboard
Was async def get_liveboard(self, station: str | None = None, station_id: str | None = None, date: str | None = None, time: str | None = None, arrdep: Literal['departure', 'arrival'] = 'departure', *, alerts: bool = False) ->... pypi.org - Signature changed
pyrail.irail.IRail.get_vehicle
Was async def get_vehicle(self, vehicle_id: str, date: str | None = None, *, alerts: bool = False) -> VehicleApiResponse | None; now async def get_vehicle(self, vehicle_id: str, date: str | None = None) -> VehicleApiResponse | None. pypi.org - Signature changed
pyrail.models.ConnectionArrival.__init__
Was def __init__(self, delay: int, station: str, station_info: StationDetails, time: datetime, vehicle: str, vehicle_info: VehicleInfo, platform: str, platform_info: PlatformInfo, canceled: bool, direction: Direction, arrived: bool... pypi.org - Signature changed
pyrail.models.ConnectionArrival.departure_connection
Was departure_connection: str; now departure_connection: str | None. pypi.org - Signature changed
pyrail.models.ConnectionDeparture.__init__
Was def __init__(self, delay: int, station: str, station_info: StationDetails, time: datetime, vehicle: str, vehicle_info: VehicleInfo, platform: str, platform_info: PlatformInfo, canceled: bool, departure_connection: str, direction... pypi.org - Signature changed
pyrail.models.ConnectionDeparture.departure_connection
Was departure_connection: str; now departure_connection: str | None. pypi.org
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.