rcer-iot-client-pkg 0.5.0__py3-none-any.whl → 0.6.0__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.
@@ -4,5 +4,6 @@ from importlib.metadata import version
4
4
  __version__ = version("rcer_iot_client_pkg")
5
5
 
6
6
  from .services.epii.api import EpiiAPI
7
+ from .general_types.api.update_thies_data_types import EpiiAPIConfig
7
8
 
8
- __all__ = ["EpiiAPI"]
9
+ __all__ = ["EpiiAPI", "EpiiAPIConfig"]
@@ -0,0 +1,3 @@
1
+ from .update_thies_data_types import EpiiAPIConfig
2
+
3
+ __all__ = ["EpiiAPIConfig"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: rcer_iot_client_pkg
3
- Version: 0.5.0
3
+ Version: 0.6.0
4
4
  Summary: A client library for IoT projects in the RCER initiative
5
5
  License: MIT
6
6
  Author: pedropablozavalat
@@ -45,22 +45,29 @@ api_client = EpiiAPI()
45
45
  The library provides a method to synchronize THIES Data Logger files with the RCER SharePoint client. This method updates the folder containing binary files with meteorological data:
46
46
 
47
47
  ```python
48
+ from rcer_iot_client_pkg import EpiiAPIConfig
48
49
  import asyncio
49
50
 
50
51
  async def update_thies_data():
51
- response = await api_client.update_thies_data(
52
- ftp_port=PORT,
53
- ftp_host=LOCAL_HOST,
54
- ftp_password=PASSWORD,
55
- ftp_user=USER
52
+ config = EpiiAPIConfig(
53
+ ftp_port=FTP_PORT,
54
+ ftp_host=FTP_HOST,
55
+ ftp_user=FTP_USER,
56
+ ftp_password=FTP_PASSWORD,
57
+ sharepoint_client_id=SHAREPOINT_CLIENT_ID,
58
+ sharepoint_client_secret=SHAREPOINT_CLIENT_SECRET,
59
+ sharepoint_tenant_id=SHAREPOINT_TENANT_ID,
60
+ sharepoint_tenant_name=SHAREPOINT_TENANT_NAME,
61
+ sharepoint_site_name=SHAREPOINT_SITE_NAME
56
62
  )
63
+ response = await api_client.update_thies_data(config)
57
64
  return response
58
65
 
59
66
  asyncio.run(update_thies_data())
60
67
  ```
61
68
 
62
69
  **Notes:**
63
- - Store sensitive data like `PASSWORD` and `USER` securely, e.g., in environment variables or a secrets file.
70
+ - Store sensitive data like `FTP_PASSWORD`, `FTP_USER`, and SharePoint credentials securely. Use environment variables or a secrets management tool to avoid hardcoding sensitive information in your codebase.
64
71
  - Ensure `asyncio` is installed to run concurrent code with `EpiiAPI` methods.
65
72
 
66
73
  ## Development
@@ -1,6 +1,6 @@
1
- rcer_iot_client_pkg/__init__.py,sha256=Uy9WDPvHbwKUs7JeDHgQi_MGuXn6m7lKVniJgj49xOo,186
1
+ rcer_iot_client_pkg/__init__.py,sha256=ynL8ADM5u2SQTdGfqVLDWEu9bYQnp6znMCEXnhu5zRA,272
2
2
  rcer_iot_client_pkg/general_types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- rcer_iot_client_pkg/general_types/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ rcer_iot_client_pkg/general_types/api/__init__.py,sha256=1afRFS8AkxkxOWmcNLFI3H1lb-w_5dVJMMDKobBYlOY,80
4
4
  rcer_iot_client_pkg/general_types/api/update_thies_data_types.py,sha256=NqViiGKm1FdhgxJrNkLBLzqI-8SnPieAYv21kEN752U,963
5
5
  rcer_iot_client_pkg/general_types/error_types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  rcer_iot_client_pkg/general_types/error_types/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -39,7 +39,7 @@ rcer_iot_client_pkg/services/epii/use_cases/types/update_thies_data_types.py,sha
39
39
  rcer_iot_client_pkg/services/epii/use_cases/update_thies_data.py,sha256=Tc12NUnZ0or2Tz5BA9jE62I5XxmKvZ__v4w5dTBk_5A,5052
40
40
  rcer_iot_client_pkg/services/epii/utils/__init__.py,sha256=cYt2tvq65_OMjFaqb8-CCC7IGCQgFd4ziEUWJV7s1iY,98
41
41
  rcer_iot_client_pkg/services/epii/utils/update_thies_data_utils.py,sha256=-q8t-xZmpwFDADGlDu0S7EKvZK7R0GUR6JqOxQShWgE,415
42
- rcer_iot_client_pkg-0.5.0.dist-info/LICENSE,sha256=NWpf6b38xgBWPBo5HZsCbdfp9hZSliEbRqWQgm0fkOo,1076
43
- rcer_iot_client_pkg-0.5.0.dist-info/METADATA,sha256=0gMjeJqGyVtA_p-VFp6DIYOyLROhFAatUDXGCT_Qw48,3483
44
- rcer_iot_client_pkg-0.5.0.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
45
- rcer_iot_client_pkg-0.5.0.dist-info/RECORD,,
42
+ rcer_iot_client_pkg-0.6.0.dist-info/LICENSE,sha256=NWpf6b38xgBWPBo5HZsCbdfp9hZSliEbRqWQgm0fkOo,1076
43
+ rcer_iot_client_pkg-0.6.0.dist-info/METADATA,sha256=tNg5e58pzwbhintOCozn_L2DahFWZ_MTgUCyT06mMKA,3939
44
+ rcer_iot_client_pkg-0.6.0.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
45
+ rcer_iot_client_pkg-0.6.0.dist-info/RECORD,,