---
title: "pyrail 0.7.0 Breaking Changes on PyPI | Since.dev"
description: "What each pyrail release removed, renamed or changed: 25 breaking changes in 1 version on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/pyrail
last_updated: 2026-12-04
---

# 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

Latest version `0.7.0`, released November 25, 2026. [Source repository](https://github.com/tjorim/pyrail)

Packages on PyPI run on Python. [Python end of life dates](https://since.dev/calendar/python.md).

## pyrail 0.7.0 breaking changes

pyrail 0.7.0, released November 25, 2026: 25 breaking changes.

- **Removed** `get_composition.data`  

Passing data to get_composition now raises TypeError. Stop passing it. [github.com](https://github.com/tjorim/pyrail/releases/tag/v0.7.0)
- **Removed** `get_disturbances.line_break_character`  

Passing line_break_character to get_disturbances now raises TypeError. Stop passing it. [github.com](https://github.com/tjorim/pyrail/releases/tag/v0.7.0)
- **Removed** `get_liveboard.alerts`  

Passing alerts to get_liveboard now raises TypeError. Stop passing it. [github.com](https://github.com/tjorim/pyrail/releases/tag/v0.7.0)
- **Removed** `get_vehicle.alerts`  

Passing alerts to get_vehicle now raises TypeError. Stop passing it. [github.com](https://github.com/tjorim/pyrail/releases/tag/v0.7.0)
- **Behavior changed**  

Empty, overlong or control-character station names and vehicle ids now raise ValueError before any request is sent. [github.com](https://github.com/tjorim/pyrail/releases/tag/v0.7.0)
- **Behavior changed**  

A longitude outside ±180 or a latitude outside ±90 now fails with InvalidResponseError. [github.com](https://github.com/tjorim/pyrail/releases/tag/v0.7.0)
- **Behavior changed** `InvalidRequestError`  

The message attribute now carries the message from a V1 error body instead of the raw JSON. [github.com](https://github.com/tjorim/pyrail/releases/tag/v0.7.0)
- **Signature changed** `ConnectionDeparture`  

Code that builds ConnectionDeparture by position must reorder its arguments. Keyword use and parsing are unaffected. [github.com](https://github.com/tjorim/pyrail/releases/tag/v0.7.0)
- **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](https://github.com/tjorim/pyrail/releases/tag/v0.7.0)
- **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](https://pypi.org/project/pyrail/0.7.0/)
- **Signature changed** `pyrail.ConnectionArrival.departure_connection`  

Was departure_connection: str; now departure_connection: str | None. [pypi.org](https://pypi.org/project/pyrail/0.7.0/)
- **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](https://pypi.org/project/pyrail/0.7.0/)
- **Signature changed** `pyrail.ConnectionDeparture.departure_connection`  

Was departure_connection: str; now departure_connection: str | None. [pypi.org](https://pypi.org/project/pyrail/0.7.0/)
- **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](https://pypi.org/project/pyrail/0.7.0/)
- **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](https://pypi.org/project/pyrail/0.7.0/)
- **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](https://pypi.org/project/pyrail/0.7.0/)
- **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](https://pypi.org/project/pyrail/0.7.0/)
- **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](https://pypi.org/project/pyrail/0.7.0/)
- **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](https://pypi.org/project/pyrail/0.7.0/)
- **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](https://pypi.org/project/pyrail/0.7.0/)
- **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](https://pypi.org/project/pyrail/0.7.0/)
- **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](https://pypi.org/project/pyrail/0.7.0/)
- **Signature changed** `pyrail.models.ConnectionArrival.departure_connection`  

Was departure_connection: str; now departure_connection: str | None. [pypi.org](https://pypi.org/project/pyrail/0.7.0/)
- **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](https://pypi.org/project/pyrail/0.7.0/)
- **Signature changed** `pyrail.models.ConnectionDeparture.departure_connection`  

Was departure_connection: str; now departure_connection: str | None. [pypi.org](https://pypi.org/project/pyrail/0.7.0/)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
