rcer-iot-client-pkg 0.1.1__tar.gz → 0.3.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 (40) hide show
  1. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/PKG-INFO +1 -1
  2. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/pyproject.toml +1 -1
  3. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/src/rcer_iot_client_pkg/services/epii/api.py +2 -1
  4. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/src/rcer_iot_client_pkg/services/epii/use_cases/update_thies_data.py +3 -5
  5. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/LICENSE +0 -0
  6. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/README.md +0 -0
  7. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/src/rcer_iot_client_pkg/__init__.py +0 -0
  8. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/src/rcer_iot_client_pkg/general_types/__init__.py +0 -0
  9. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/src/rcer_iot_client_pkg/general_types/api/__init__.py +0 -0
  10. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/src/rcer_iot_client_pkg/general_types/api/update_thies_data_types.py +0 -0
  11. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/src/rcer_iot_client_pkg/general_types/error_types/__init__.py +0 -0
  12. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/src/rcer_iot_client_pkg/general_types/error_types/api/__init__.py +0 -0
  13. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/src/rcer_iot_client_pkg/general_types/error_types/api/update_thies_data_error_types.py +0 -0
  14. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/src/rcer_iot_client_pkg/general_types/error_types/common/__init__.py +0 -0
  15. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/src/rcer_iot_client_pkg/general_types/error_types/common/common_types.py +0 -0
  16. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/src/rcer_iot_client_pkg/libs/async_http_client/__init__.py +0 -0
  17. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/src/rcer_iot_client_pkg/libs/async_http_client/async_http_client.py +0 -0
  18. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/src/rcer_iot_client_pkg/libs/async_http_client/async_http_client_contract.py +0 -0
  19. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/src/rcer_iot_client_pkg/libs/async_http_client/clients/__init__.py +0 -0
  20. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/src/rcer_iot_client_pkg/libs/async_http_client/clients/aiohttp_client.py +0 -0
  21. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/src/rcer_iot_client_pkg/libs/async_http_client/types/__init__.py +0 -0
  22. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/src/rcer_iot_client_pkg/libs/async_http_client/types/async_http_client_types.py +0 -0
  23. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/src/rcer_iot_client_pkg/libs/ftp_client/__init__.py +0 -0
  24. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/src/rcer_iot_client_pkg/libs/ftp_client/clients/__init__.py +0 -0
  25. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/src/rcer_iot_client_pkg/libs/ftp_client/clients/aioftp_client.py +0 -0
  26. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/src/rcer_iot_client_pkg/libs/ftp_client/ftp_client.py +0 -0
  27. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/src/rcer_iot_client_pkg/libs/ftp_client/ftp_client_contract.py +0 -0
  28. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/src/rcer_iot_client_pkg/libs/ftp_client/types/__init__.py +0 -0
  29. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/src/rcer_iot_client_pkg/libs/ftp_client/types/ftp_client_types.py +0 -0
  30. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/src/rcer_iot_client_pkg/libs/zero_dependency/utils/datetime_utils.py +0 -0
  31. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/src/rcer_iot_client_pkg/services/epii/__init__.py +0 -0
  32. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/src/rcer_iot_client_pkg/services/epii/controllers/__init__.py +0 -0
  33. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/src/rcer_iot_client_pkg/services/epii/controllers/types/__init__.py +0 -0
  34. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/src/rcer_iot_client_pkg/services/epii/controllers/types/update_thies_data_types.py +0 -0
  35. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/src/rcer_iot_client_pkg/services/epii/controllers/update_thies_data.py +0 -0
  36. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/src/rcer_iot_client_pkg/services/epii/use_cases/constants.py +0 -0
  37. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/src/rcer_iot_client_pkg/services/epii/use_cases/types/__init__.py +0 -0
  38. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/src/rcer_iot_client_pkg/services/epii/use_cases/types/update_thies_data_types.py +0 -0
  39. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/src/rcer_iot_client_pkg/services/epii/utils/__init__.py +0 -0
  40. {rcer_iot_client_pkg-0.1.1 → rcer_iot_client_pkg-0.3.0}/src/rcer_iot_client_pkg/services/epii/utils/update_thies_data_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: rcer_iot_client_pkg
3
- Version: 0.1.1
3
+ Version: 0.3.0
4
4
  Summary: A client library for IoT projects in the RCER initiative
5
5
  License: MIT
6
6
  Author: pedropablozavalat
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "rcer_iot_client_pkg"
3
- version = "0.1.1"
3
+ version = "0.3.0"
4
4
  description = "A client library for IoT projects in the RCER initiative"
5
5
  authors = ["pedropablozavalat"]
6
6
  license = "MIT"
@@ -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 src.rcer_iot_client_pkg.general_types.error_types.api.update_thies_data_error_types import (
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: