carconnectivity-connector-seatcupra 0.1a1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,39 @@
1
+ """ User interface for the seatcupra connector in the Car Connectivity application. """
2
+ from __future__ import annotations
3
+ from typing import TYPE_CHECKING
4
+
5
+ import os
6
+
7
+ import flask
8
+
9
+ from carconnectivity_connectors.base.ui.connector_ui import BaseConnectorUI
10
+
11
+ if TYPE_CHECKING:
12
+ from typing import Optional, List, Dict, Union, Literal
13
+
14
+ from carconnectivity_connectors.base.connector import BaseConnector
15
+
16
+
17
+ class ConnectorUI(BaseConnectorUI):
18
+ """
19
+ A user interface class for the Seat/Cupra connector in the Car Connectivity application.
20
+ """
21
+ def __init__(self, connector: BaseConnector):
22
+ blueprint: Optional[flask.Blueprint] = flask.Blueprint(name='seatcupra', import_name='carconnectivity-connector-seatcupra', url_prefix='/seatcupra',
23
+ template_folder=os.path.dirname(__file__) + '/templates')
24
+ super().__init__(connector, blueprint=blueprint)
25
+
26
+ def get_nav_items(self) -> List[Dict[Literal['text', 'url', 'sublinks', 'divider'], Union[str, List]]]:
27
+ """
28
+ Generates a list of navigation items for the Seat/Cupra connector UI.
29
+ """
30
+ return super().get_nav_items()
31
+
32
+ def get_title(self) -> str:
33
+ """
34
+ Returns the title of the connector.
35
+
36
+ Returns:
37
+ str: The title of the connector, which is "Seat/Cupra".
38
+ """
39
+ return "Seat/Cupra"