ep-sdk-4pd 3.0.4__tar.gz → 3.0.5__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 (24) hide show
  1. {ep_sdk_4pd-3.0.4 → ep_sdk_4pd-3.0.5}/PKG-INFO +1 -1
  2. ep_sdk_4pd-3.0.5/ep_sdk_4pd/__init__.py +1 -0
  3. {ep_sdk_4pd-3.0.4 → ep_sdk_4pd-3.0.5}/ep_sdk_4pd/ep_data.py +1 -1
  4. {ep_sdk_4pd-3.0.4 → ep_sdk_4pd-3.0.5}/ep_sdk_4pd/ep_system.py +1 -1
  5. {ep_sdk_4pd-3.0.4 → ep_sdk_4pd-3.0.5}/ep_sdk_4pd.egg-info/PKG-INFO +1 -1
  6. {ep_sdk_4pd-3.0.4 → ep_sdk_4pd-3.0.5}/setup.py +1 -1
  7. ep_sdk_4pd-3.0.5/tests/test_history_data.py +24 -0
  8. ep_sdk_4pd-3.0.4/ep_sdk_4pd/__init__.py +0 -1
  9. ep_sdk_4pd-3.0.4/tests/test_history_data.py +0 -17
  10. {ep_sdk_4pd-3.0.4 → ep_sdk_4pd-3.0.5}/README.md +0 -0
  11. {ep_sdk_4pd-3.0.4 → ep_sdk_4pd-3.0.5}/ep_sdk_4pd/models.py +0 -0
  12. {ep_sdk_4pd-3.0.4 → ep_sdk_4pd-3.0.5}/ep_sdk_4pd.egg-info/SOURCES.txt +0 -0
  13. {ep_sdk_4pd-3.0.4 → ep_sdk_4pd-3.0.5}/ep_sdk_4pd.egg-info/dependency_links.txt +0 -0
  14. {ep_sdk_4pd-3.0.4 → ep_sdk_4pd-3.0.5}/ep_sdk_4pd.egg-info/requires.txt +0 -0
  15. {ep_sdk_4pd-3.0.4 → ep_sdk_4pd-3.0.5}/ep_sdk_4pd.egg-info/top_level.txt +0 -0
  16. {ep_sdk_4pd-3.0.4 → ep_sdk_4pd-3.0.5}/setup.cfg +0 -0
  17. {ep_sdk_4pd-3.0.4 → ep_sdk_4pd-3.0.5}/tests/test.py +0 -0
  18. {ep_sdk_4pd-3.0.4 → ep_sdk_4pd-3.0.5}/tests/test_call_train_done.py +0 -0
  19. {ep_sdk_4pd-3.0.4 → ep_sdk_4pd-3.0.5}/tests/test_get_run_strategy.py +0 -0
  20. {ep_sdk_4pd-3.0.4 → ep_sdk_4pd-3.0.5}/tests/test_get_system_date.py +0 -0
  21. {ep_sdk_4pd-3.0.4 → ep_sdk_4pd-3.0.5}/tests/test_model1.py +0 -0
  22. {ep_sdk_4pd-3.0.4 → ep_sdk_4pd-3.0.5}/tests/test_model_output_dir.py +0 -0
  23. {ep_sdk_4pd-3.0.4 → ep_sdk_4pd-3.0.5}/tests/test_predict_data.py +0 -0
  24. {ep_sdk_4pd-3.0.4 → ep_sdk_4pd-3.0.5}/tests/test_/350/212/202/347/202/271/345/235/207/345/200/274_v2.py" +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ep_sdk_4pd
3
- Version: 3.0.4
3
+ Version: 3.0.5
4
4
  Summary: 4paradigm Electricity Platform Service SDK Library for Python
5
5
  Home-page: https://gitlab.4pd.io/electricityproject/electricity-platform-sdk
6
6
  Author: 4paradigm Electricity Platform SDK
@@ -0,0 +1 @@
1
+ __version__ = '3.0.5'
@@ -15,7 +15,7 @@ from ep_sdk_4pd.models import HistoryDataRequest, PredictDataRequest
15
15
  # endpoint = 'http://172.27.88.56:6601'
16
16
 
17
17
  # 外网 地址
18
- endpoint = 'http://82.157.231.254:6001'
18
+ endpoint = 'http://82.157.231.254'
19
19
 
20
20
  Authorization = 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJlbGVjdHJpY2l0eS1wbGF0Zm9ybSIsInN1YiI6IjEyMyIsImlhdCI6MTc0NjYwNjQ4NSwianRpIjoiMTIzXzE3NDY1Nzc2ODUxNDYiLCJ0eXBlIjoiYWNjZXNzIn0.Clrz_8j3aJlXTWPX-4DS0NxXN9idTcUIc0AtXOMIjd8'
21
21
 
@@ -18,7 +18,7 @@ from ep_sdk_4pd.models import RunStrategyRequest, CallTrainDoneRequest, RsaKeyRe
18
18
  # endpoint = 'http://172.27.88.56:6601'
19
19
 
20
20
  # 外网 地址
21
- endpoint = 'http://82.157.231.254:6001'
21
+ endpoint = 'http://82.157.231.254'
22
22
 
23
23
  Authorization = 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJlbGVjdHJpY2l0eS1wbGF0Zm9ybSIsInN1YiI6IjEyMyIsImlhdCI6MTc0NjYwNjQ4NSwianRpIjoiMTIzXzE3NDY1Nzc2ODUxNDYiLCJ0eXBlIjoiYWNjZXNzIn0.Clrz_8j3aJlXTWPX-4DS0NxXN9idTcUIc0AtXOMIjd8'
24
24
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ep_sdk_4pd
3
- Version: 3.0.4
3
+ Version: 3.0.5
4
4
  Summary: 4paradigm Electricity Platform Service SDK Library for Python
5
5
  Home-page: https://gitlab.4pd.io/electricityproject/electricity-platform-sdk
6
6
  Author: 4paradigm Electricity Platform SDK
@@ -8,7 +8,7 @@ DESCRIPTION = '4paradigm Electricity Platform Service SDK Library for Python'
8
8
  AUTHOR = '4paradigm Electricity Platform SDK'
9
9
  AUTHOR_EMAIL = ''
10
10
  URL = 'https://gitlab.4pd.io/electricityproject/electricity-platform-sdk'
11
- VERSION = '3.0.4'
11
+ VERSION = '3.0.5'
12
12
  REQUIRES = ['requests']
13
13
 
14
14
  LONG_DESCRIPTION = ''
@@ -0,0 +1,24 @@
1
+ import datetime
2
+ from turtle import pd
3
+
4
+ from ep_sdk_4pd.ep_data import EpData
5
+ from ep_sdk_4pd.ep_system import EpSystem
6
+
7
+
8
+ def test_history_data():
9
+ print('-------------test_history_data-------------')
10
+
11
+ # system_data = EpSystem.get_system_date()
12
+ dt1 = datetime.datetime.strptime("2024-01-01", "%Y-%m-%d")
13
+ dt2 = datetime.datetime.strptime("2025-05-31", "%Y-%m-%d")
14
+ gaps = dt2 - dt1
15
+ gap_days = gaps.days
16
+ print("gap_days:", gap_days)
17
+
18
+ # data = EpData.get_history_data(scope="market",days=gap_days)
19
+ # print(data)
20
+ print('-------------------------------------')
21
+
22
+
23
+ if __name__ == '__main__':
24
+ test_history_data()
@@ -1 +0,0 @@
1
- __version__ = '3.0.4'
@@ -1,17 +0,0 @@
1
- import datetime
2
- from turtle import pd
3
-
4
- from ep_sdk_4pd.ep_data import EpData
5
- from ep_sdk_4pd.ep_system import EpSystem
6
-
7
-
8
- def test_history_data():
9
- print('-------------test_history_data-------------')
10
-
11
- data = EpData.get_history_data(scope="plant",days=1)
12
- print(data.get("plant"))
13
- print('-------------------------------------')
14
-
15
-
16
- if __name__ == '__main__':
17
- test_history_data()
File without changes
File without changes
File without changes