tesla-api-sdk 1.0.0__tar.gz

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.
Files changed (125) hide show
  1. tesla_api_sdk-1.0.0/LICENSE +28 -0
  2. tesla_api_sdk-1.0.0/MANIFEST.in +2 -0
  3. tesla_api_sdk-1.0.0/PKG-INFO +145 -0
  4. tesla_api_sdk-1.0.0/README.md +128 -0
  5. tesla_api_sdk-1.0.0/pyproject.toml +25 -0
  6. tesla_api_sdk-1.0.0/setup.cfg +8 -0
  7. tesla_api_sdk-1.0.0/tesla_api_sdk.egg-info/PKG-INFO +145 -0
  8. tesla_api_sdk-1.0.0/tesla_api_sdk.egg-info/SOURCES.txt +124 -0
  9. tesla_api_sdk-1.0.0/tesla_api_sdk.egg-info/dependency_links.txt +1 -0
  10. tesla_api_sdk-1.0.0/tesla_api_sdk.egg-info/requires.txt +7 -0
  11. tesla_api_sdk-1.0.0/tesla_api_sdk.egg-info/top_level.txt +3 -0
  12. tesla_api_sdk-1.0.0/teslafleetmanagementapi/__init__.py +13 -0
  13. tesla_api_sdk-1.0.0/teslafleetmanagementapi/api_helper.py +19 -0
  14. tesla_api_sdk-1.0.0/teslafleetmanagementapi/configuration.py +270 -0
  15. tesla_api_sdk-1.0.0/teslafleetmanagementapi/controllers/__init__.py +11 -0
  16. tesla_api_sdk-1.0.0/teslafleetmanagementapi/controllers/base_controller.py +70 -0
  17. tesla_api_sdk-1.0.0/teslafleetmanagementapi/controllers/charging_controller.py +140 -0
  18. tesla_api_sdk-1.0.0/teslafleetmanagementapi/controllers/energy_controller.py +572 -0
  19. tesla_api_sdk-1.0.0/teslafleetmanagementapi/controllers/oauth_authorization_controller.py +165 -0
  20. tesla_api_sdk-1.0.0/teslafleetmanagementapi/controllers/partner_controller.py +181 -0
  21. tesla_api_sdk-1.0.0/teslafleetmanagementapi/controllers/user_controller.py +158 -0
  22. tesla_api_sdk-1.0.0/teslafleetmanagementapi/controllers/vehicles_controller.py +832 -0
  23. tesla_api_sdk-1.0.0/teslafleetmanagementapi/exceptions/__init__.py +6 -0
  24. tesla_api_sdk-1.0.0/teslafleetmanagementapi/exceptions/api_exception.py +36 -0
  25. tesla_api_sdk-1.0.0/teslafleetmanagementapi/exceptions/oauth_provider_exception.py +75 -0
  26. tesla_api_sdk-1.0.0/teslafleetmanagementapi/http/__init__.py +11 -0
  27. tesla_api_sdk-1.0.0/teslafleetmanagementapi/http/api_response.py +67 -0
  28. tesla_api_sdk-1.0.0/teslafleetmanagementapi/http/auth/__init__.py +6 -0
  29. tesla_api_sdk-1.0.0/teslafleetmanagementapi/http/auth/bearer_auth.py +103 -0
  30. tesla_api_sdk-1.0.0/teslafleetmanagementapi/http/auth/oauth_2.py +311 -0
  31. tesla_api_sdk-1.0.0/teslafleetmanagementapi/http/http_call_back.py +20 -0
  32. tesla_api_sdk-1.0.0/teslafleetmanagementapi/http/http_client_provider.py +23 -0
  33. tesla_api_sdk-1.0.0/teslafleetmanagementapi/http/http_method_enum.py +25 -0
  34. tesla_api_sdk-1.0.0/teslafleetmanagementapi/http/http_request.py +55 -0
  35. tesla_api_sdk-1.0.0/teslafleetmanagementapi/http/http_response.py +45 -0
  36. tesla_api_sdk-1.0.0/teslafleetmanagementapi/http/proxy_settings.py +50 -0
  37. tesla_api_sdk-1.0.0/teslafleetmanagementapi/logging/__init__.py +6 -0
  38. tesla_api_sdk-1.0.0/teslafleetmanagementapi/logging/configuration/__init__.py +5 -0
  39. tesla_api_sdk-1.0.0/teslafleetmanagementapi/logging/configuration/api_logging_configuration.py +398 -0
  40. tesla_api_sdk-1.0.0/teslafleetmanagementapi/logging/sdk_logger.py +28 -0
  41. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/__init__.py +85 -0
  42. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/api_1_dx_vehicles_options_response.py +110 -0
  43. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/api_1_dx_warranty_details_response.py +110 -0
  44. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/api_1_vehicles_mobile_enabled_response.py +109 -0
  45. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/api_1_vehicles_nearby_charging_sites_response.py +109 -0
  46. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/api_1_vehicles_response.py +162 -0
  47. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/api_1_vehicles_response_get_vehicle.py +109 -0
  48. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/api_1_vehicles_wake_up_response.py +109 -0
  49. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/backup_request.py +92 -0
  50. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/backup_response.py +95 -0
  51. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/calendar_history_response.py +96 -0
  52. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/charge_duration.py +92 -0
  53. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/charge_history.py +125 -0
  54. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/charge_history_response.py +96 -0
  55. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/charge_start_time.py +92 -0
  56. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/charging_dimension.py +128 -0
  57. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/charging_fee.py +641 -0
  58. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/charging_history_data.py +98 -0
  59. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/charging_history_item.py +336 -0
  60. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/charging_history_response.py +96 -0
  61. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/charging_invoice.py +151 -0
  62. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/charging_location.py +293 -0
  63. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/charging_period.py +136 -0
  64. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/charging_session.py +355 -0
  65. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/charging_sessions_data.py +182 -0
  66. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/charging_sessions_response.py +96 -0
  67. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/default_real_mode.py +45 -0
  68. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/driver.py +289 -0
  69. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/drivers_response.py +135 -0
  70. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/enterprise_payer_request.py +141 -0
  71. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/event.py +107 -0
  72. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/fleet_status_request.py +105 -0
  73. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/fleet_telemetry_error.py +118 -0
  74. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/fleet_telemetry_errors_response.py +96 -0
  75. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/fleet_telemetry_jws_request.py +128 -0
  76. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/generic_update_response.py +95 -0
  77. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/kind.py +45 -0
  78. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/kind_get_wall_connector_charging_history.py +42 -0
  79. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/live_status_response.py +96 -0
  80. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/location.py +128 -0
  81. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/location_1.py +128 -0
  82. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/me_response.py +95 -0
  83. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/mobile_enabled.py +128 -0
  84. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/oauth_provider_error.py +67 -0
  85. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/oauth_token.py +115 -0
  86. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/off_grid_vehicle_charging_reserve_request.py +95 -0
  87. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/operation_request.py +93 -0
  88. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/orders_response.py +111 -0
  89. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/pagination.py +225 -0
  90. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/price_component.py +151 -0
  91. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/products_response.py +128 -0
  92. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/public_key_response.py +96 -0
  93. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/region_response.py +96 -0
  94. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/register_partner_request.py +92 -0
  95. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/register_partner_response.py +96 -0
  96. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/response.py +105 -0
  97. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/response_1.py +92 -0
  98. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/response_2.py +95 -0
  99. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/response_3.py +164 -0
  100. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/response_api_1_dx_vehicles_options_response.py +112 -0
  101. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/response_api_1_dx_warranty_details_response.py +169 -0
  102. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/response_calendar_history_response.py +110 -0
  103. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/response_charge_history_response.py +98 -0
  104. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/response_fleet_telemetry_errors_response.py +98 -0
  105. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/response_live_status_response.py +310 -0
  106. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/response_me_response.py +131 -0
  107. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/response_orders_response.py +209 -0
  108. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/response_public_key_response.py +92 -0
  109. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/response_region_response.py +105 -0
  110. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/response_register_partner_response.py +331 -0
  111. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/signaling.py +118 -0
  112. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/simple_ok_response.py +105 -0
  113. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/site_info_response.py +105 -0
  114. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/storm_mode_request.py +92 -0
  115. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/tariff_element.py +136 -0
  116. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/tariffs.py +136 -0
  117. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/time_of_use_settings_request.py +95 -0
  118. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/total_cost.py +151 -0
  119. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/tou_settings.py +105 -0
  120. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/vehicle_base.py +266 -0
  121. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/vehicle_option.py +178 -0
  122. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/warranty_item.py +249 -0
  123. tesla_api_sdk-1.0.0/teslafleetmanagementapi/teslafleetmanagementapi_client.py +128 -0
  124. tesla_api_sdk-1.0.0/teslafleetmanagementapi/utilities/__init__.py +6 -0
  125. tesla_api_sdk-1.0.0/teslafleetmanagementapi/utilities/file_wrapper.py +45 -0
@@ -0,0 +1,28 @@
1
+ License:
2
+ ========
3
+ The MIT License (MIT)
4
+ http://opensource.org/licenses/MIT
5
+
6
+ Copyright (c) 2014 - 2026 APIMATIC Limited
7
+
8
+ Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ of this software and associated documentation files (the "Software"), to deal
10
+ in the Software without restriction, including without limitation the rights
11
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ copies of the Software, and to permit persons to whom the Software is
13
+ furnished to do so, subject to the following conditions:
14
+
15
+ The above copyright notice and this permission notice shall be included in
16
+ all copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
+ THE SOFTWARE.
25
+
26
+ Trade Mark:
27
+ ==========
28
+ APIMATIC is a trade mark for APIMATIC Limited
@@ -0,0 +1,2 @@
1
+ include LICENSE
2
+ include README.md
@@ -0,0 +1,145 @@
1
+ Metadata-Version: 2.4
2
+ Name: tesla-api-sdk
3
+ Version: 1.0.0
4
+ Summary: Tesla-API SDK
5
+ Author-email: Muhammad Rafay <muhammad.rafay@apimatic.io>
6
+ Project-URL: Documentation, https://developer.tesla.com/
7
+ Requires-Python: >=3.7
8
+ Description-Content-Type: text/markdown
9
+ License-File: LICENSE
10
+ Requires-Dist: apimatic-core>=0.2.24,~=0.2.0
11
+ Requires-Dist: apimatic-core-interfaces>=0.1.8,~=0.1.0
12
+ Requires-Dist: apimatic-requests-client-adapter>=0.1.10,~=0.1.0
13
+ Requires-Dist: python-dotenv<2.0,>=0.21
14
+ Provides-Extra: testutils
15
+ Requires-Dist: pytest>=7.2.2; extra == "testutils"
16
+ Dynamic: license-file
17
+
18
+
19
+ # Getting Started with Tesla Fleet Management API
20
+
21
+ ## Introduction
22
+
23
+ Unofficial OpenAPI specification for Tesla Fleet Management Charging endpoints.
24
+
25
+ ## Install the Package
26
+
27
+ The package is compatible with Python versions `3.7+`.
28
+ Install the package from PyPi using the following pip command:
29
+
30
+ ```bash
31
+ pip install tesla-api-sdk==1.0.0
32
+ ```
33
+
34
+ You can also view the package at:
35
+ https://pypi.python.org/pypi/tesla-api-sdk/1.0.0
36
+
37
+ ## Initialize the API Client
38
+
39
+ **_Note:_** Documentation for the client can be found [here.](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/client.md)
40
+
41
+ The following parameters are configurable for the API Client:
42
+
43
+ | Parameter | Type | Description |
44
+ | --- | --- | --- |
45
+ | environment | `Environment` | The API environment. <br> **Default: `Environment.PRODUCTION`** |
46
+ | http_client_instance | `Union[Session, HttpClientProvider]` | The Http Client passed from the sdk user for making requests |
47
+ | override_http_client_configuration | `bool` | The value which determines to override properties of the passed Http Client from the sdk user |
48
+ | http_call_back | `HttpCallBack` | The callback value that is invoked before and after an HTTP call is made to an endpoint |
49
+ | timeout | `float` | The value to use for connection timeout. <br> **Default: 60** |
50
+ | max_retries | `int` | The number of times to retry an endpoint call if it fails. <br> **Default: 0** |
51
+ | backoff_factor | `float` | A backoff factor to apply between attempts after the second try. <br> **Default: 2** |
52
+ | retry_statuses | `Array of int` | The http statuses on which retry is to be done. <br> **Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]** |
53
+ | retry_methods | `Array of string` | The http methods on which retry is to be done. <br> **Default: ["GET", "PUT"]** |
54
+ | proxy_settings | [`ProxySettings`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/proxy-settings.md) | Optional proxy configuration to route HTTP requests through a proxy server. |
55
+ | logging_configuration | [`LoggingConfiguration`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/logging-configuration.md) | The SDK logging configuration for API calls |
56
+ | bearer_auth_credentials | [`BearerAuthCredentials`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/auth/oauth-2-bearer-token.md) | The credential object for OAuth 2 Bearer token |
57
+ | oauth_2_credentials | [`Oauth2Credentials`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/auth/oauth-2-authorization-code-grant.md) | The credential object for OAuth 2 Authorization Code Grant |
58
+
59
+ The API client can be initialized as follows:
60
+
61
+ ### Code-Based Client Initialization
62
+
63
+ ```python
64
+ import logging
65
+
66
+ from teslafleetmanagementapi.configuration import Environment
67
+ from teslafleetmanagementapi.http.auth.bearer_auth import BearerAuthCredentials
68
+ from teslafleetmanagementapi.http.auth.oauth_2 import Oauth2Credentials
69
+ from teslafleetmanagementapi.logging.configuration.api_logging_configuration import LoggingConfiguration
70
+ from teslafleetmanagementapi.logging.configuration.api_logging_configuration import RequestLoggingConfiguration
71
+ from teslafleetmanagementapi.logging.configuration.api_logging_configuration import ResponseLoggingConfiguration
72
+ from teslafleetmanagementapi.teslafleetmanagementapi_client import TeslafleetmanagementapiClient
73
+
74
+ client = TeslafleetmanagementapiClient(
75
+ bearer_auth_credentials=BearerAuthCredentials(
76
+ access_token='AccessToken'
77
+ ),
78
+ oauth_2_credentials=Oauth2Credentials(
79
+ oauth_client_id='OAuthClientId',
80
+ oauth_client_secret='OAuthClientSecret',
81
+ oauth_redirect_uri='OAuthRedirectUri'
82
+ ),
83
+ environment=Environment.PRODUCTION,
84
+ logging_configuration=LoggingConfiguration(
85
+ log_level=logging.INFO,
86
+ request_logging_config=RequestLoggingConfiguration(
87
+ log_body=True
88
+ ),
89
+ response_logging_config=ResponseLoggingConfiguration(
90
+ log_headers=True
91
+ )
92
+ )
93
+ )
94
+ ```
95
+
96
+ ### Environment-Based Client Initialization
97
+
98
+ ```python
99
+ from teslafleetmanagementapi.teslafleetmanagementapi_client import TeslafleetmanagementapiClient
100
+
101
+ # Specify the path to your .env file if it’s located outside the project’s root directory.
102
+ client = TeslafleetmanagementapiClient.from_environment(dotenv_path='/path/to/.env')
103
+ ```
104
+
105
+ See the [Environment-Based Client Initialization](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/environment-based-client-initialization.md) section for details.
106
+
107
+ ## Authorization
108
+
109
+ This API uses the following authentication schemes.
110
+
111
+ * [`bearerAuth (OAuth 2 Bearer token)`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/auth/oauth-2-bearer-token.md)
112
+ * [`oauth2 (OAuth 2 Authorization Code Grant)`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/auth/oauth-2-authorization-code-grant.md)
113
+
114
+ ## List of APIs
115
+
116
+ * [Charging](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/controllers/charging.md)
117
+ * [Energy](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/controllers/energy.md)
118
+ * [Partner](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/controllers/partner.md)
119
+ * [User](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/controllers/user.md)
120
+ * [Vehicles](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/controllers/vehicles.md)
121
+
122
+ ## SDK Infrastructure
123
+
124
+ ### Configuration
125
+
126
+ * [ProxySettings](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/proxy-settings.md)
127
+ * [Environment-Based Client Initialization](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/environment-based-client-initialization.md)
128
+ * [AbstractLogger](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/abstract-logger.md)
129
+ * [LoggingConfiguration](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/logging-configuration.md)
130
+ * [RequestLoggingConfiguration](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/request-logging-configuration.md)
131
+ * [ResponseLoggingConfiguration](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/response-logging-configuration.md)
132
+
133
+ ### HTTP
134
+
135
+ * [HttpResponse](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/http-response.md)
136
+ * [HttpRequest](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/http-request.md)
137
+
138
+ ### Utilities
139
+
140
+ * [ApiResponse](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/api-response.md)
141
+ * [ApiHelper](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/api-helper.md)
142
+ * [HttpDateTime](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/http-date-time.md)
143
+ * [RFC3339DateTime](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/rfc3339-date-time.md)
144
+ * [UnixDateTime](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/unix-date-time.md)
145
+
@@ -0,0 +1,128 @@
1
+
2
+ # Getting Started with Tesla Fleet Management API
3
+
4
+ ## Introduction
5
+
6
+ Unofficial OpenAPI specification for Tesla Fleet Management Charging endpoints.
7
+
8
+ ## Install the Package
9
+
10
+ The package is compatible with Python versions `3.7+`.
11
+ Install the package from PyPi using the following pip command:
12
+
13
+ ```bash
14
+ pip install tesla-api-sdk==1.0.0
15
+ ```
16
+
17
+ You can also view the package at:
18
+ https://pypi.python.org/pypi/tesla-api-sdk/1.0.0
19
+
20
+ ## Initialize the API Client
21
+
22
+ **_Note:_** Documentation for the client can be found [here.](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/client.md)
23
+
24
+ The following parameters are configurable for the API Client:
25
+
26
+ | Parameter | Type | Description |
27
+ | --- | --- | --- |
28
+ | environment | `Environment` | The API environment. <br> **Default: `Environment.PRODUCTION`** |
29
+ | http_client_instance | `Union[Session, HttpClientProvider]` | The Http Client passed from the sdk user for making requests |
30
+ | override_http_client_configuration | `bool` | The value which determines to override properties of the passed Http Client from the sdk user |
31
+ | http_call_back | `HttpCallBack` | The callback value that is invoked before and after an HTTP call is made to an endpoint |
32
+ | timeout | `float` | The value to use for connection timeout. <br> **Default: 60** |
33
+ | max_retries | `int` | The number of times to retry an endpoint call if it fails. <br> **Default: 0** |
34
+ | backoff_factor | `float` | A backoff factor to apply between attempts after the second try. <br> **Default: 2** |
35
+ | retry_statuses | `Array of int` | The http statuses on which retry is to be done. <br> **Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]** |
36
+ | retry_methods | `Array of string` | The http methods on which retry is to be done. <br> **Default: ["GET", "PUT"]** |
37
+ | proxy_settings | [`ProxySettings`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/proxy-settings.md) | Optional proxy configuration to route HTTP requests through a proxy server. |
38
+ | logging_configuration | [`LoggingConfiguration`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/logging-configuration.md) | The SDK logging configuration for API calls |
39
+ | bearer_auth_credentials | [`BearerAuthCredentials`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/auth/oauth-2-bearer-token.md) | The credential object for OAuth 2 Bearer token |
40
+ | oauth_2_credentials | [`Oauth2Credentials`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/auth/oauth-2-authorization-code-grant.md) | The credential object for OAuth 2 Authorization Code Grant |
41
+
42
+ The API client can be initialized as follows:
43
+
44
+ ### Code-Based Client Initialization
45
+
46
+ ```python
47
+ import logging
48
+
49
+ from teslafleetmanagementapi.configuration import Environment
50
+ from teslafleetmanagementapi.http.auth.bearer_auth import BearerAuthCredentials
51
+ from teslafleetmanagementapi.http.auth.oauth_2 import Oauth2Credentials
52
+ from teslafleetmanagementapi.logging.configuration.api_logging_configuration import LoggingConfiguration
53
+ from teslafleetmanagementapi.logging.configuration.api_logging_configuration import RequestLoggingConfiguration
54
+ from teslafleetmanagementapi.logging.configuration.api_logging_configuration import ResponseLoggingConfiguration
55
+ from teslafleetmanagementapi.teslafleetmanagementapi_client import TeslafleetmanagementapiClient
56
+
57
+ client = TeslafleetmanagementapiClient(
58
+ bearer_auth_credentials=BearerAuthCredentials(
59
+ access_token='AccessToken'
60
+ ),
61
+ oauth_2_credentials=Oauth2Credentials(
62
+ oauth_client_id='OAuthClientId',
63
+ oauth_client_secret='OAuthClientSecret',
64
+ oauth_redirect_uri='OAuthRedirectUri'
65
+ ),
66
+ environment=Environment.PRODUCTION,
67
+ logging_configuration=LoggingConfiguration(
68
+ log_level=logging.INFO,
69
+ request_logging_config=RequestLoggingConfiguration(
70
+ log_body=True
71
+ ),
72
+ response_logging_config=ResponseLoggingConfiguration(
73
+ log_headers=True
74
+ )
75
+ )
76
+ )
77
+ ```
78
+
79
+ ### Environment-Based Client Initialization
80
+
81
+ ```python
82
+ from teslafleetmanagementapi.teslafleetmanagementapi_client import TeslafleetmanagementapiClient
83
+
84
+ # Specify the path to your .env file if it’s located outside the project’s root directory.
85
+ client = TeslafleetmanagementapiClient.from_environment(dotenv_path='/path/to/.env')
86
+ ```
87
+
88
+ See the [Environment-Based Client Initialization](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/environment-based-client-initialization.md) section for details.
89
+
90
+ ## Authorization
91
+
92
+ This API uses the following authentication schemes.
93
+
94
+ * [`bearerAuth (OAuth 2 Bearer token)`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/auth/oauth-2-bearer-token.md)
95
+ * [`oauth2 (OAuth 2 Authorization Code Grant)`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/auth/oauth-2-authorization-code-grant.md)
96
+
97
+ ## List of APIs
98
+
99
+ * [Charging](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/controllers/charging.md)
100
+ * [Energy](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/controllers/energy.md)
101
+ * [Partner](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/controllers/partner.md)
102
+ * [User](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/controllers/user.md)
103
+ * [Vehicles](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/controllers/vehicles.md)
104
+
105
+ ## SDK Infrastructure
106
+
107
+ ### Configuration
108
+
109
+ * [ProxySettings](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/proxy-settings.md)
110
+ * [Environment-Based Client Initialization](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/environment-based-client-initialization.md)
111
+ * [AbstractLogger](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/abstract-logger.md)
112
+ * [LoggingConfiguration](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/logging-configuration.md)
113
+ * [RequestLoggingConfiguration](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/request-logging-configuration.md)
114
+ * [ResponseLoggingConfiguration](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/response-logging-configuration.md)
115
+
116
+ ### HTTP
117
+
118
+ * [HttpResponse](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/http-response.md)
119
+ * [HttpRequest](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/http-request.md)
120
+
121
+ ### Utilities
122
+
123
+ * [ApiResponse](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/api-response.md)
124
+ * [ApiHelper](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/api-helper.md)
125
+ * [HttpDateTime](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/http-date-time.md)
126
+ * [RFC3339DateTime](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/rfc3339-date-time.md)
127
+ * [UnixDateTime](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/unix-date-time.md)
128
+
@@ -0,0 +1,25 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0"]
3
+ build-backend = "setuptools.build_meta"
4
+ [project]
5
+ name = "tesla-api-sdk"
6
+ description = "Tesla-API SDK"
7
+ version = "1.0.0"
8
+ readme = "README.md"
9
+ keywords = []
10
+ dependencies = ["apimatic-core~=0.2.0, >= 0.2.24", "apimatic-core-interfaces~=0.1.0, >= 0.1.8", "apimatic-requests-client-adapter~=0.1.0, >= 0.1.10", "python-dotenv>=0.21, <2.0"]
11
+ classifiers = []
12
+ requires-python = ">=3.7"
13
+ [[project.authors]]
14
+ name = "Muhammad Rafay"
15
+ email = "muhammad.rafay@apimatic.io"
16
+
17
+ [project.urls]
18
+ Documentation = "https://developer.tesla.com/"
19
+ [project.optional-dependencies]
20
+ testutils = ["pytest>=7.2.2"]
21
+ [tool]
22
+ [tool.setuptools]
23
+ [tool.setuptools.packages]
24
+ [tool.setuptools.packages.find]
25
+ exclude = ["tests", "tests.*"]
@@ -0,0 +1,8 @@
1
+ [meta-data]
2
+ license_files =
3
+ LICENSE
4
+
5
+ [egg_info]
6
+ tag_build =
7
+ tag_date = 0
8
+
@@ -0,0 +1,145 @@
1
+ Metadata-Version: 2.4
2
+ Name: tesla-api-sdk
3
+ Version: 1.0.0
4
+ Summary: Tesla-API SDK
5
+ Author-email: Muhammad Rafay <muhammad.rafay@apimatic.io>
6
+ Project-URL: Documentation, https://developer.tesla.com/
7
+ Requires-Python: >=3.7
8
+ Description-Content-Type: text/markdown
9
+ License-File: LICENSE
10
+ Requires-Dist: apimatic-core>=0.2.24,~=0.2.0
11
+ Requires-Dist: apimatic-core-interfaces>=0.1.8,~=0.1.0
12
+ Requires-Dist: apimatic-requests-client-adapter>=0.1.10,~=0.1.0
13
+ Requires-Dist: python-dotenv<2.0,>=0.21
14
+ Provides-Extra: testutils
15
+ Requires-Dist: pytest>=7.2.2; extra == "testutils"
16
+ Dynamic: license-file
17
+
18
+
19
+ # Getting Started with Tesla Fleet Management API
20
+
21
+ ## Introduction
22
+
23
+ Unofficial OpenAPI specification for Tesla Fleet Management Charging endpoints.
24
+
25
+ ## Install the Package
26
+
27
+ The package is compatible with Python versions `3.7+`.
28
+ Install the package from PyPi using the following pip command:
29
+
30
+ ```bash
31
+ pip install tesla-api-sdk==1.0.0
32
+ ```
33
+
34
+ You can also view the package at:
35
+ https://pypi.python.org/pypi/tesla-api-sdk/1.0.0
36
+
37
+ ## Initialize the API Client
38
+
39
+ **_Note:_** Documentation for the client can be found [here.](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/client.md)
40
+
41
+ The following parameters are configurable for the API Client:
42
+
43
+ | Parameter | Type | Description |
44
+ | --- | --- | --- |
45
+ | environment | `Environment` | The API environment. <br> **Default: `Environment.PRODUCTION`** |
46
+ | http_client_instance | `Union[Session, HttpClientProvider]` | The Http Client passed from the sdk user for making requests |
47
+ | override_http_client_configuration | `bool` | The value which determines to override properties of the passed Http Client from the sdk user |
48
+ | http_call_back | `HttpCallBack` | The callback value that is invoked before and after an HTTP call is made to an endpoint |
49
+ | timeout | `float` | The value to use for connection timeout. <br> **Default: 60** |
50
+ | max_retries | `int` | The number of times to retry an endpoint call if it fails. <br> **Default: 0** |
51
+ | backoff_factor | `float` | A backoff factor to apply between attempts after the second try. <br> **Default: 2** |
52
+ | retry_statuses | `Array of int` | The http statuses on which retry is to be done. <br> **Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]** |
53
+ | retry_methods | `Array of string` | The http methods on which retry is to be done. <br> **Default: ["GET", "PUT"]** |
54
+ | proxy_settings | [`ProxySettings`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/proxy-settings.md) | Optional proxy configuration to route HTTP requests through a proxy server. |
55
+ | logging_configuration | [`LoggingConfiguration`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/logging-configuration.md) | The SDK logging configuration for API calls |
56
+ | bearer_auth_credentials | [`BearerAuthCredentials`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/auth/oauth-2-bearer-token.md) | The credential object for OAuth 2 Bearer token |
57
+ | oauth_2_credentials | [`Oauth2Credentials`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/auth/oauth-2-authorization-code-grant.md) | The credential object for OAuth 2 Authorization Code Grant |
58
+
59
+ The API client can be initialized as follows:
60
+
61
+ ### Code-Based Client Initialization
62
+
63
+ ```python
64
+ import logging
65
+
66
+ from teslafleetmanagementapi.configuration import Environment
67
+ from teslafleetmanagementapi.http.auth.bearer_auth import BearerAuthCredentials
68
+ from teslafleetmanagementapi.http.auth.oauth_2 import Oauth2Credentials
69
+ from teslafleetmanagementapi.logging.configuration.api_logging_configuration import LoggingConfiguration
70
+ from teslafleetmanagementapi.logging.configuration.api_logging_configuration import RequestLoggingConfiguration
71
+ from teslafleetmanagementapi.logging.configuration.api_logging_configuration import ResponseLoggingConfiguration
72
+ from teslafleetmanagementapi.teslafleetmanagementapi_client import TeslafleetmanagementapiClient
73
+
74
+ client = TeslafleetmanagementapiClient(
75
+ bearer_auth_credentials=BearerAuthCredentials(
76
+ access_token='AccessToken'
77
+ ),
78
+ oauth_2_credentials=Oauth2Credentials(
79
+ oauth_client_id='OAuthClientId',
80
+ oauth_client_secret='OAuthClientSecret',
81
+ oauth_redirect_uri='OAuthRedirectUri'
82
+ ),
83
+ environment=Environment.PRODUCTION,
84
+ logging_configuration=LoggingConfiguration(
85
+ log_level=logging.INFO,
86
+ request_logging_config=RequestLoggingConfiguration(
87
+ log_body=True
88
+ ),
89
+ response_logging_config=ResponseLoggingConfiguration(
90
+ log_headers=True
91
+ )
92
+ )
93
+ )
94
+ ```
95
+
96
+ ### Environment-Based Client Initialization
97
+
98
+ ```python
99
+ from teslafleetmanagementapi.teslafleetmanagementapi_client import TeslafleetmanagementapiClient
100
+
101
+ # Specify the path to your .env file if it’s located outside the project’s root directory.
102
+ client = TeslafleetmanagementapiClient.from_environment(dotenv_path='/path/to/.env')
103
+ ```
104
+
105
+ See the [Environment-Based Client Initialization](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/environment-based-client-initialization.md) section for details.
106
+
107
+ ## Authorization
108
+
109
+ This API uses the following authentication schemes.
110
+
111
+ * [`bearerAuth (OAuth 2 Bearer token)`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/auth/oauth-2-bearer-token.md)
112
+ * [`oauth2 (OAuth 2 Authorization Code Grant)`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/auth/oauth-2-authorization-code-grant.md)
113
+
114
+ ## List of APIs
115
+
116
+ * [Charging](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/controllers/charging.md)
117
+ * [Energy](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/controllers/energy.md)
118
+ * [Partner](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/controllers/partner.md)
119
+ * [User](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/controllers/user.md)
120
+ * [Vehicles](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/controllers/vehicles.md)
121
+
122
+ ## SDK Infrastructure
123
+
124
+ ### Configuration
125
+
126
+ * [ProxySettings](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/proxy-settings.md)
127
+ * [Environment-Based Client Initialization](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/environment-based-client-initialization.md)
128
+ * [AbstractLogger](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/abstract-logger.md)
129
+ * [LoggingConfiguration](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/logging-configuration.md)
130
+ * [RequestLoggingConfiguration](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/request-logging-configuration.md)
131
+ * [ResponseLoggingConfiguration](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/response-logging-configuration.md)
132
+
133
+ ### HTTP
134
+
135
+ * [HttpResponse](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/http-response.md)
136
+ * [HttpRequest](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/http-request.md)
137
+
138
+ ### Utilities
139
+
140
+ * [ApiResponse](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/api-response.md)
141
+ * [ApiHelper](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/api-helper.md)
142
+ * [HttpDateTime](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/http-date-time.md)
143
+ * [RFC3339DateTime](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/rfc3339-date-time.md)
144
+ * [UnixDateTime](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/unix-date-time.md)
145
+
@@ -0,0 +1,124 @@
1
+ LICENSE
2
+ MANIFEST.in
3
+ README.md
4
+ pyproject.toml
5
+ setup.cfg
6
+ tesla_api_sdk.egg-info/PKG-INFO
7
+ tesla_api_sdk.egg-info/SOURCES.txt
8
+ tesla_api_sdk.egg-info/dependency_links.txt
9
+ tesla_api_sdk.egg-info/requires.txt
10
+ tesla_api_sdk.egg-info/top_level.txt
11
+ teslafleetmanagementapi/__init__.py
12
+ teslafleetmanagementapi/api_helper.py
13
+ teslafleetmanagementapi/configuration.py
14
+ teslafleetmanagementapi/teslafleetmanagementapi_client.py
15
+ teslafleetmanagementapi/controllers/__init__.py
16
+ teslafleetmanagementapi/controllers/base_controller.py
17
+ teslafleetmanagementapi/controllers/charging_controller.py
18
+ teslafleetmanagementapi/controllers/energy_controller.py
19
+ teslafleetmanagementapi/controllers/oauth_authorization_controller.py
20
+ teslafleetmanagementapi/controllers/partner_controller.py
21
+ teslafleetmanagementapi/controllers/user_controller.py
22
+ teslafleetmanagementapi/controllers/vehicles_controller.py
23
+ teslafleetmanagementapi/exceptions/__init__.py
24
+ teslafleetmanagementapi/exceptions/api_exception.py
25
+ teslafleetmanagementapi/exceptions/oauth_provider_exception.py
26
+ teslafleetmanagementapi/http/__init__.py
27
+ teslafleetmanagementapi/http/api_response.py
28
+ teslafleetmanagementapi/http/http_call_back.py
29
+ teslafleetmanagementapi/http/http_client_provider.py
30
+ teslafleetmanagementapi/http/http_method_enum.py
31
+ teslafleetmanagementapi/http/http_request.py
32
+ teslafleetmanagementapi/http/http_response.py
33
+ teslafleetmanagementapi/http/proxy_settings.py
34
+ teslafleetmanagementapi/http/auth/__init__.py
35
+ teslafleetmanagementapi/http/auth/bearer_auth.py
36
+ teslafleetmanagementapi/http/auth/oauth_2.py
37
+ teslafleetmanagementapi/logging/__init__.py
38
+ teslafleetmanagementapi/logging/sdk_logger.py
39
+ teslafleetmanagementapi/logging/configuration/__init__.py
40
+ teslafleetmanagementapi/logging/configuration/api_logging_configuration.py
41
+ teslafleetmanagementapi/models/__init__.py
42
+ teslafleetmanagementapi/models/api_1_dx_vehicles_options_response.py
43
+ teslafleetmanagementapi/models/api_1_dx_warranty_details_response.py
44
+ teslafleetmanagementapi/models/api_1_vehicles_mobile_enabled_response.py
45
+ teslafleetmanagementapi/models/api_1_vehicles_nearby_charging_sites_response.py
46
+ teslafleetmanagementapi/models/api_1_vehicles_response.py
47
+ teslafleetmanagementapi/models/api_1_vehicles_response_get_vehicle.py
48
+ teslafleetmanagementapi/models/api_1_vehicles_wake_up_response.py
49
+ teslafleetmanagementapi/models/backup_request.py
50
+ teslafleetmanagementapi/models/backup_response.py
51
+ teslafleetmanagementapi/models/calendar_history_response.py
52
+ teslafleetmanagementapi/models/charge_duration.py
53
+ teslafleetmanagementapi/models/charge_history.py
54
+ teslafleetmanagementapi/models/charge_history_response.py
55
+ teslafleetmanagementapi/models/charge_start_time.py
56
+ teslafleetmanagementapi/models/charging_dimension.py
57
+ teslafleetmanagementapi/models/charging_fee.py
58
+ teslafleetmanagementapi/models/charging_history_data.py
59
+ teslafleetmanagementapi/models/charging_history_item.py
60
+ teslafleetmanagementapi/models/charging_history_response.py
61
+ teslafleetmanagementapi/models/charging_invoice.py
62
+ teslafleetmanagementapi/models/charging_location.py
63
+ teslafleetmanagementapi/models/charging_period.py
64
+ teslafleetmanagementapi/models/charging_session.py
65
+ teslafleetmanagementapi/models/charging_sessions_data.py
66
+ teslafleetmanagementapi/models/charging_sessions_response.py
67
+ teslafleetmanagementapi/models/default_real_mode.py
68
+ teslafleetmanagementapi/models/driver.py
69
+ teslafleetmanagementapi/models/drivers_response.py
70
+ teslafleetmanagementapi/models/enterprise_payer_request.py
71
+ teslafleetmanagementapi/models/event.py
72
+ teslafleetmanagementapi/models/fleet_status_request.py
73
+ teslafleetmanagementapi/models/fleet_telemetry_error.py
74
+ teslafleetmanagementapi/models/fleet_telemetry_errors_response.py
75
+ teslafleetmanagementapi/models/fleet_telemetry_jws_request.py
76
+ teslafleetmanagementapi/models/generic_update_response.py
77
+ teslafleetmanagementapi/models/kind.py
78
+ teslafleetmanagementapi/models/kind_get_wall_connector_charging_history.py
79
+ teslafleetmanagementapi/models/live_status_response.py
80
+ teslafleetmanagementapi/models/location.py
81
+ teslafleetmanagementapi/models/location_1.py
82
+ teslafleetmanagementapi/models/me_response.py
83
+ teslafleetmanagementapi/models/mobile_enabled.py
84
+ teslafleetmanagementapi/models/oauth_provider_error.py
85
+ teslafleetmanagementapi/models/oauth_token.py
86
+ teslafleetmanagementapi/models/off_grid_vehicle_charging_reserve_request.py
87
+ teslafleetmanagementapi/models/operation_request.py
88
+ teslafleetmanagementapi/models/orders_response.py
89
+ teslafleetmanagementapi/models/pagination.py
90
+ teslafleetmanagementapi/models/price_component.py
91
+ teslafleetmanagementapi/models/products_response.py
92
+ teslafleetmanagementapi/models/public_key_response.py
93
+ teslafleetmanagementapi/models/region_response.py
94
+ teslafleetmanagementapi/models/register_partner_request.py
95
+ teslafleetmanagementapi/models/register_partner_response.py
96
+ teslafleetmanagementapi/models/response.py
97
+ teslafleetmanagementapi/models/response_1.py
98
+ teslafleetmanagementapi/models/response_2.py
99
+ teslafleetmanagementapi/models/response_3.py
100
+ teslafleetmanagementapi/models/response_api_1_dx_vehicles_options_response.py
101
+ teslafleetmanagementapi/models/response_api_1_dx_warranty_details_response.py
102
+ teslafleetmanagementapi/models/response_calendar_history_response.py
103
+ teslafleetmanagementapi/models/response_charge_history_response.py
104
+ teslafleetmanagementapi/models/response_fleet_telemetry_errors_response.py
105
+ teslafleetmanagementapi/models/response_live_status_response.py
106
+ teslafleetmanagementapi/models/response_me_response.py
107
+ teslafleetmanagementapi/models/response_orders_response.py
108
+ teslafleetmanagementapi/models/response_public_key_response.py
109
+ teslafleetmanagementapi/models/response_region_response.py
110
+ teslafleetmanagementapi/models/response_register_partner_response.py
111
+ teslafleetmanagementapi/models/signaling.py
112
+ teslafleetmanagementapi/models/simple_ok_response.py
113
+ teslafleetmanagementapi/models/site_info_response.py
114
+ teslafleetmanagementapi/models/storm_mode_request.py
115
+ teslafleetmanagementapi/models/tariff_element.py
116
+ teslafleetmanagementapi/models/tariffs.py
117
+ teslafleetmanagementapi/models/time_of_use_settings_request.py
118
+ teslafleetmanagementapi/models/total_cost.py
119
+ teslafleetmanagementapi/models/tou_settings.py
120
+ teslafleetmanagementapi/models/vehicle_base.py
121
+ teslafleetmanagementapi/models/vehicle_option.py
122
+ teslafleetmanagementapi/models/warranty_item.py
123
+ teslafleetmanagementapi/utilities/__init__.py
124
+ teslafleetmanagementapi/utilities/file_wrapper.py
@@ -0,0 +1,7 @@
1
+ apimatic-core>=0.2.24,~=0.2.0
2
+ apimatic-core-interfaces>=0.1.8,~=0.1.0
3
+ apimatic-requests-client-adapter>=0.1.10,~=0.1.0
4
+ python-dotenv<2.0,>=0.21
5
+
6
+ [testutils]
7
+ pytest>=7.2.2
@@ -0,0 +1,3 @@
1
+ dist
2
+ doc
3
+ teslafleetmanagementapi
@@ -0,0 +1,13 @@
1
+ # ruff: noqa: D104 | Missing docstring in public package
2
+ # ruff: noqa: RUF022 | `__all__` is not sorted
3
+ __all__ = [
4
+ "api_helper",
5
+ "configuration",
6
+ "controllers",
7
+ "exceptions",
8
+ "http",
9
+ "logging",
10
+ "models",
11
+ "teslafleetmanagementapi_client",
12
+ "utilities",
13
+ ]