π pyRail v0.4.0: Streamlined and Smarter!
β¨ What's New
- Improved Documentation & Code Clarity:
Enhanced theiRail
class documentation and refactored code for better readability and maintainability. #45 - README Updates:
Improved language selection and session management sections for a better user experience. #42 - Dependency Updates:
Bumpedruff
from 0.9.2 to 0.9.3 for the latest fixes and improvements. #44
β οΈ Breaking Changes
-
Data Models:
- Introduced
OccupancyName
enum, replacing string types for occupancy names. - Updated data structures to replace wrapper classes with direct lists:
LiveboardDepartures
βlist[LiveboardDeparture]
LiveboardArrivals
βlist[LiveboardArrival]
ConnectionStops
βlist[ConnectionStop]
CompositionSegments
βlist[Segment]
CompositionUnits
βlist[Unit]
DescriptionLinks
βlist[DescriptionLink]
- Introduced
-
Response Structure:
- Simplified nested responses for easier access:
LiveboardApiResponse.departures
andarrivals
are now optional (None
).- Removed nested access for lists (e.g.,
.departure
and.arrival
).
- Simplified nested responses for easier access:
-
Type Hint Changes:
- Modernized type hints throughout the codebase:
Dict
βdict
List
βlist
- Modernized type hints throughout the codebase:
Full Changelog: v0.3.0...v0.4.0