brittany-ferries/ferry/__init__.py

25 lines
429 B
Python
Raw Normal View History

2023-01-08 12:22:36 +00:00
from dataclasses import dataclass
@dataclass
class Vehicle:
"""What type of vehicle is going on the ferry."""
type: str
registration: str
height: int
length: int
ports = {
"PORTSMOUTH": "GBPME",
"PLYMOUTH": "GBPLY",
"POOLE": "GBPOO",
"CAEN": "FROUI",
"CHERBOURG": "FRCER",
"ST MALO": "FRSML",
2023-04-16 19:53:42 +01:00
"LE HAVRE": "FRLEH",
2023-01-08 12:22:36 +00:00
}
port_lookup = {code: name for name, code in ports.items()}