woob.capabilities.travel
¶
- class Station(id=None, name=None, url=None)[source]¶
Bases:
BaseObject
Describes a station.
- class Departure(id=None, _type=None, _time=None, url=None)[source]¶
Bases:
BaseObject
Describes a departure.
- Variables:
url – (
str
) urltype – (
str
) Type of traintime – (
time
,datetime
) Departure timedeparture_station – (
str
) Departure stationarrival_station – (
str
) Destination of the trainarrival_time – (
time
,datetime
) Arrival timelate – (
time
,datetime
) Optional late (default: 00:00:00)information – (
str
) Informationsplateform – (
str
) Where the train will leaveprice – (
Decimal
) Price of ticketcurrency – (
str
) Currency (default: None)
- class RoadStep(id='', url=NotLoaded, backend=None)[source]¶
Bases:
BaseObject
A step on a roadmap.
- exception RoadmapError[source]¶
Bases:
UserError
Raised when the roadmap is unable to be calculated.
- class RoadmapFilters(id='', url=None)[source]¶
Bases:
BaseObject
Filters to get a roadmap.
- Variables:
url – (
str
) urldeparture_time – (
date
,datetime
) Wanted departure timearrival_time – (
date
,datetime
) Wanted arrival time
- class CapTravel[source]¶
Bases:
Capability
Travel websites.