rcer-iot-client-pkg 0.1.1__py3-none-any.whl → 0.1.2__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.
- rcer_iot_client_pkg/services/epii/api.py +2 -1
- rcer_iot_client_pkg/services/epii/use_cases/update_thies_data.py +3 -5
- {rcer_iot_client_pkg-0.1.1.dist-info → rcer_iot_client_pkg-0.1.2.dist-info}/METADATA +1 -1
- {rcer_iot_client_pkg-0.1.1.dist-info → rcer_iot_client_pkg-0.1.2.dist-info}/RECORD +6 -6
- {rcer_iot_client_pkg-0.1.1.dist-info → rcer_iot_client_pkg-0.1.2.dist-info}/LICENSE +0 -0
- {rcer_iot_client_pkg-0.1.1.dist-info → rcer_iot_client_pkg-0.1.2.dist-info}/WHEEL +0 -0
@@ -1,7 +1,8 @@
|
|
1
1
|
from typing import Dict
|
2
2
|
|
3
|
-
from .controllers.update_thies_data import UpdateThiesDataController
|
4
3
|
from .controllers.types.update_thies_data_types import UpdateThiesDataControllerInput
|
4
|
+
from .controllers.update_thies_data import UpdateThiesDataController
|
5
|
+
|
5
6
|
|
6
7
|
class EpiiAPI:
|
7
8
|
def update_thies_data(
|
@@ -1,9 +1,7 @@
|
|
1
|
-
import os
|
2
|
-
|
3
1
|
from dotenv import load_dotenv
|
4
2
|
|
5
3
|
import rcer_iot_client_pkg.services.epii.use_cases.constants as c
|
6
|
-
from
|
4
|
+
from rcer_iot_client_pkg.general_types.error_types.api.update_thies_data_error_types import (
|
7
5
|
FetchCloudFileNamesError,
|
8
6
|
FetchThiesFileContentError,
|
9
7
|
ThiesUploadEmptyError,
|
@@ -124,11 +122,11 @@ class UpdateThiesDataUseCase:
|
|
124
122
|
|
125
123
|
async def execute(self) -> dict:
|
126
124
|
"""Synchronize data from the THIES Center to the cloud."""
|
127
|
-
try:
|
125
|
+
try:
|
128
126
|
thies_files = await self.fetch_thies_file_names()
|
129
127
|
except RuntimeError as error:
|
130
128
|
raise FtpClientError(error)
|
131
|
-
|
129
|
+
|
132
130
|
cloud_files = await self.fetch_cloud_file_names(folder_name="thies")
|
133
131
|
self.uploading = thies_files - cloud_files
|
134
132
|
if not self.uploading:
|
@@ -23,7 +23,7 @@ rcer_iot_client_pkg/libs/ftp_client/types/__init__.py,sha256=_HaW5-nKNvxfgf7tiGo
|
|
23
23
|
rcer_iot_client_pkg/libs/ftp_client/types/ftp_client_types.py,sha256=uNECnvKpc8z-WFE1C-EaYypDqprGmyG25sKDfTvONT4,276
|
24
24
|
rcer_iot_client_pkg/libs/zero_dependency/utils/datetime_utils.py,sha256=kD38wC087H3jwTIgrntBajE55cR2ioo_ftPUHiyGs_M,751
|
25
25
|
rcer_iot_client_pkg/services/epii/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
26
|
-
rcer_iot_client_pkg/services/epii/api.py,sha256=
|
26
|
+
rcer_iot_client_pkg/services/epii/api.py,sha256=H7yrUm89He-UVeSXJu7wWSHzTBeMHBOSeOkidi9FJig,696
|
27
27
|
rcer_iot_client_pkg/services/epii/controllers/__init__.py,sha256=mCdGgKGDgGxCtRoiZN9Rki-fTOyOuJWw9e7festpQYA,98
|
28
28
|
rcer_iot_client_pkg/services/epii/controllers/types/__init__.py,sha256=xzky-oTSojLNkWETp_k8a4dcXYvYSQY0VhWo23Yhb8U,195
|
29
29
|
rcer_iot_client_pkg/services/epii/controllers/types/update_thies_data_types.py,sha256=0zbNgjln7PXQRjFPAbiNV9n_cXV1H1-XtXMCC_VA4kE,336
|
@@ -31,10 +31,10 @@ rcer_iot_client_pkg/services/epii/controllers/update_thies_data.py,sha256=_TeHGW
|
|
31
31
|
rcer_iot_client_pkg/services/epii/use_cases/constants.py,sha256=fslc2XtEBs2bwVL1pfXXeDnJw35YLYz35ApXwatplH8,202
|
32
32
|
rcer_iot_client_pkg/services/epii/use_cases/types/__init__.py,sha256=c2RRUbjWq2PIqYW8DcxmYDg0gLZ74kmHh3BkeQCVii0,108
|
33
33
|
rcer_iot_client_pkg/services/epii/use_cases/types/update_thies_data_types.py,sha256=Rt76-f3tjJpg5VL8sraxXYVhXG_GHlnDBKotqCFuS8o,334
|
34
|
-
rcer_iot_client_pkg/services/epii/use_cases/update_thies_data.py,sha256
|
34
|
+
rcer_iot_client_pkg/services/epii/use_cases/update_thies_data.py,sha256=UNq-I6WR8MKA6wenWVGi21hTimeholU4xMG8dhI9Am4,5058
|
35
35
|
rcer_iot_client_pkg/services/epii/utils/__init__.py,sha256=cAhC0EiJkIF9WxXfst93v1AZ-pyYqbcn4y9_vav8gSg,96
|
36
36
|
rcer_iot_client_pkg/services/epii/utils/update_thies_data_utils.py,sha256=husJv2E2FXROBvFU7k9jpYfFBH-tVj4Cma_zfajpjk4,414
|
37
|
-
rcer_iot_client_pkg-0.1.
|
38
|
-
rcer_iot_client_pkg-0.1.
|
39
|
-
rcer_iot_client_pkg-0.1.
|
40
|
-
rcer_iot_client_pkg-0.1.
|
37
|
+
rcer_iot_client_pkg-0.1.2.dist-info/LICENSE,sha256=NWpf6b38xgBWPBo5HZsCbdfp9hZSliEbRqWQgm0fkOo,1076
|
38
|
+
rcer_iot_client_pkg-0.1.2.dist-info/METADATA,sha256=RqVUEmtDZDxP7BMmWcnICcGq8ryfgtxtSzTMLr9h4yE,2427
|
39
|
+
rcer_iot_client_pkg-0.1.2.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
40
|
+
rcer_iot_client_pkg-0.1.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|