rcer-iot-client-pkg 0.5.0__tar.gz → 0.6.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.
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/PKG-INFO +14 -7
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/README.md +13 -6
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/pyproject.toml +1 -1
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/src/rcer_iot_client_pkg/__init__.py +2 -1
- rcer_iot_client_pkg-0.6.0/src/rcer_iot_client_pkg/general_types/api/__init__.py +3 -0
- rcer_iot_client_pkg-0.5.0/src/rcer_iot_client_pkg/services/epii/__init__.py +0 -0
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/LICENSE +0 -0
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/src/rcer_iot_client_pkg/general_types/__init__.py +0 -0
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/src/rcer_iot_client_pkg/general_types/api/update_thies_data_types.py +0 -0
- {rcer_iot_client_pkg-0.5.0/src/rcer_iot_client_pkg/general_types/api → rcer_iot_client_pkg-0.6.0/src/rcer_iot_client_pkg/general_types/error_types}/__init__.py +0 -0
- {rcer_iot_client_pkg-0.5.0/src/rcer_iot_client_pkg/general_types/error_types → rcer_iot_client_pkg-0.6.0/src/rcer_iot_client_pkg/general_types/error_types/api}/__init__.py +0 -0
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/src/rcer_iot_client_pkg/general_types/error_types/api/update_thies_data_error_types.py +0 -0
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/src/rcer_iot_client_pkg/general_types/error_types/common/__init__.py +0 -0
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/src/rcer_iot_client_pkg/general_types/error_types/common/common_types.py +0 -0
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/src/rcer_iot_client_pkg/libs/async_http_client/__init__.py +0 -0
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/src/rcer_iot_client_pkg/libs/async_http_client/async_http_client.py +0 -0
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/src/rcer_iot_client_pkg/libs/async_http_client/async_http_client_contract.py +0 -0
- {rcer_iot_client_pkg-0.5.0/src/rcer_iot_client_pkg/general_types/error_types/api → rcer_iot_client_pkg-0.6.0/src/rcer_iot_client_pkg/libs/async_http_client/clients}/__init__.py +0 -0
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/src/rcer_iot_client_pkg/libs/async_http_client/clients/aiohttp_client.py +0 -0
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/src/rcer_iot_client_pkg/libs/async_http_client/types/__init__.py +0 -0
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/src/rcer_iot_client_pkg/libs/async_http_client/types/async_http_client_types.py +0 -0
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/src/rcer_iot_client_pkg/libs/ftp_client/__init__.py +0 -0
- {rcer_iot_client_pkg-0.5.0/src/rcer_iot_client_pkg/libs/async_http_client → rcer_iot_client_pkg-0.6.0/src/rcer_iot_client_pkg/libs/ftp_client}/clients/__init__.py +0 -0
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/src/rcer_iot_client_pkg/libs/ftp_client/clients/aioftp_client.py +0 -0
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/src/rcer_iot_client_pkg/libs/ftp_client/ftp_client.py +0 -0
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/src/rcer_iot_client_pkg/libs/ftp_client/ftp_client_contract.py +0 -0
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/src/rcer_iot_client_pkg/libs/ftp_client/types/__init__.py +0 -0
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/src/rcer_iot_client_pkg/libs/ftp_client/types/ftp_client_types.py +0 -0
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/src/rcer_iot_client_pkg/libs/sharepoint_client/__init__.py +0 -0
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/src/rcer_iot_client_pkg/libs/sharepoint_client/clients/sharepoint_rest_api.py +0 -0
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/src/rcer_iot_client_pkg/libs/sharepoint_client/sharepoint_client.py +0 -0
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/src/rcer_iot_client_pkg/libs/sharepoint_client/sharepoint_client_contract.py +0 -0
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/src/rcer_iot_client_pkg/libs/sharepoint_client/types/sharepoint_client_types.py +0 -0
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/src/rcer_iot_client_pkg/libs/zero_dependency/utils/datetime_utils.py +0 -0
- {rcer_iot_client_pkg-0.5.0/src/rcer_iot_client_pkg/libs/ftp_client/clients → rcer_iot_client_pkg-0.6.0/src/rcer_iot_client_pkg/services/epii}/__init__.py +0 -0
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/src/rcer_iot_client_pkg/services/epii/api.py +0 -0
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/src/rcer_iot_client_pkg/services/epii/constants/update_thies_data_constants.py +0 -0
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/src/rcer_iot_client_pkg/services/epii/controllers/__init__.py +0 -0
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/src/rcer_iot_client_pkg/services/epii/controllers/types/__init__.py +0 -0
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/src/rcer_iot_client_pkg/services/epii/controllers/types/update_thies_data_types.py +0 -0
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/src/rcer_iot_client_pkg/services/epii/controllers/update_thies_data.py +0 -0
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/src/rcer_iot_client_pkg/services/epii/use_cases/types/__init__.py +0 -0
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/src/rcer_iot_client_pkg/services/epii/use_cases/types/update_thies_data_types.py +0 -0
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/src/rcer_iot_client_pkg/services/epii/use_cases/update_thies_data.py +0 -0
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/src/rcer_iot_client_pkg/services/epii/utils/__init__.py +0 -0
- {rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.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.
|
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
|
-
|
52
|
-
ftp_port=
|
53
|
-
ftp_host=
|
54
|
-
|
55
|
-
|
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 `
|
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
|
@@ -24,22 +24,29 @@ api_client = EpiiAPI()
|
|
24
24
|
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:
|
25
25
|
|
26
26
|
```python
|
27
|
+
from rcer_iot_client_pkg import EpiiAPIConfig
|
27
28
|
import asyncio
|
28
29
|
|
29
30
|
async def update_thies_data():
|
30
|
-
|
31
|
-
ftp_port=
|
32
|
-
ftp_host=
|
33
|
-
|
34
|
-
|
31
|
+
config = EpiiAPIConfig(
|
32
|
+
ftp_port=FTP_PORT,
|
33
|
+
ftp_host=FTP_HOST,
|
34
|
+
ftp_user=FTP_USER,
|
35
|
+
ftp_password=FTP_PASSWORD,
|
36
|
+
sharepoint_client_id=SHAREPOINT_CLIENT_ID,
|
37
|
+
sharepoint_client_secret=SHAREPOINT_CLIENT_SECRET,
|
38
|
+
sharepoint_tenant_id=SHAREPOINT_TENANT_ID,
|
39
|
+
sharepoint_tenant_name=SHAREPOINT_TENANT_NAME,
|
40
|
+
sharepoint_site_name=SHAREPOINT_SITE_NAME
|
35
41
|
)
|
42
|
+
response = await api_client.update_thies_data(config)
|
36
43
|
return response
|
37
44
|
|
38
45
|
asyncio.run(update_thies_data())
|
39
46
|
```
|
40
47
|
|
41
48
|
**Notes:**
|
42
|
-
- Store sensitive data like `
|
49
|
+
- 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.
|
43
50
|
- Ensure `asyncio` is installed to run concurrent code with `EpiiAPI` methods.
|
44
51
|
|
45
52
|
## Development
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{rcer_iot_client_pkg-0.5.0 → rcer_iot_client_pkg-0.6.0}/src/rcer_iot_client_pkg/services/epii/api.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|